@point-hub/papi 0.1.18 → 0.1.20

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -13,4 +13,4 @@ Instructions:
13
13
  [a,b,c]/delete: Filter choices
14
14
  enter/return: Complete answer
15
15
  `}return""}renderCurrentInput(){return`
16
- Filtered results for: ${this.inputValue?this.inputValue:o8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?o8.gray().underline(J.title):o8.strikethrough().gray(J.title);else X=Z===$?o8.cyan().underline(J.title):J.title;return(J.selected?o8.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[o8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(o8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n2.hide);super.render();let Z=[xH.symbol(this.done,this.aborted),o8.bold(this.msg),xH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=o8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=_H(Z,this.out.columns)}}fH.exports=vH});var cH=z((tr,pH)=>{var bH=w1(),r2=t8(),{style:mH,clear:o2}=K8(),{erase:e2,cursor:uH}=P1();class dH extends r2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(uH.hide);else this.out.write(o2(this.outputText,this.out.columns));super.render(),this.outputText=[mH.symbol(this.done,this.aborted),bH.bold(this.msg),mH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:bH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(e2.line+uH.to(0)+this.outputText)}}pH.exports=dH});var aH=z((rr,lH)=>{lH.exports={TextPrompt:BW(),SelectPrompt:yW(),TogglePrompt:fW(),DatePrompt:LH(),NumberPrompt:TH(),MultiselectPrompt:g$(),AutocompletePrompt:kH(),AutocompleteMultiselectPrompt:gH(),ConfirmPrompt:cH()}});var sH=z((iH)=>{var C8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new Zh[Z](J),K=$.onAbort||s9,G=$.onSubmit||s9,q=$.onExit||s9;Q.on("state",J.onState||s9),Q.on("submit",(F)=>X(G(F))),Q.on("exit",(F)=>X(q(F))),Q.on("abort",(F)=>Y(K(F)))})},j0=iH,Zh=aH(),s9=(Z)=>Z;j0.text=(Z)=>C8("TextPrompt",Z);j0.password=(Z)=>{return Z.style="password",j0.text(Z)};j0.invisible=(Z)=>{return Z.style="invisible",j0.text(Z)};j0.number=(Z)=>C8("NumberPrompt",Z);j0.date=(Z)=>C8("DatePrompt",Z);j0.confirm=(Z)=>C8("ConfirmPrompt",Z);j0.list=(Z)=>{const J=Z.separator||",";return C8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};j0.toggle=(Z)=>C8("TogglePrompt",Z);j0.select=(Z)=>C8("SelectPrompt",Z);j0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};j0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var Jh=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));j0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||Jh,Z.choices=[].concat(Z.choices||[]),C8("AutocompletePrompt",Z)}});var rH=z((er,tH)=>{async function E6(Z=[],{onSubmit:J=nH,onCancel:$=nH}={}){const X={},Y=E6._override||{};Z=[].concat(Z);let Q,K,G,q,F,W;const H=async(V,j,U=!1)=>{if(!U&&V.validate&&V.validate(j)!==!0)return;return V.format?await V.format(j,X):j};for(K of Z){if({name:q,type:F}=K,typeof F==="function")F=await F(Q,{...X},K),K.type=F;if(!F)continue;for(let V in K){if($h.includes(V))continue;let j=K[V];K[V]=typeof j==="function"?await j(Q,{...X},W):j}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:q,type:F}=K,u$[F]===void 0)throw new Error(`prompt type (${F}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[q]=Q;continue}}try{Q=E6._injected?Xh(E6._injected,K.initial):await u$[F](K),X[q]=Q=await H(K,Q,!0),G=await J(K,Q,X)}catch(V){G=!await $(K,X)}if(G)return X}return X}var Xh=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},Yh=function(Z){E6._injected=(E6._injected||[]).concat(Z)},Qh=function(Z){E6._override=Object.assign({},Z)},u$=sH(),$h=["suggest","format","onState","validate","onRender","type"],nH=()=>{};tH.exports=Object.assign(E6,{prompt:E6,prompts:u$,inject:Yh,override:Qh})});var eH=z((Zo,oH)=>{var Kh=function(Z){Z=(Array.isArray(Z)?Z:Z.split(".")).map(Number);let J=0,$=process.versions.node.split(".").map(Number);for(;J<Z.length;J++){if($[J]>Z[J])return!1;if(Z[J]>$[J])return!0}return!1};oH.exports=Kh("8.6.0")?QW():rH()});var h=z((hz)=>{var Fh=function(Z){return"errors"in Z&&Array.isArray(Z.errors)},Wh=function(Z){return Z[Rz]===!0},Hh=function(Z){const J=Object.assign({},Z);if(J.ok===0)J.ok=1,delete J.errmsg,delete J.code,delete J.codeName;return J},zh=function(Z,J){if(Z instanceof F4)return!0;if(Z instanceof h8){if((J>=9||Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError))&&!Z.hasErrorLabel(hz.MongoErrorLabel.HandshakeError))return!1}if(Z instanceof l$)return $z.has(Z.result?.code??Z.code??0);if(Z instanceof h8&&typeof Z.code==="number")return $z.has(Z.code);if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Vh=function(Z){return Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError)},Uh=function(Z){if(typeof Z.code==="number"?Bz.has(Z.code):!1)return!0;if(Z instanceof F4)return!0;if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Cz=function(Z){if(typeof Z.code==="number")return Mh.has(Z.code);return hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(Z.message)||hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message)},Lh=function(Z){if(typeof Z.code==="number")return jh.has(Z.code);if(Cz(Z))return!1;return hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message)},wh=function(Z){return!!(typeof Z.code==="number"&&Ah.has(Z.code))},Rh=function(Z){if(Z instanceof p$||Z==null)return!0;return Cz(Z)||Lh(Z)},Ph=function(Z){return!!(Z instanceof F4&&Z.message.match(/timed out/))},Dh=function(Z,J){if(Z==null||!(Z instanceof h8))return!1;if(Z instanceof F4)return!0;if(J!=null&&J>=9){if(Z.code===hz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return Z.hasErrorLabel(hz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof Z.code==="number")return hz.GET_MORE_RESUMABLE_CODES.has(Z.code);return!1};Object.defineProperty(hz,"__esModule",{value:!0});hz.isResumableError=hz.isNetworkTimeoutError=hz.isSDAMUnrecoverableError=hz.isNodeShuttingDownError=hz.isRetryableReadError=hz.isRetryableWriteError=hz.needsRetryableWriteLabel=hz.MongoWriteConcernError=hz.MongoServerSelectionError=hz.MongoSystemError=hz.MongoMissingDependencyError=hz.MongoMissingCredentialsError=hz.MongoCompatibilityError=hz.MongoInvalidArgumentError=hz.MongoParseError=hz.MongoNetworkTimeoutError=hz.MongoNetworkError=hz.isNetworkErrorBeforeHandshake=hz.MongoTopologyClosedError=hz.MongoCursorExhaustedError=hz.MongoServerClosedError=hz.MongoCursorInUseError=hz.MongoUnexpectedServerResponseError=hz.MongoGridFSChunkError=hz.MongoGridFSStreamError=hz.MongoTailableCursorError=hz.MongoChangeStreamError=hz.MongoAzureError=hz.MongoAWSError=hz.MongoKerberosError=hz.MongoExpiredSessionError=hz.MongoTransactionError=hz.MongoNotConnectedError=hz.MongoDecompressionError=hz.MongoBatchReExecutionError=hz.MongoRuntimeError=hz.MongoAPIError=hz.MongoDriverError=hz.MongoServerError=hz.MongoError=hz.MongoErrorLabel=hz.GET_MORE_RESUMABLE_CODES=hz.MONGODB_ERROR_CODES=hz.NODE_IS_RECOVERING_ERROR_MESSAGE=hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var X5=Symbol("errorLabels");hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");hz.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");hz.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,Reauthenticate:391});hz.GET_MORE_RESUMABLE_CODES=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.ExceededTimeLimit,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,hz.MONGODB_ERROR_CODES.StaleShardVersion,hz.MONGODB_ERROR_CODES.StaleEpoch,hz.MONGODB_ERROR_CODES.StaleConfig,hz.MONGODB_ERROR_CODES.RetryChangeStream,hz.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,hz.MONGODB_ERROR_CODES.CursorNotFound]);hz.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h8 extends Error{constructor(Z){super(h8.buildErrorMessage(Z));if(Z instanceof Error)this.cause=Z;this[X5]=new Set}static buildErrorMessage(Z){if(typeof Z==="string")return Z;if(Fh(Z)&&Z.message.length===0)return Z.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":Z.errors.map(({message:J})=>J).join(", ");return Z.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(Z){return this[X5].has(Z)}addErrorLabel(Z){this[X5].add(Z)}get errorLabels(){return Array.from(this[X5])}}hz.MongoError=h8;class d$ extends h8{constructor(Z){super(Z.message||Z.errmsg||Z.$err||"n/a");if(Z.errorLabels)this[X5]=new Set(Z.errorLabels);for(let J in Z)if(J!=="errorLabels"&&J!=="errmsg"&&J!=="message")this[J]=Z[J]}get name(){return"MongoServerError"}}hz.MongoServerError=d$;class Q5 extends h8{constructor(Z){super(Z)}get name(){return"MongoDriverError"}}hz.MongoDriverError=Q5;class G0 extends Q5{constructor(Z){super(Z)}get name(){return"MongoAPIError"}}hz.MongoAPIError=G0;class O8 extends Q5{constructor(Z){super(Z)}get name(){return"MongoRuntimeError"}}hz.MongoRuntimeError=O8;class Xz extends G0{constructor(Z="This batch has already been executed, create new batch to execute"){super(Z)}get name(){return"MongoBatchReExecutionError"}}hz.MongoBatchReExecutionError=Xz;class Yz extends O8{constructor(Z){super(Z)}get name(){return"MongoDecompressionError"}}hz.MongoDecompressionError=Yz;class Qz extends G0{constructor(Z){super(Z)}get name(){return"MongoNotConnectedError"}}hz.MongoNotConnectedError=Qz;class Kz extends G0{constructor(Z){super(Z)}get name(){return"MongoTransactionError"}}hz.MongoTransactionError=Kz;class Gz extends G0{constructor(Z="Cannot use a session that has ended"){super(Z)}get name(){return"MongoExpiredSessionError"}}hz.MongoExpiredSessionError=Gz;class qz extends O8{constructor(Z){super(Z)}get name(){return"MongoKerberosError"}}hz.MongoKerberosError=qz;class Fz extends O8{constructor(Z){super(Z)}get name(){return"MongoAWSError"}}hz.MongoAWSError=Fz;class Wz extends O8{constructor(Z){super(Z)}get name(){return"MongoAzureError"}}hz.MongoAzureError=Wz;class Hz extends O8{constructor(Z){super(Z)}get name(){return"MongoChangeStreamError"}}hz.MongoChangeStreamError=Hz;class zz extends G0{constructor(Z="Tailable cursor does not support this operation"){super(Z)}get name(){return"MongoTailableCursorError"}}hz.MongoTailableCursorError=zz;class Vz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSStreamError"}}hz.MongoGridFSStreamError=Vz;class Uz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSChunkError"}}hz.MongoGridFSChunkError=Uz;class Mz extends O8{constructor(Z){super(Z)}get name(){return"MongoUnexpectedServerResponseError"}}hz.MongoUnexpectedServerResponseError=Mz;class jz extends G0{constructor(Z="Cursor is already initialized"){super(Z)}get name(){return"MongoCursorInUseError"}}hz.MongoCursorInUseError=jz;class Az extends G0{constructor(Z="Server is closed"){super(Z)}get name(){return"MongoServerClosedError"}}hz.MongoServerClosedError=Az;class Lz extends G0{constructor(Z){super(Z||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}hz.MongoCursorExhaustedError=Lz;class wz extends G0{constructor(Z="Topology is closed"){super(Z)}get name(){return"MongoTopologyClosedError"}}hz.MongoTopologyClosedError=wz;var Rz=Symbol("beforeHandshake");hz.isNetworkErrorBeforeHandshake=Wh;class F4 extends h8{constructor(Z,J){super(Z);if(J&&typeof J.beforeHandshake==="boolean")this[Rz]=J.beforeHandshake}get name(){return"MongoNetworkError"}}hz.MongoNetworkError=F4;class Pz extends F4{constructor(Z,J){super(Z,J)}get name(){return"MongoNetworkTimeoutError"}}hz.MongoNetworkTimeoutError=Pz;class p$ extends Q5{constructor(Z){super(Z)}get name(){return"MongoParseError"}}hz.MongoParseError=p$;class Dz extends G0{constructor(Z){super(Z)}get name(){return"MongoInvalidArgumentError"}}hz.MongoInvalidArgumentError=Dz;class Tz extends G0{constructor(Z){super(Z)}get name(){return"MongoCompatibilityError"}}hz.MongoCompatibilityError=Tz;class Iz extends G0{constructor(Z){super(Z)}get name(){return"MongoMissingCredentialsError"}}hz.MongoMissingCredentialsError=Iz;class Ez extends G0{constructor(Z,{cause:J}={}){super(Z);if(J)this.cause=J}get name(){return"MongoMissingDependencyError"}}hz.MongoMissingDependencyError=Ez;class c$ extends h8{constructor(Z,J){if(J&&J.error)super(J.error.message||J.error);else super(Z);if(J)this.reason=J;this.code=J.error?.code}get name(){return"MongoSystemError"}}hz.MongoSystemError=c$;class Nz extends c${constructor(Z,J){super(Z,J)}get name(){return"MongoServerSelectionError"}}hz.MongoServerSelectionError=Nz;class l$ extends d${constructor(Z,J){if(J&&Array.isArray(J.errorLabels))Z.errorLabels=J.errorLabels;super(Z);if(this.errInfo=Z.errInfo,J!=null)this.result=Hh(J)}get name(){return"MongoWriteConcernError"}}hz.MongoWriteConcernError=l$;var Bz=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),$z=new Set([...Bz,hz.MONGODB_ERROR_CODES.ExceededTimeLimit]);hz.needsRetryableWriteLabel=zh;hz.isRetryableWriteError=Vh;hz.isRetryableReadError=Uh;var Mh=new Set([hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),jh=new Set([hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.LegacyNotPrimary]),Ah=new Set([hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.ShutdownInProgress]);hz.isNodeShuttingDownError=wh;hz.isSDAMUnrecoverableError=Rh;hz.isNetworkTimeoutError=Ph;hz.isResumableError=Dh});var H5=z(($S)=>{var iz=function(Z){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(Z))},B6=function(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"},l4=function(Z){return Object.prototype.toString.call(Z)==="[object RegExp]"},sz=function(Z){return Object.prototype.toString.call(Z)==="[object Map]"},a4=function(Z){return Object.prototype.toString.call(Z)==="[object Date]"},HO=function(Z){return N6.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},VO=function(){const{navigator:Z}=globalThis;return typeof Z==="object"&&Z.product==="ReactNative"},UO=function(Z){if(Z<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${Z}`);return n4.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},HV=function(Z){return Z!=null&&typeof Z==="object"&&"$id"in Z&&Z.$id!=null&&"$ref"in Z&&typeof Z.$ref==="string"&&(!("$db"in Z)||("$db"in Z)&&typeof Z.$db==="string")},pz=function(Z){return!isNaN(parseInt(Z,10))},hO=function(Z){const J=M.fromNumber(1e9);let $=M.fromNumber(0);if(!Z.parts[0]&&!Z.parts[1]&&!Z.parts[2]&&!Z.parts[3])return{quotient:Z,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(Z.parts[X],0)),Z.parts[X]=$.div(J).low,$=$.modulo(J);return{quotient:Z,rem:$}},OO=function(Z,J){if(!Z&&!J)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=Z.shiftRightUnsigned(32),X=new M(Z.getLowBits(),0),Y=J.shiftRightUnsigned(32),Q=new M(J.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const q=X.multiply(Y);let F=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(q).add(F.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),F=G.shiftLeft(32).add(new M(F.getLowBits(),0)),{high:K,low:F}},SO=function(Z,J){const $=Z.high>>>0,X=J.high>>>0;if($<X)return!0;else if($===X){const Y=Z.low>>>0,Q=J.low>>>0;if(Y<Q)return!0}return!1},G8=function(Z,J){throw new R(`"${Z}" is not a valid Decimal128 string - ${J}`)},ZZ=function(Z,J,$){let X=5;if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)X+=cz(Y.toString(),Z[Y],J,!0,$);else{if(typeof Z?.toBSON==="function")Z=Z.toBSON();for(let Y of Object.keys(Z))X+=cz(Y,Z[Y],J,!1,$)}return X},cz=function(Z,J,$=!1,X=!1,Y=!1){if(typeof J?.toBSON==="function")J=J.toBSON();switch(typeof J){case"string":return 1+A.utf8ByteLength(Z)+1+4+A.utf8ByteLength(J)+1;case"number":if(Math.floor(J)===J&&J>=oz&&J<=rz)if(J>=qZ&&J<=GZ)return(Z!=null?A.utf8ByteLength(Z)+1:0)+5;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;case"undefined":if(X||!Y)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;return 0;case"boolean":return(Z!=null?A.utf8ByteLength(Z)+1:0)+2;case"object":if(J!=null&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(J==null||J._bsontype==="MinKey"||J._bsontype==="MaxKey")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;else if(J._bsontype==="ObjectId")return(Z!=null?A.utf8ByteLength(Z)+1:0)+13;else if(J instanceof Date||a4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(ArrayBuffer.isView(J)||J instanceof ArrayBuffer||iz(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+6+J.byteLength;else if(J._bsontype==="Long"||J._bsontype==="Double"||J._bsontype==="Timestamp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(J._bsontype==="Decimal128")return(Z!=null?A.utf8ByteLength(Z)+1:0)+17;else if(J._bsontype==="Code")if(J.scope!=null&&Object.keys(J.scope).length>0)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+4+A.utf8ByteLength(J.code.toString())+1+ZZ(J.scope,$,Y);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.code.toString())+1;else if(J._bsontype==="Binary"){const Q=J;if(Q.sub_type===s.SUBTYPE_BYTE_ARRAY)return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1+4);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1)}else if(J._bsontype==="Symbol")return(Z!=null?A.utf8ByteLength(Z)+1:0)+A.utf8ByteLength(J.value)+4+1+1;else if(J._bsontype==="DBRef"){const Q=Object.assign({$ref:J.collection,$id:J.oid},J.fields);if(J.db!=null)Q.$db=J.db;return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+ZZ(Q,$,Y)}else if(J instanceof RegExp||l4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.source)+1+(J.global?1:0)+(J.ignoreCase?1:0)+(J.multiline?1:0)+1;else if(J._bsontype==="BSONRegExp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.pattern)+1+A.utf8ByteLength(J.options)+1;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+ZZ(J,$,Y)+1;case"function":if($)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.toString())+1}return 0},kO=function(Z){return Z.split("").sort().join("")},VV=function(Z,J,$){let X=0;for(let Y=J;Y<$;Y+=1){const Q=Z[Y];if(X){if((Q&vO)!==pO)return!1;X-=1}else if(Q&xO)if((Q&fO)===mO)X=1;else if((Q&gO)===uO)X=2;else if((Q&bO)===dO)X=3;else return!1}return!X},UV=function(Z,J,$){J=J==null?{}:J;const X=J&&J.index?J.index:0,Y=Z[X]|Z[X+1]<<8|Z[X+2]<<16|Z[X+3]<<24;if(Y<5)throw new R(`bson size must be >= 5, is ${Y}`);if(J.allowObjectSmallerThanBufferSize&&Z.length<Y)throw new R(`buffer length ${Z.length} must be >= bson size ${Y}`);if(!J.allowObjectSmallerThanBufferSize&&Z.length!==Y)throw new R(`buffer length ${Z.length} must === bson size ${Y}`);if(Y+X>Z.byteLength)throw new R(`(bson size ${Y} + options.index ${X} must be <= buffer length ${Z.byteLength})`);if(Z[X+Y-1]!==0)throw new R("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return JZ(Z,X,J,$)},JZ=function(Z,J,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,q=$.promoteLongs??!0,F=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!F)throw new R("Must either request bigint or Long for int64 deserialization");if(W&&!q)throw new R("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let V=!0,j;const U=new Set,L=H.utf8;if(typeof L==="boolean")j=L;else{V=!1;const y=Object.keys(L).map(function(N){return L[N]});if(y.length===0)throw new R("UTF-8 validation setting cannot be empty");if(typeof y[0]!=="boolean")throw new R("Invalid UTF-8 validation option, must specify boolean values");if(j=y[0],!y.every((N)=>N===j))throw new R("Invalid UTF-8 validation option - keys must be all true or all false")}if(!V)for(let y of Object.keys(L))U.add(y);const D=J;if(Z.length<5)throw new R("corrupt bson message < 5 bytes long");const B=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(B<5||B>Z.length)throw new R("corrupt bson message");const w=X?[]:{};let T=0;const f=!1;let N1=X?!1:null;const p8=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);while(!f){const y=Z[J++];if(y===0)break;let N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.byteLength)throw new R("Bad BSON Document: illegal CString");const G1=X?T++:A.toUTF8(Z,J,N);let u=!0;if(V||U.has(G1))u=j;else u=!j;if(N1!==!1&&G1[0]==="$")N1=aO.test(G1);let v;if(J=N+1,y===ez){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");v=e9(Z,J,J+C-1,u),J=J+C}else if(y===JV){const C=A.allocate(12);C.set(Z.subarray(J,J+12)),v=new V1(C),J=J+12}else if(y===s4&&F===!1)v=new S6(Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24);else if(y===s4)v=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;else if(y===$Z&&F===!1)v=new O6(p8.getFloat64(J,!0)),J=J+8;else if(y===$Z)v=p8.getFloat64(J,!0),J=J+8;else if(y===XV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;v=new Date(new M(C,k).toNumber())}else if(y===$V){if(Z[J]!==0&&Z[J]!==1)throw new R("illegal boolean type value");v=Z[J++]===1}else if(y===UX){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;if(k<=0||k>Z.length-J)throw new R("bad embedded document length in bson");if(Q)v=Z.slice(J,J+k);else{let H1=$;if(!V)H1={...$,validation:{utf8:u}};v=JZ(Z,C,H1,!1)}J=J+k}else if(y===ZV){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;let H1=$;const U0=J+k;if(Y&&Y[G1])H1={...$,raw:!0};if(!V)H1={...H1,validation:{utf8:u}};if(v=JZ(Z,C,H1,!0),J=J+k,Z[J-1]!==0)throw new R("invalid array terminator byte");if(J!==U0)throw new R("corrupted array bson")}else if(y===qO)v=void 0;else if(y===jX)v=null;else if(y===LX){const C=q5.fromUint8Array(Z.subarray(J,J+8)),k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,H1=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,U0=new M(k,H1);if(W)v=C.getBigInt64(0,!0);else if(q&&F===!0)v=U0.lessThanOrEqual(cO)&&U0.greaterThanOrEqual(lO)?U0.toNumber():U0;else v=U0}else if(y===GV){const C=A.allocate(16);C.set(Z.subarray(J,J+16),0),J=J+16,v=new Z0(C)}else if(y===MX){let C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;const k=C,H1=Z[J++];if(C<0)throw new R("Negative binary type element size found");if(C>Z.byteLength)throw new R("Binary type size larger than document size");if(Z.slice!=null){if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}if(G&&F)v=A.toLocalBufferType(Z.slice(J,J+C));else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}else{const U0=A.allocate(C);if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}for(N=0;N<C;N++)U0[N]=Z[J+N];if(G&&F)v=U0;else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}J=J+C}else if(y===XZ&&K===!1){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1;const H1=new Array(k.length);for(N=0;N<k.length;N++)switch(k[N]){case"m":H1[N]="m";break;case"s":H1[N]="g";break;case"i":H1[N]="i";break}v=new RegExp(C,H1.join(""))}else if(y===XZ&&K===!0){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1,v=new u0(C,k)}else if(y===YV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=F?k:new U4(k),J=J+C}else if(y===KV){const C=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24),k=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24);v=new m0({i:C,t:k})}else if(y===qV)v=new V4;else if(y===FV)v=new z4;else if(y===AX){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=new Z6(k),J=J+C}else if(y===QV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<13)throw new R("code_w_scope total size shorter minimum expected length");const k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(k<=0||k>Z.length-J||Z[J+k-1]!==0)throw new R("bad string length in bson");const H1=e9(Z,J,J+k-1,u);J=J+k;const U0=J,Z$=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24,KN=JZ(Z,U0,$,!1);if(J=J+Z$,C<8+Z$+k)throw new R("code_w_scope total size is too short, truncating scope");if(C>8+Z$+k)throw new R("code_w_scope total size is too long, clips outer document");v=new Z6(H1,KN)}else if(y===FO){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");if(H!=null&&H.utf8){if(!VV(Z,J,J+C-1))throw new R("Invalid UTF-8 string in BSON document")}const k=A.toUTF8(Z,J,J+C-1);J=J+C;const H1=A.allocate(12);H1.set(Z.subarray(J,J+12),0);const U0=new V1(H1);J=J+12,v=new y8(k,U0)}else throw new R(`Detected unknown BSON type ${y.toString(16)} for fieldname "${G1}"`);if(G1==="__proto__")Object.defineProperty(w,G1,{value:v,writable:!0,enumerable:!0,configurable:!0});else w[G1]=v}if(B!==J-D){if(X)throw new R("corrupt array bson");throw new R("corrupt object bson")}if(!N1)return w;if(HV(w)){const y=Object.assign({},w);return delete y.$ref,delete y.$id,delete y.$db,new y8(w.$ref,w.$id,w.$db,y)}return w},e9=function(Z,J,$,X){const Y=A.toUTF8(Z,J,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!VV(Z,J,$))throw new R("Invalid UTF-8 string in BSON document");break}}return Y},s$=function(Z,J,$,X){Z[X++]=ez;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y+1,Z[X-1]=0;const Q=A.encodeUTF8Into(Z,$,X+4);return Z[X+3]=Q+1>>24&255,Z[X+2]=Q+1>>16&255,Z[X+1]=Q+1>>8&255,Z[X]=Q+1&255,X=X+4+Q,Z[X++]=0,X},n$=function(Z,J,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=GZ&&$>=qZ?s4:$Z;if(Q===s4)t4.setInt32(0,$,!0);else t4.setFloat64(0,$,!0);const K=Q===s4?iO:KZ;Z[X++]=Q;const G=A.encodeUTF8Into(Z,J,X);return X=X+G,Z[X++]=0,Z.set(K,X),X+=K.byteLength,X},t$=function(Z,J,$,X){Z[X++]=LX;const Y=A.encodeUTF8Into(Z,J,X);return X+=Y,Z[X++]=0,t4.setBigInt64(0,$,!0),Z.set(KZ,X),X+=KZ.byteLength,X},G5=function(Z,J,$,X){Z[X++]=jX;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},r$=function(Z,J,$,X){Z[X++]=$V;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$?1:0,X},o$=function(Z,J,$,X){Z[X++]=XV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=G&255,Z[X++]=G>>8&255,Z[X++]=G>>16&255,Z[X++]=G>>24&255,X},e$=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.source&&$.source.match(QZ)!=null)throw new R("value "+$.source+" must not contain null bytes");if(X=X+A.encodeUTF8Into(Z,$.source,X),Z[X++]=0,$.ignoreCase)Z[X++]=105;if($.global)Z[X++]=115;if($.multiline)Z[X++]=109;return Z[X++]=0,X},ZX=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.pattern.match(QZ)!=null)throw new R("pattern "+$.pattern+" must not contain null bytes");X=X+A.encodeUTF8Into(Z,$.pattern,X),Z[X++]=0;const Q=$.options.split("").sort().join("");return X=X+A.encodeUTF8Into(Z,Q,X),Z[X++]=0,X},JX=function(Z,J,$,X){if($===null)Z[X++]=jX;else if($._bsontype==="MinKey")Z[X++]=qV;else Z[X++]=FV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},$X=function(Z,J,$,X){Z[X++]=JV;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,B6($.id))Z.set($.id.subarray(0,12),X);else throw new R("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X+12},XX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.length;return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=WO,Z.set($,X),X=X+Q,X},YX=function(Z,J,$,X,Y,Q,K,G,q){if(q.has($))throw new R("Cannot convert circular structure to BSON");q.add($),Z[X++]=Array.isArray($)?ZV:UX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=W5(Z,$,Y,X,Q+1,K,G,q);return q.delete($),W},QX=function(Z,J,$,X){Z[X++]=GV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z.set($.bytes.subarray(0,16),X),X+16},KX=function(Z,J,$,X){Z[X++]=$._bsontype==="Long"?LX:KV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,X},GX=function(Z,J,$,X){$=$.valueOf(),Z[X++]=s4;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$&255,Z[X++]=$>>8&255,Z[X++]=$>>16&255,Z[X++]=$>>24&255,X},qX=function(Z,J,$,X){Z[X++]=$Z;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,t4.setFloat64(0,$.value,!0),Z.set(KZ,X),X=X+8,X},FX=function(Z,J,$,X){Z[X++]=AX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.toString(),K=A.encodeUTF8Into(Z,Q,X+4)+1;return Z[X]=K&255,Z[X+1]=K>>8&255,Z[X+2]=K>>16&255,Z[X+3]=K>>24&255,X=X+4+K-1,Z[X++]=0,X},WX=function(Z,J,$,X,Y=!1,Q=0,K=!1,G=!0,q){if($.scope&&typeof $.scope==="object"){Z[X++]=QV;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;let W=X;const H=$.code;X=X+4;const V=A.encodeUTF8Into(Z,H,X+4)+1;Z[X]=V&255,Z[X+1]=V>>8&255,Z[X+2]=V>>16&255,Z[X+3]=V>>24&255,Z[X+4+V-1]=0,X=X+V+4;const j=W5(Z,$.scope,Y,X,Q+1,K,G,q);X=j-1;const U=j-W;Z[W++]=U&255,Z[W++]=U>>8&255,Z[W++]=U>>16&255,Z[W++]=U>>24&255,Z[X++]=0}else{Z[X++]=AX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=$.code.toString(),H=A.encodeUTF8Into(Z,W,X+4)+1;Z[X]=H&255,Z[X+1]=H>>8&255,Z[X+2]=H>>16&255,Z[X+3]=H>>24&255,X=X+4+H-1,Z[X++]=0}return X},HX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K+4;if(Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=$.sub_type,$.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K-4,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255;return Z.set(Q,X),X=X+$.position,X},zX=function(Z,J,$,X){Z[X++]=YV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=A.encodeUTF8Into(Z,$.value,X+4)+1;return Z[X]=Q&255,Z[X+1]=Q>>8&255,Z[X+2]=Q>>16&255,Z[X+3]=Q>>24&255,X=X+4+Q-1,Z[X++]=0,X},VX=function(Z,J,$,X,Y,Q,K){Z[X++]=UX;const G=A.encodeUTF8Into(Z,J,X);X=X+G,Z[X++]=0;let q=X,F={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)F.$db=$.db;F=Object.assign(F,$.fields);const W=W5(Z,F,!1,X,Y+1,Q,!0,K),H=W-q;return Z[q++]=H&255,Z[q++]=H>>8&255,Z[q++]=H>>16&255,Z[q++]=H>>24&255,W},W5=function(Z,J,$,X,Y,Q,K,G){if(G==null){if(J==null)return Z[0]=5,Z[1]=0,Z[2]=0,Z[3]=0,Z[4]=0,5;if(Array.isArray(J))throw new R("serialize does not support an array as the root input");if(typeof J!=="object")throw new R("serialize does not support non-object as the root input");else if("_bsontype"in J&&typeof J._bsontype==="string")throw new R("BSON types cannot be serialized as a document");else if(a4(J)||l4(J)||B6(J)||iz(J))throw new R("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(J);let q=X+4;if(Array.isArray(J))for(let W=0;W<J.length;W++){const H=`${W}`;let V=J[W];if(typeof V?.toBSON==="function")V=V.toBSON();if(typeof V==="string")q=s$(Z,H,V,q);else if(typeof V==="number")q=n$(Z,H,V,q);else if(typeof V==="bigint")q=t$(Z,H,V,q);else if(typeof V==="boolean")q=r$(Z,H,V,q);else if(V instanceof Date||a4(V))q=o$(Z,H,V,q);else if(V===void 0)q=G5(Z,H,V,q);else if(V===null)q=G5(Z,H,V,q);else if(B6(V))q=XX(Z,H,V,q);else if(V instanceof RegExp||l4(V))q=e$(Z,H,V,q);else if(typeof V==="object"&&V._bsontype==null)q=YX(Z,H,V,q,$,Y,Q,K,G);else if(typeof V==="object"&&V[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(V._bsontype==="ObjectId")q=$X(Z,H,V,q);else if(V._bsontype==="Decimal128")q=QX(Z,H,V,q);else if(V._bsontype==="Long"||V._bsontype==="Timestamp")q=KX(Z,H,V,q);else if(V._bsontype==="Double")q=qX(Z,H,V,q);else if(typeof V==="function"&&Q)q=FX(Z,H,V,q);else if(V._bsontype==="Code")q=WX(Z,H,V,q,$,Y,Q,K,G);else if(V._bsontype==="Binary")q=HX(Z,H,V,q);else if(V._bsontype==="BSONSymbol")q=zX(Z,H,V,q);else if(V._bsontype==="DBRef")q=VX(Z,H,V,q,Y,Q,G);else if(V._bsontype==="BSONRegExp")q=ZX(Z,H,V,q);else if(V._bsontype==="Int32")q=GX(Z,H,V,q);else if(V._bsontype==="MinKey"||V._bsontype==="MaxKey")q=JX(Z,H,V,q);else if(typeof V._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(V._bsontype)}`)}else if(J instanceof Map||sz(J)){const W=J.entries();let H=!1;while(!H){const V=W.next();if(H=!!V.done,H)continue;const j=V.value[0];let U=V.value[1];if(typeof U?.toBSON==="function")U=U.toBSON();const L=typeof U;if(typeof j==="string"&&!lz.has(j)){if(j.match(QZ)!=null)throw new R("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new R("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new R("key "+j+" must not contain '.'")}}if(L==="string")q=s$(Z,j,U,q);else if(L==="number")q=n$(Z,j,U,q);else if(L==="bigint")q=t$(Z,j,U,q);else if(L==="boolean")q=r$(Z,j,U,q);else if(U instanceof Date||a4(U))q=o$(Z,j,U,q);else if(U===null||U===void 0&&K===!1)q=G5(Z,j,U,q);else if(B6(U))q=XX(Z,j,U,q);else if(U instanceof RegExp||l4(U))q=e$(Z,j,U,q);else if(L==="object"&&U._bsontype==null)q=YX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(U._bsontype==="ObjectId")q=$X(Z,j,U,q);else if(L==="object"&&U._bsontype==="Decimal128")q=QX(Z,j,U,q);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")q=KX(Z,j,U,q);else if(U._bsontype==="Double")q=qX(Z,j,U,q);else if(U._bsontype==="Code")q=WX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="function"&&Q)q=FX(Z,j,U,q);else if(U._bsontype==="Binary")q=HX(Z,j,U,q);else if(U._bsontype==="BSONSymbol")q=zX(Z,j,U,q);else if(U._bsontype==="DBRef")q=VX(Z,j,U,q,Y,Q,G);else if(U._bsontype==="BSONRegExp")q=ZX(Z,j,U,q);else if(U._bsontype==="Int32")q=GX(Z,j,U,q);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")q=JX(Z,j,U,q);else if(typeof U._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}}else{if(typeof J?.toBSON==="function"){if(J=J.toBSON(),J!=null&&typeof J!=="object")throw new R("toBSON function did not return an object")}for(let W of Object.keys(J)){let H=J[W];if(typeof H?.toBSON==="function")H=H.toBSON();const V=typeof H;if(typeof W==="string"&&!lz.has(W)){if(W.match(QZ)!=null)throw new R("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new R("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new R("key "+W+" must not contain '.'")}}if(V==="string")q=s$(Z,W,H,q);else if(V==="number")q=n$(Z,W,H,q);else if(V==="bigint")q=t$(Z,W,H,q);else if(V==="boolean")q=r$(Z,W,H,q);else if(H instanceof Date||a4(H))q=o$(Z,W,H,q);else if(H===void 0){if(K===!1)q=G5(Z,W,H,q)}else if(H===null)q=G5(Z,W,H,q);else if(B6(H))q=XX(Z,W,H,q);else if(H instanceof RegExp||l4(H))q=e$(Z,W,H,q);else if(V==="object"&&H._bsontype==null)q=YX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(H._bsontype==="ObjectId")q=$X(Z,W,H,q);else if(V==="object"&&H._bsontype==="Decimal128")q=QX(Z,W,H,q);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")q=KX(Z,W,H,q);else if(H._bsontype==="Double")q=qX(Z,W,H,q);else if(H._bsontype==="Code")q=WX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="function"&&Q)q=FX(Z,W,H,q);else if(H._bsontype==="Binary")q=HX(Z,W,H,q);else if(H._bsontype==="BSONSymbol")q=zX(Z,W,H,q);else if(H._bsontype==="DBRef")q=VX(Z,W,H,q,Y,Q,G);else if(H._bsontype==="BSONRegExp")q=ZX(Z,W,H,q);else if(H._bsontype==="Int32")q=GX(Z,W,H,q);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")q=JX(Z,W,H,q);else if(typeof H._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(J),Z[q++]=0;const F=q-X;return Z[X++]=F&255,Z[X++]=F>>8&255,Z[X++]=F>>16&255,Z[X++]=F>>24&255,q},sO=function(Z){return Z!=null&&typeof Z==="object"&&"_bsontype"in Z&&typeof Z._bsontype==="string"},MV=function(Z,J={}){if(typeof Z==="number"){const X=Z<=GZ&&Z>=qZ,Y=Z<=nz&&Z>=tz;if(J.relaxed||J.legacy)return Z;if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(X)return new S6(Z);if(Y){if(J.useBigInt64)return BigInt(Z);return M.fromNumber(Z)}}return new O6(Z)}if(Z==null||typeof Z!=="object")return Z;if(Z.$undefined)return null;const $=Object.keys(Z).filter((X)=>X.startsWith("$")&&Z[X]!=null);for(let X=0;X<$.length;X++){const Y=nO[$[X]];if(Y)return Y.fromExtendedJSON(Z,J)}if(Z.$date!=null){const X=Z.$date,Y=new Date;if(J.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&J.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(Z.$code!=null){const X=Object.assign({},Z);if(Z.$scope)X.$scope=MV(Z.$scope);return Z6.fromExtendedJSON(Z)}if(HV(Z)||Z.$dbPointer){const X=Z.$ref?Z:Z.$dbPointer;if(X instanceof y8)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return y8.fromExtendedJSON(X)}return Z},tO=function(Z,J){return Z.map(($,X)=>{J.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return e8($,J)}finally{J.seenObjects.pop()}})},az=function(Z){const J=Z.toISOString();return Z.getUTCMilliseconds()!==0?J:J.slice(0,-5)+"Z"},e8=function(Z,J){if(Z instanceof Map||sz(Z)){const $=Object.create(null);for(let[X,Y]of Z){if(typeof X!=="string")throw new R("Can only serialize maps with string keys");$[X]=Y}return e8($,J)}if((typeof Z==="object"||typeof Z==="function")&&Z!==null){const $=J.seenObjects.findIndex((X)=>X.obj===Z);if($!==-1){const X=J.seenObjects.map((W)=>W.propertyName),Y=X.slice(0,$).map((W)=>`${W} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((W)=>`${W} -> `).join(""),G=X[X.length-1],q=" ".repeat(Y.length+Q.length/2),F="-".repeat(K.length+(Q.length+G.length)/2-1);throw new R("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${q}\\${F}/`)}J.seenObjects[J.seenObjects.length-1].obj=Z}if(Array.isArray(Z))return tO(Z,J);if(Z===void 0)return null;if(Z instanceof Date||a4(Z)){const $=Z.getTime(),X=$>-1&&$<253402318800000;if(J.legacy)return J.relaxed&&X?{$date:Z.getTime()}:{$date:az(Z)};return J.relaxed&&X?{$date:az(Z)}:{$date:{$numberLong:Z.getTime().toString()}}}if(typeof Z==="number"&&(!J.relaxed||!isFinite(Z))){if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(Z>=qZ&&Z<=GZ)return{$numberInt:Z.toString()};if(Z>=tz&&Z<=nz)return{$numberLong:Z.toString()}}return{$numberDouble:Object.is(Z,-0)?"-0.0":Z.toString()}}if(typeof Z==="bigint"){if(!J.relaxed)return{$numberLong:BigInt.asIntN(64,Z).toString()};return Number(BigInt.asIntN(64,Z))}if(Z instanceof RegExp||l4(Z)){let $=Z.flags;if($===void 0){const Y=Z.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(Z.source,$).toExtendedJSON(J)}if(Z!=null&&typeof Z==="object")return oO(Z,J);return Z},oO=function(Z,J){if(Z==null||typeof Z!=="object")throw new R("not an object instance");const $=Z._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(Z)){J.seenObjects.push({propertyName:Y,obj:null});try{const Q=e8(Z[Y],J);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{J.seenObjects.pop()}}return X}else if(Z!=null&&typeof Z==="object"&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(sO(Z)){let X=Z;if(typeof X.toExtendedJSON!=="function"){const Y=rO[Z._bsontype];if(!Y)throw new R("Unrecognized or invalid _bsontype: "+Z._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new Z6(X.code,e8(X.scope,J));else if($==="DBRef"&&X.oid)X=new y8(e8(X.collection,J),e8(X.oid,J),e8(X.db,J),e8(X.fields,J));return X.toExtendedJSON(J)}else throw new R("_bsontype must be a string, but was: "+typeof $)},jV=function(Z,J){const $={useBigInt64:J?.useBigInt64??!1,relaxed:J?.relaxed??!0,legacy:J?.legacy??!1};return JSON.parse(Z,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new R(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return MV(Y,$)})},AV=function(Z,J,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(J!=null&&typeof J==="object"&&!Array.isArray(J))X=J,J=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=e8(Z,Y);return JSON.stringify(Q,J,$)},eO=function(Z,J){return J=J||{},JSON.parse(AV(Z,J))},ZS=function(Z,J){return J=J||{},jV(JSON.stringify(Z),J)},wV=function(Z){if(C6.length<Z)C6=A.allocate(Z)},RV=function(Z,J={}){const $=typeof J.checkKeys==="boolean"?J.checkKeys:!1,X=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,Y=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0,Q=typeof J.minInternalBufferSize==="number"?J.minInternalBufferSize:LV;if(C6.length<Q)C6=A.allocate(Q);const K=W5(C6,Z,$,0,0,X,Y,null),G=A.allocate(K);return G.set(C6.subarray(0,K),0),G},PV=function(Z,J,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=W5(C6,Z,X,0,0,Y,Q,null);return J.set(C6.subarray(0,G),K),K+G-1},DV=function(Z,J={}){return UV(A.toLocalBufferType(Z),J)},TV=function(Z,J={}){J=J||{};const $=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,X=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0;return ZZ(Z,$,X)},IV=function(Z,J,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=A.toLocalBufferType(Z);let q=J;for(let F=0;F<$;F++){const W=G[q]|G[q+1]<<8|G[q+2]<<16|G[q+3]<<24;K.index=q,X[Y+F]=UV(G,K),q=q+W}return q},H4=5,GZ=2147483647,qZ=-2147483648,nz=Math.pow(2,63)-1,tz=-Math.pow(2,63),rz=Math.pow(2,53),oz=-Math.pow(2,53),$Z=1,ez=2,UX=3,ZV=4,MX=5,qO=6,JV=7,$V=8,XV=9,jX=10,XZ=11,FO=12,AX=13,YV=14,QV=15,s4=16,KV=17,LX=18,GV=19,qV=255,FV=127,WO=0,YZ=4,WV=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 R extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(Z){super(Z)}static isBSONError(Z){return Z!=null&&typeof Z==="object"&&"bsonError"in Z&&Z.bsonError===!0&&"name"in Z&&"message"in Z&&"stack"in Z}}class h6 extends R{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${H4}.x.x`)}}class F5 extends R{get name(){return"BSONRuntimeError"}constructor(Z){super(Z)}}var zO=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return HO}})(),N6={toLocalBufferType(Z){if(Buffer.isBuffer(Z))return Z;if(ArrayBuffer.isView(Z))return Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return Buffer.from(Z);throw new R(`Cannot create Buffer from ${String(Z)}`)},allocate(Z){return Buffer.alloc(Z)},equals(Z,J){return N6.toLocalBufferType(Z).equals(J)},fromNumberArray(Z){return Buffer.from(Z)},fromBase64(Z){return Buffer.from(Z,"base64")},toBase64(Z){return N6.toLocalBufferType(Z).toString("base64")},fromISO88591(Z){return Buffer.from(Z,"binary")},toISO88591(Z){return N6.toLocalBufferType(Z).toString("binary")},fromHex(Z){return Buffer.from(Z,"hex")},toHex(Z){return N6.toLocalBufferType(Z).toString("hex")},fromUTF8(Z){return Buffer.from(Z,"utf8")},toUTF8(Z,J,$){return N6.toLocalBufferType(Z).toString("utf8",J,$)},utf8ByteLength(Z){return Buffer.byteLength(Z,"utf8")},encodeUTF8Into(Z,J,$){return N6.toLocalBufferType(Z).write(J,$,void 0,"utf8")},randomBytes:zO},MO=(()=>{const{crypto:Z}=globalThis;if(Z!=null&&typeof Z.getRandomValues==="function")return(J)=>{return Z.getRandomValues(n4.allocate(J))};else{if(VO()){const{console:J}=globalThis;J?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return UO}})(),kz=/(\d|[a-f])/i,n4={toLocalBufferType(Z){const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="Uint8Array")return Z;if(ArrayBuffer.isView(Z))return new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength));if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return new Uint8Array(Z);throw new R(`Cannot make a Uint8Array from ${String(Z)}`)},allocate(Z){if(typeof Z!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(Z)}`);return new Uint8Array(Z)},equals(Z,J){if(Z.byteLength!==J.byteLength)return!1;for(let $=0;$<Z.byteLength;$++)if(Z[$]!==J[$])return!1;return!0},fromNumberArray(Z){return Uint8Array.from(Z)},fromBase64(Z){return Uint8Array.from(atob(Z),(J)=>J.charCodeAt(0))},toBase64(Z){return btoa(n4.toISO88591(Z))},fromISO88591(Z){return Uint8Array.from(Z,(J)=>J.charCodeAt(0)&255)},toISO88591(Z){return Array.from(Uint16Array.from(Z),(J)=>String.fromCharCode(J)).join("")},fromHex(Z){const J=Z.length%2===0?Z:Z.slice(0,Z.length-1),$=[];for(let X=0;X<J.length;X+=2){const Y=J[X],Q=J[X+1];if(!kz.test(Y))break;if(!kz.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(Z){return Array.from(Z,(J)=>J.toString(16).padStart(2,"0")).join("")},fromUTF8(Z){return(new TextEncoder()).encode(Z)},toUTF8(Z,J,$){return new TextDecoder("utf8",{fatal:!1}).decode(Z.slice(J,$))},utf8ByteLength(Z){return n4.fromUTF8(Z).byteLength},encodeUTF8Into(Z,J,$){const X=n4.fromUTF8(J);return Z.set(X,$),X.byteLength},randomBytes:MO},jO=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,A=jO?N6:n4;class q5 extends DataView{static fromUint8Array(Z){return new DataView(Z.buffer,Z.byteOffset,Z.byteLength)}}class q0{get[Symbol.for("@@mdb.bson.version")](){return H4}}class s extends q0{get _bsontype(){return"Binary"}constructor(Z,J){super();if(Z!=null&&typeof Z!=="string"&&!ArrayBuffer.isView(Z)&&!(Z instanceof ArrayBuffer)&&!Array.isArray(Z))throw new R("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");if(this.sub_type=J??s.BSON_BINARY_SUBTYPE_DEFAULT,Z==null)this.buffer=A.allocate(s.BUFFER_SIZE),this.position=0;else{if(typeof Z==="string")this.buffer=A.fromISO88591(Z);else if(Array.isArray(Z))this.buffer=A.fromNumberArray(Z);else this.buffer=A.toLocalBufferType(Z);this.position=this.buffer.byteLength}}put(Z){if(typeof Z==="string"&&Z.length!==1)throw new R("only accepts single character String");else if(typeof Z!=="number"&&Z.length!==1)throw new R("only accepts single character Uint8Array or Array");let J;if(typeof Z==="string")J=Z.charCodeAt(0);else if(typeof Z==="number")J=Z;else J=Z[0];if(J<0||J>255)throw new R("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=J;else{const $=A.allocate(s.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=J}}write(Z,J){if(J=typeof J==="number"?J:this.position,this.buffer.byteLength<J+Z.length){const $=A.allocate(this.buffer.byteLength+Z.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(Z))this.buffer.set(A.toLocalBufferType(Z),J),this.position=J+Z.byteLength>this.position?J+Z.length:this.position;else if(typeof Z==="string"){const $=A.fromISO88591(Z);this.buffer.set($,J),this.position=J+Z.length>this.position?J+Z.length:this.position}}read(Z,J){return J=J&&J>0?J:this.position,this.buffer.slice(Z,Z+J)}value(Z){if(Z=!!Z,Z&&this.buffer.length===this.position)return this.buffer;if(Z)return this.buffer.slice(0,this.position);return A.toISO88591(this.buffer.subarray(0,this.position))}length(){return this.position}toJSON(){return A.toBase64(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.buffer);if(Z==="base64")return A.toBase64(this.buffer);if(Z==="utf8"||Z==="utf-8")return A.toUTF8(this.buffer,0,this.buffer.byteLength);return A.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(Z){Z=Z||{};const J=A.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(Z.legacy)return{$binary:J,$type:$.length===1?"0"+$:$};return{$binary:{base64:J,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===s.SUBTYPE_UUID)return new S1(this.buffer.slice(0,this.position));throw new R(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${s.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(Z,J){return new s(A.fromHex(Z),J)}static createFromBase64(Z,J){return new s(A.fromBase64(Z),J)}static fromExtendedJSON(Z,J){J=J||{};let $,X;if("$binary"in Z){if(J.legacy&&typeof Z.$binary==="string"&&"$type"in Z)X=Z.$type?parseInt(Z.$type,16):0,$=A.fromBase64(Z.$binary);else if(typeof Z.$binary!=="string")X=Z.$binary.subType?parseInt(Z.$binary.subType,16):0,$=A.fromBase64(Z.$binary.base64)}else if("$uuid"in Z)X=4,$=S1.bytesFromString(Z.$uuid);if(!$)throw new R(`Unexpected Binary Extended JSON format ${JSON.stringify(Z)}`);return X===YZ?new S1($):new s($,X)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`Binary.createFromBase64("${A.toBase64(this.buffer.subarray(0,this.position))}", ${this.sub_type})`}}s.BSON_BINARY_SUBTYPE_DEFAULT=0;s.BUFFER_SIZE=256;s.SUBTYPE_DEFAULT=0;s.SUBTYPE_FUNCTION=1;s.SUBTYPE_BYTE_ARRAY=2;s.SUBTYPE_UUID_OLD=3;s.SUBTYPE_UUID=4;s.SUBTYPE_MD5=5;s.SUBTYPE_ENCRYPTED=6;s.SUBTYPE_COLUMN=7;s.SUBTYPE_USER_DEFINED=128;var a$=16,AO=/^[0-9A-F]{32}$/i,LO=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class S1 extends s{constructor(Z){let J;if(Z==null)J=S1.generate();else if(Z instanceof S1)J=A.toLocalBufferType(new Uint8Array(Z.buffer));else if(ArrayBuffer.isView(Z)&&Z.byteLength===a$)J=A.toLocalBufferType(Z);else if(typeof Z==="string")J=S1.bytesFromString(Z);else throw new R("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(J,YZ)}get id(){return this.buffer}set id(Z){this.buffer=Z}toHexString(Z=!0){if(Z)return[A.toHex(this.buffer.subarray(0,4)),A.toHex(this.buffer.subarray(4,6)),A.toHex(this.buffer.subarray(6,8)),A.toHex(this.buffer.subarray(8,10)),A.toHex(this.buffer.subarray(10,16))].join("-");return A.toHex(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.id);if(Z==="base64")return A.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(!Z)return!1;if(Z instanceof S1)return A.equals(Z.id,this.id);try{return A.equals(new S1(Z).id,this.id)}catch{return!1}}toBinary(){return new s(this.id,s.SUBTYPE_UUID)}static generate(){const Z=A.randomBytes(a$);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z}static isValid(Z){if(!Z)return!1;if(typeof Z==="string")return S1.isValidUUIDString(Z);if(B6(Z))return Z.byteLength===a$;return Z._bsontype==="Binary"&&Z.sub_type===this.SUBTYPE_UUID&&Z.buffer.byteLength===16}static createFromHexString(Z){const J=S1.bytesFromString(Z);return new S1(J)}static createFromBase64(Z){return new S1(A.fromBase64(Z))}static bytesFromString(Z){if(!S1.isValidUUIDString(Z))throw new R("UUID string representation must be 32 hex digits or canonical hyphenated representation");return A.fromHex(Z.replace(/-/g,""))}static isValidUUIDString(Z){return AO.test(Z)||LO.test(Z)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new UUID("${this.toHexString()}")`}}S1.cacheHexString=!1;class Z6 extends q0{get _bsontype(){return"Code"}constructor(Z,J){super();this.code=Z.toString(),this.scope=J??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(Z){return new Z6(Z.$code,Z.$scope)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.toJSON();return`new Code("${String(Z.code)}"${Z.scope!=null?`, ${JSON.stringify(Z.scope)}`:""})`}}class y8 extends q0{get _bsontype(){return"DBRef"}constructor(Z,J,$,X){super();const Y=Z.split(".");if(Y.length===2)$=Y.shift(),Z=Y.shift();this.collection=Z,this.oid=J,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(Z){this.collection=Z}toJSON(){const Z=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)Z.$db=this.db;return Z}toExtendedJSON(Z){Z=Z||{};let J={$ref:this.collection,$id:this.oid};if(Z.legacy)return J;if(this.db)J.$db=this.db;return J=Object.assign(J,this.fields),J}static fromExtendedJSON(Z){const J=Object.assign({},Z);return delete J.$ref,delete J.$id,delete J.$db,new y8(Z.$ref,Z.$id,Z.$db,J)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return`new DBRef("${this.namespace}", new ObjectId("${String(Z)}")${this.db?`, "${this.db}"`:""})`}}var b0=void 0;try{b0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var _z=1<<16,wO=1<<24,i4=_z*_z,zV=i4*i4,xz=zV/2,vz={},fz={},RO=20,PO=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends q0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(Z=0,J,$){super();if(typeof Z==="bigint")Object.assign(this,M.fromBigInt(Z,!!J));else if(typeof Z==="string")Object.assign(this,M.fromString(Z,!!J));else this.low=Z|0,this.high=J|0,this.unsigned=!!$}static fromBits(Z,J,$){return new M(Z,J,$)}static fromInt(Z,J){let $,X,Y;if(J){if(Z>>>=0,Y=0<=Z&&Z<256){if(X=fz[Z],X)return X}if($=M.fromBits(Z,(Z|0)<0?-1:0,!0),Y)fz[Z]=$;return $}else{if(Z|=0,Y=-128<=Z&&Z<128){if(X=vz[Z],X)return X}if($=M.fromBits(Z,Z<0?-1:0,!1),Y)vz[Z]=$;return $}}static fromNumber(Z,J){if(isNaN(Z))return J?M.UZERO:M.ZERO;if(J){if(Z<0)return M.UZERO;if(Z>=zV)return M.MAX_UNSIGNED_VALUE}else{if(Z<=-xz)return M.MIN_VALUE;if(Z+1>=xz)return M.MAX_VALUE}if(Z<0)return M.fromNumber(-Z,J).neg();return M.fromBits(Z%i4|0,Z/i4|0,J)}static fromBigInt(Z,J){return M.fromString(Z.toString(),J)}static fromString(Z,J,$){if(Z.length===0)throw new R("empty string");if(Z==="NaN"||Z==="Infinity"||Z==="+Infinity"||Z==="-Infinity")return M.ZERO;if(typeof J==="number")$=J,J=!1;else J=!!J;if($=$||10,$<2||36<$)throw new R("radix");let X;if((X=Z.indexOf("-"))>0)throw new R("interior hyphen");else if(X===0)return M.fromString(Z.substring(1),J,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<Z.length;K+=8){const G=Math.min(8,Z.length-K),q=parseInt(Z.substring(K,K+G),$);if(G<8){const F=M.fromNumber(Math.pow($,G));Q=Q.mul(F).add(M.fromNumber(q))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(q))}return Q.unsigned=J,Q}static fromBytes(Z,J,$){return $?M.fromBytesLE(Z,J):M.fromBytesBE(Z,J)}static fromBytesLE(Z,J){return new M(Z[0]|Z[1]<<8|Z[2]<<16|Z[3]<<24,Z[4]|Z[5]<<8|Z[6]<<16|Z[7]<<24,J)}static fromBytesBE(Z,J){return new M(Z[4]<<24|Z[5]<<16|Z[6]<<8|Z[7],Z[0]<<24|Z[1]<<16|Z[2]<<8|Z[3],J)}static isLong(Z){return Z!=null&&typeof Z==="object"&&"__isLong__"in Z&&Z.__isLong__===!0}static fromValue(Z,J){if(typeof Z==="number")return M.fromNumber(Z,J);if(typeof Z==="string")return M.fromString(Z,J);return M.fromBits(Z.low,Z.high,typeof J==="boolean"?J:Z.unsigned)}add(Z){if(!M.isLong(Z))Z=M.fromValue(Z);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y+q,H+=V>>>16,V&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,F+=W>>>16,W&=65535,F+=J+Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}and(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low&Z.low,this.high&Z.high,this.unsigned)}compare(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.eq(Z))return 0;const J=this.isNegative(),$=Z.isNegative();if(J&&!$)return-1;if(!J&&$)return 1;if(!this.unsigned)return this.sub(Z).isNegative()?-1:1;return Z.high>>>0>this.high>>>0||Z.high===this.high&&Z.low>>>0>this.low>>>0?-1:1}comp(Z){return this.compare(Z)}divide(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(Z.isZero())throw new R("division by zero");if(b0){if(!this.unsigned&&this.high===-2147483648&&Z.low===-1&&Z.high===-1)return this;const Y=(this.unsigned?b0.div_u:b0.div_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(Y,b0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let J,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(Z.eq(M.ONE)||Z.eq(M.NEG_ONE))return M.MIN_VALUE;else if(Z.eq(M.MIN_VALUE))return M.ONE;else if(J=this.shr(1).div(Z).shl(1),J.eq(M.ZERO))return Z.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(Z.mul(J)),X=J.add($.div(Z)),X;else if(Z.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(Z.isNegative())return this.neg().div(Z.neg());return this.neg().div(Z).neg()}else if(Z.isNegative())return this.div(Z.neg()).neg();X=M.ZERO}else{if(!Z.unsigned)Z=Z.toUnsigned();if(Z.gt(this))return M.UZERO;if(Z.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(Z)){J=Math.max(1,Math.floor($.toNumber()/Z.toNumber()));const Y=Math.ceil(Math.log(J)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(J),G=K.mul(Z);while(G.isNegative()||G.gt($))J-=Q,K=M.fromNumber(J,this.unsigned),G=K.mul(Z);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(Z){return this.divide(Z)}equals(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.unsigned!==Z.unsigned&&this.high>>>31===1&&Z.high>>>31===1)return!1;return this.high===Z.high&&this.low===Z.low}eq(Z){return this.equals(Z)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const Z=this.high!==0?this.high:this.low;let J;for(J=31;J>0;J--)if((Z&1<<J)!==0)break;return this.high!==0?J+33:J+1}greaterThan(Z){return this.comp(Z)>0}gt(Z){return this.greaterThan(Z)}greaterThanOrEqual(Z){return this.comp(Z)>=0}gte(Z){return this.greaterThanOrEqual(Z)}ge(Z){return this.greaterThanOrEqual(Z)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(Z){return this.comp(Z)<0}lt(Z){return this.lessThan(Z)}lessThanOrEqual(Z){return this.comp(Z)<=0}lte(Z){return this.lessThanOrEqual(Z)}modulo(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const J=(this.unsigned?b0.rem_u:b0.rem_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(J,b0.get_high(),this.unsigned)}return this.sub(this.div(Z).mul(Z))}mod(Z){return this.modulo(Z)}rem(Z){return this.modulo(Z)}multiply(Z){if(this.isZero())return M.ZERO;if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const j=b0.mul(this.low,this.high,Z.low,Z.high);return M.fromBits(j,b0.get_high(),this.unsigned)}if(Z.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return Z.isOdd()?M.MIN_VALUE:M.ZERO;if(Z.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(Z.isNegative())return this.neg().mul(Z.neg());else return this.neg().mul(Z).neg();else if(Z.isNegative())return this.mul(Z.neg()).neg();if(this.lt(M.TWO_PWR_24)&&Z.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*Z.toNumber(),this.unsigned);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y*q,H+=V>>>16,V&=65535,H+=X*q,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*q,F+=W>>>16,W&=65535,W+=X*G,F+=W>>>16,W&=65535,W+=Y*K,F+=W>>>16,W&=65535,F+=J*q+$*G+X*K+Y*Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}mul(Z){return this.multiply(Z)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(Z){return!this.equals(Z)}neq(Z){return this.notEquals(Z)}ne(Z){return this.notEquals(Z)}or(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low|Z.low,this.high|Z.high,this.unsigned)}shiftLeft(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low<<Z,this.high<<Z|this.low>>>32-Z,this.unsigned);else return M.fromBits(0,this.low<<Z-32,this.unsigned)}shl(Z){return this.shiftLeft(Z)}shiftRight(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low>>>Z|this.high<<32-Z,this.high>>Z,this.unsigned);else return M.fromBits(this.high>>Z-32,this.high>=0?0:-1,this.unsigned)}shr(Z){return this.shiftRight(Z)}shiftRightUnsigned(Z){if(M.isLong(Z))Z=Z.toInt();if(Z&=63,Z===0)return this;else{const J=this.high;if(Z<32){const $=this.low;return M.fromBits($>>>Z|J<<32-Z,J>>>Z,this.unsigned)}else if(Z===32)return M.fromBits(J,0,this.unsigned);else return M.fromBits(J>>>Z-32,0,this.unsigned)}}shr_u(Z){return this.shiftRightUnsigned(Z)}shru(Z){return this.shiftRightUnsigned(Z)}subtract(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return this.add(Z.neg())}sub(Z){return this.subtract(Z)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*i4+(this.low>>>0);return this.high*i4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(Z){return Z?this.toBytesLE():this.toBytesBE()}toBytesLE(){const Z=this.high,J=this.low;return[J&255,J>>>8&255,J>>>16&255,J>>>24,Z&255,Z>>>8&255,Z>>>16&255,Z>>>24]}toBytesBE(){const Z=this.high,J=this.low;return[Z>>>24,Z>>>16&255,Z>>>8&255,Z&255,J>>>24,J>>>16&255,J>>>8&255,J&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(Z){if(Z=Z||10,Z<2||36<Z)throw new R("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(Z),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(Z)+K.toInt().toString(Z)}else return"-"+this.neg().toString(Z);const J=M.fromNumber(Math.pow(Z,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(J);let K=($.sub(Y.mul(J)).toInt()>>>0).toString(Z);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low^Z.low,this.high^Z.high,this.unsigned)}eqz(){return this.isZero()}le(Z){return this.lessThanOrEqual(Z)}toExtendedJSON(Z){if(Z&&Z.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(Z,J){const{useBigInt64:$=!1,relaxed:X=!0}={...J};if(Z.$numberLong.length>RO)throw new R("$numberLong string is too long");if(!PO.test(Z.$numberLong))throw new R(`\$numberLong string "${Z.$numberLong}" is in an invalid format`);if($){const Q=BigInt(Z.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(Z.$numberLong);if(X)return Y.toNumber();return Y}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Long("${this.toString()}"${this.unsigned?", true":""})`}}M.TWO_PWR_24=M.fromInt(wO);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var DO=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,TO=/^(\+|-)?(Infinity|inf)$/i,IO=/^(\+|-)?NaN$/i,c4=6111,K5=-6176,gz=6176,bz=34,i$=A.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),mz=A.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),uz=A.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),EO=/^([-+])?(\d+)?$/,NO=31,dz=16383,BO=30,CO=31;class Z0 extends q0{get _bsontype(){return"Decimal128"}constructor(Z){super();if(typeof Z==="string")this.bytes=Z0.fromString(Z).bytes;else if(B6(Z)){if(Z.byteLength!==16)throw new R("Decimal128 must take a Buffer of 16 bytes");this.bytes=Z}else throw new R("Decimal128 must take a Buffer or string")}static fromString(Z){return Z0._fromString(Z,{allowRounding:!1})}static fromStringWithRounding(Z){return Z0._fromString(Z,{allowRounding:!0})}static _fromString(Z,J){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,q=0,F=0,W=0;const H=[0];let V=0,j=0,U=0,L=0,D=new M(0,0),B=new M(0,0),w=0,T=0;if(Z.length>=7000)throw new R(""+Z+" not a valid Decimal128 string");const f=Z.match(DO),N1=Z.match(TO),p8=Z.match(IO);if(!f&&!N1&&!p8||Z.length===0)throw new R(""+Z+" not a valid Decimal128 string");if(f){const u=f[2],v=f[4],C=f[5],k=f[6];if(v&&k===void 0)G8(Z,"missing exponent power");if(v&&u===void 0)G8(Z,"missing exponent base");if(v===void 0&&(C||k))G8(Z,"missing e before exponent")}if(Z[T]==="+"||Z[T]==="-")X=!0,$=Z[T++]==="-";if(!pz(Z[T])&&Z[T]!=="."){if(Z[T]==="i"||Z[T]==="I")return new Z0($?mz:uz);else if(Z[T]==="N")return new Z0(i$)}while(pz(Z[T])||Z[T]==="."){if(Z[T]==="."){if(Y)G8(Z,"contains multiple periods");Y=!0,T=T+1;continue}if(V<bz){if(Z[T]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(Z[T],10),V=V+1}}if(Q)q=q+1;if(Y)F=F+1;G=G+1,T=T+1}if(Y&&!G)throw new R(""+Z+" not a valid Decimal128 string");if(Z[T]==="e"||Z[T]==="E"){const u=Z.substr(++T).match(EO);if(!u||!u[2])return new Z0(i$);L=parseInt(u[0],10),T=T+u[0].length}if(Z[T])return new Z0(i$);if(!V)H[0]=0,q=1,V=1,K=0;else if(U=V-1,K=q,K!==1)while(Z[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(L<=F&&F>L+(1<<14))L=K5;else L=L-F;while(L>c4){if(U=U+1,U>=bz){if(K===0){L=c4;break}G8(Z,"overflow")}L=L-1}if(J.allowRounding){while(L<K5||V<q){if(U===0&&K<V){L=K5,K=0;break}if(V<q)q=q-1;else U=U-1;if(L<c4)L=L+1;else{if(H.join("").match(/^0+$/)){L=c4;break}G8(Z,"overflow")}}if(U+1<K){let u=G;if(Y)W=W+1,u=u+1;if(X)W=W+1,u=u+1;const v=parseInt(Z[W+U+1],10);let C=0;if(v>=5){if(C=1,v===5){C=H[U]%2===1?1:0;for(let k=W+U+2;k<u;k++)if(parseInt(Z[k],10)){C=1;break}}}if(C){let k=U;for(;k>=0;k--)if(++H[k]>9){if(H[k]=0,k===0)if(L<c4)L=L+1,H[k]=1;else return new Z0($?mz:uz)}else break}}}else{while(L<K5||V<q){if(U===0){if(K===0){L=K5;break}G8(Z,"exponent underflow")}if(V<q){if(Z[q-1+Number(X)+Number(Y)]!=="0"&&K!==0)G8(Z,"inexact rounding");q=q-1}else{if(H[U]!==0)G8(Z,"inexact rounding");U=U-1}if(L<c4)L=L+1;else G8(Z,"overflow")}if(U+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(Z[W+U+1],10)!==0)G8(Z,"inexact rounding")}}if(D=M.fromNumber(0),B=M.fromNumber(0),K===0)D=M.fromNumber(0),B=M.fromNumber(0);else if(U<17){let u=0;B=M.fromNumber(H[u++]),D=new M(0,0);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}else{let u=0;D=M.fromNumber(H[u++]);for(;u<=U-17;u++)D=D.multiply(M.fromNumber(10)),D=D.add(M.fromNumber(H[u]));B=M.fromNumber(H[u++]);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}const y=OO(D,M.fromString("100000000000000000"));if(y.low=y.low.add(B),SO(y.low,B))y.high=y.high.add(M.fromNumber(1));w=L+gz;const N={low:M.fromNumber(0),high:M.fromNumber(0)};if(y.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))N.high=N.high.or(M.fromNumber(3).shiftLeft(61)),N.high=N.high.or(M.fromNumber(w).and(M.fromNumber(16383).shiftLeft(47))),N.high=N.high.or(y.high.and(M.fromNumber(140737488355327)));else N.high=N.high.or(M.fromNumber(w&16383).shiftLeft(49)),N.high=N.high.or(y.high.and(M.fromNumber(562949953421311)));if(N.low=y.low,$)N.high=N.high.or(M.fromString("9223372036854775808"));const G1=A.allocate(16);return T=0,G1[T++]=N.low.low&255,G1[T++]=N.low.low>>8&255,G1[T++]=N.low.low>>16&255,G1[T++]=N.low.low>>24&255,G1[T++]=N.low.high&255,G1[T++]=N.low.high>>8&255,G1[T++]=N.low.high>>16&255,G1[T++]=N.low.high>>24&255,G1[T++]=N.high.low&255,G1[T++]=N.high.low>>8&255,G1[T++]=N.high.low>>16&255,G1[T++]=N.high.low>>24&255,G1[T++]=N.high.high&255,G1[T++]=N.high.high>>8&255,G1[T++]=N.high.high>>16&255,G1[T++]=N.high.high>>24&255,new Z0(G1)}toString(){let Z,J=0;const $=new Array(36);for(let T=0;T<$.length;T++)$[T]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,q;const F=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,V=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,V),high:new M(j,U)}.high.lessThan(M.ZERO))F.push("-");const D=U>>26&NO;if(D>>3===3)if(D===BO)return F.join("")+"Infinity";else if(D===CO)return"NaN";else Z=U>>15&dz,Q=8+(U>>14&1);else Q=U>>14&7,Z=U>>17&dz;const B=Z-gz;if(K.parts[0]=(U&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=V,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(q=3;q>=0;q--){let T=0;const f=hO(K);if(K=f.quotient,T=f.rem.low,!T)continue;for(G=8;G>=0;G--)$[q*9+G]=T%10,T=Math.floor(T/10)}if(Y)J=1,$[X]=0;else{J=36;while(!$[X])J=J-1,X=X+1}const w=J-1+B;if(w>=34||w<=-7||B>0){if(J>34){if(F.push("0"),B>0)F.push(`E+${B}`);else if(B<0)F.push(`E${B}`);return F.join("")}if(F.push(`${$[X++]}`),J=J-1,J)F.push(".");for(let T=0;T<J;T++)F.push(`${$[X++]}`);if(F.push("E"),w>0)F.push(`+${w}`);else F.push(`${w}`)}else if(B>=0)for(let T=0;T<J;T++)F.push(`${$[X++]}`);else{let T=J+B;if(T>0)for(let f=0;f<T;f++)F.push(`${$[X++]}`);else F.push("0");F.push(".");while(T++<0)F.push("0");for(let f=0;f<J-Math.max(T-1,0);f++)F.push(`${$[X++]}`)}return F.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(Z){return Z0.fromString(Z.$numberDecimal)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Decimal128("${this.toString()}")`}}class O6 extends q0{get _bsontype(){return"Double"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z}valueOf(){return this.value}toJSON(){return this.value}toString(Z){return this.value.toString(Z)}toExtendedJSON(Z){if(Z&&(Z.legacy||Z.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(Z,J){const $=parseFloat(Z.$numberDouble);return J&&J.relaxed?$:new O6($)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Double(${this.toExtendedJSON().$numberDouble})`}}class S6 extends q0{get _bsontype(){return"Int32"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z|0}valueOf(){return this.value}toString(Z){return this.value.toString(Z)}toJSON(){return this.value}toExtendedJSON(Z){if(Z&&(Z.relaxed||Z.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(Z,J){return J&&J.relaxed?parseInt(Z.$numberInt,10):new S6(Z.$numberInt)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Int32(${this.valueOf()})`}}class z4 extends q0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new z4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MaxKey()"}}class V4 extends q0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MinKey()"}}var yO=new RegExp("^[0-9a-fA-F]{24}$"),W4=null,S8=Symbol("id");class V1 extends q0{get _bsontype(){return"ObjectId"}constructor(Z){super();let J;if(typeof Z==="object"&&Z&&"id"in Z){if(typeof Z.id!=="string"&&!ArrayBuffer.isView(Z.id))throw new R("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in Z&&typeof Z.toHexString==="function")J=A.fromHex(Z.toHexString());else J=Z.id}else J=Z;if(J==null||typeof J==="number")this[S8]=V1.generate(typeof J==="number"?J:void 0);else if(ArrayBuffer.isView(J)&&J.byteLength===12)this[S8]=A.toLocalBufferType(J);else if(typeof J==="string")if(J.length===12){const $=A.fromUTF8(J);if($.byteLength===12)this[S8]=$;else throw new R("Argument passed in must be a string of 12 bytes")}else if(J.length===24&&yO.test(J))this[S8]=A.fromHex(J);else throw new R("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new R("Argument passed in does not match the accepted types");if(V1.cacheHexString)this.__id=A.toHex(this.id)}get id(){return this[S8]}set id(Z){if(this[S8]=Z,V1.cacheHexString)this.__id=A.toHex(Z)}toHexString(){if(V1.cacheHexString&&this.__id)return this.__id;const Z=A.toHex(this.id);if(V1.cacheHexString&&!this.__id)this.__id=Z;return Z}static getInc(){return V1.index=(V1.index+1)%16777215}static generate(Z){if(typeof Z!=="number")Z=Math.floor(Date.now()/1000);const J=V1.getInc(),$=A.allocate(12);if(q5.fromUint8Array($).setUint32(0,Z,!1),W4===null)W4=A.randomBytes(5);return $[4]=W4[0],$[5]=W4[1],$[6]=W4[2],$[7]=W4[3],$[8]=W4[4],$[11]=J&255,$[10]=J>>8&255,$[9]=J>>16&255,$}toString(Z){if(Z==="base64")return A.toBase64(this.id);if(Z==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(Z===void 0||Z===null)return!1;if(Z instanceof V1)return this[S8][11]===Z[S8][11]&&A.equals(this[S8],Z[S8]);if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12&&B6(this.id))return A.equals(this.id,A.fromISO88591(Z));if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===24)return Z.toLowerCase()===this.toHexString();if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12)return A.equals(A.fromUTF8(Z),this.id);if(typeof Z==="object"&&"toHexString"in Z&&typeof Z.toHexString==="function"){const J=Z.toHexString(),$=this.toHexString().toLowerCase();return typeof J==="string"&&J.toLowerCase()===$}return!1}getTimestamp(){const Z=new Date,J=q5.fromUint8Array(this.id).getUint32(0,!1);return Z.setTime(Math.floor(J)*1000),Z}static createPk(){return new V1}static createFromTime(Z){const J=A.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return q5.fromUint8Array(J).setUint32(0,Z,!1),new V1(J)}static createFromHexString(Z){if(Z?.length!==24)throw new R("hex string must be 24 characters");return new V1(A.fromHex(Z))}static createFromBase64(Z){if(Z?.length!==16)throw new R("base64 string must be 16 characters");return new V1(A.fromBase64(Z))}static isValid(Z){if(Z==null)return!1;try{return new V1(Z),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(Z){return new V1(Z.$oid)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new ObjectId("${this.toHexString()}")`}}V1.index=Math.floor(Math.random()*16777215);class u0 extends q0{get _bsontype(){return"BSONRegExp"}constructor(Z,J){super();if(this.pattern=Z,this.options=kO(J??""),this.pattern.indexOf("\0")!==-1)throw new R(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new R(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new R(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(Z){return Z?Z.split("").sort().join(""):""}toExtendedJSON(Z){if(Z=Z||{},Z.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(Z){if("$regex"in Z)if(typeof Z.$regex!=="string"){if(Z.$regex._bsontype==="BSONRegExp")return Z}else return new u0(Z.$regex,u0.parseOptions(Z.$options));if("$regularExpression"in Z)return new u0(Z.$regularExpression.pattern,u0.parseOptions(Z.$regularExpression.options));throw new R(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(Z)}`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new BSONRegExp(${JSON.stringify(this.pattern)}, ${JSON.stringify(this.options)})`}}class U4 extends q0{get _bsontype(){return"BSONSymbol"}constructor(Z){super();this.value=Z}valueOf(){return this.value}toString(){return this.value}inspect(){return`new BSONSymbol("${this.value}")`}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(Z){return new U4(Z.$symbol)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}}var _O=M;class m0 extends _O{get _bsontype(){return"Timestamp"}constructor(Z){if(Z==null)super(0,0,!0);else if(typeof Z==="bigint")super(Z,!0);else if(M.isLong(Z))super(Z.low,Z.high,!0);else if(typeof Z==="object"&&"t"in Z&&"i"in Z){if(typeof Z.t!=="number"&&(typeof Z.t!=="object"||Z.t._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide t as a number");if(typeof Z.i!=="number"&&(typeof Z.i!=="object"||Z.i._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide i as a number");const J=Number(Z.t),$=Number(Z.i);if(J<0||Number.isNaN(J))throw new R("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new R("Timestamp constructed from { t, i } must provide a positive i");if(J>4294967295)throw new R("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new R("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,J,!0)}else throw new R("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(Z){return new m0(M.fromInt(Z,!0))}static fromNumber(Z){return new m0(M.fromNumber(Z,!0))}static fromBits(Z,J){return new m0({i:Z,t:J})}static fromString(Z,J){return new m0(M.fromString(Z,!0,J))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(Z){const J=M.isLong(Z.$timestamp.i)?Z.$timestamp.i.getLowBitsUnsigned():Z.$timestamp.i,$=M.isLong(Z.$timestamp.t)?Z.$timestamp.t.getLowBitsUnsigned():Z.$timestamp.t;return new m0({t:$,i:J})}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Timestamp({ t: ${this.getHighBits()}, i: ${this.getLowBits()} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var xO=128,vO=192,fO=224,gO=240,bO=248,mO=192,uO=224,dO=240,pO=128,cO=M.fromNumber(rz),lO=M.fromNumber(oz),aO=/^\$ref$|^\$id$|^\$db$/,QZ=/\x00/,lz=new Set(["$db","$ref","$id","$clusterTime"]),t4=new DataView(new ArrayBuffer(8),0,8),iO=new Uint8Array(t4.buffer,0,4),KZ=new Uint8Array(t4.buffer,0,8),nO={$oid:V1,$binary:s,$uuid:s,$symbol:U4,$numberInt:S6,$numberDecimal:Z0,$numberDouble:O6,$numberLong:M,$minKey:V4,$maxKey:z4,$regex:u0,$regularExpression:u0,$timestamp:m0},rO={Binary:(Z)=>new s(Z.value(),Z.sub_type),Code:(Z)=>new Z6(Z.code,Z.scope),DBRef:(Z)=>new y8(Z.collection||Z.namespace,Z.oid,Z.db,Z.fields),Decimal128:(Z)=>new Z0(Z.bytes),Double:(Z)=>new O6(Z.value),Int32:(Z)=>new S6(Z.value),Long:(Z)=>M.fromBits(Z.low!=null?Z.low:Z.low_,Z.low!=null?Z.high:Z.high_,Z.low!=null?Z.unsigned:Z.unsigned_),MaxKey:()=>new z4,MinKey:()=>new V4,ObjectId:(Z)=>new V1(Z),BSONRegExp:(Z)=>new u0(Z.pattern,Z.options),BSONSymbol:(Z)=>new U4(Z.value),Timestamp:(Z)=>m0.fromBits(Z.low,Z.high)},M4=Object.create(null);M4.parse=jV;M4.stringify=AV;M4.serialize=eO;M4.deserialize=ZS;Object.freeze(M4);var LV=17825792,C6=A.allocate(LV),JS=Object.freeze({__proto__:null,BSONError:R,BSONRegExp:u0,BSONRuntimeError:F5,BSONSymbol:U4,BSONType:WV,BSONValue:q0,BSONVersionError:h6,Binary:s,Code:Z6,DBRef:y8,Decimal128:Z0,Double:O6,EJSON:M4,Int32:S6,Long:M,MaxKey:z4,MinKey:V4,ObjectId:V1,Timestamp:m0,UUID:S1,calculateObjectSize:TV,deserialize:DV,deserializeStream:IV,serialize:RV,serializeWithBufferAndIndex:PV,setInternalBufferSize:wV});$S.BSON=JS;$S.BSONError=R;$S.BSONRegExp=u0;$S.BSONRuntimeError=F5;$S.BSONSymbol=U4;$S.BSONType=WV;$S.BSONValue=q0;$S.BSONVersionError=h6;$S.Binary=s;$S.Code=Z6;$S.DBRef=y8;$S.Decimal128=Z0;$S.Double=O6;$S.EJSON=M4;$S.Int32=S6;$S.Long=M;$S.MaxKey=z4;$S.MinKey=V4;$S.ObjectId=V1;$S.Timestamp=m0;$S.UUID=S1;$S.calculateObjectSize=TV;$S.deserialize=DV;$S.deserializeStream=IV;$S.serialize=RV;$S.serializeWithBufferAndIndex=PV;$S.setInternalBufferSize=wV});var D1=z((B1)=>{var OS=function(Z){const{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}=Z;return{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}},SS=function(Z,J){const $=J?.bsonOptions;return{raw:Z?.raw??$?.raw??!1,useBigInt64:Z?.useBigInt64??$?.useBigInt64??!1,promoteLongs:Z?.promoteLongs??$?.promoteLongs??!0,promoteValues:Z?.promoteValues??$?.promoteValues??!0,promoteBuffers:Z?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:Z?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:Z?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:Z?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:Z?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:Z?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(B1,"__esModule",{value:!0});B1.resolveBSONOptions=B1.pluckBSONSerializeOptions=B1.Timestamp=B1.serialize=B1.ObjectId=B1.MinKey=B1.MaxKey=B1.Long=B1.Int32=B1.Double=B1.deserialize=B1.Decimal128=B1.DBRef=B1.Code=B1.calculateObjectSize=B1.BSONType=B1.BSONSymbol=B1.BSONRegExp=B1.BSON=B1.Binary=void 0;var v1=H5();Object.defineProperty(B1,"Binary",{enumerable:!0,get:function(){return v1.Binary}});Object.defineProperty(B1,"BSON",{enumerable:!0,get:function(){return v1.BSON}});Object.defineProperty(B1,"BSONRegExp",{enumerable:!0,get:function(){return v1.BSONRegExp}});Object.defineProperty(B1,"BSONSymbol",{enumerable:!0,get:function(){return v1.BSONSymbol}});Object.defineProperty(B1,"BSONType",{enumerable:!0,get:function(){return v1.BSONType}});Object.defineProperty(B1,"calculateObjectSize",{enumerable:!0,get:function(){return v1.calculateObjectSize}});Object.defineProperty(B1,"Code",{enumerable:!0,get:function(){return v1.Code}});Object.defineProperty(B1,"DBRef",{enumerable:!0,get:function(){return v1.DBRef}});Object.defineProperty(B1,"Decimal128",{enumerable:!0,get:function(){return v1.Decimal128}});Object.defineProperty(B1,"deserialize",{enumerable:!0,get:function(){return v1.deserialize}});Object.defineProperty(B1,"Double",{enumerable:!0,get:function(){return v1.Double}});Object.defineProperty(B1,"Int32",{enumerable:!0,get:function(){return v1.Int32}});Object.defineProperty(B1,"Long",{enumerable:!0,get:function(){return v1.Long}});Object.defineProperty(B1,"MaxKey",{enumerable:!0,get:function(){return v1.MaxKey}});Object.defineProperty(B1,"MinKey",{enumerable:!0,get:function(){return v1.MinKey}});Object.defineProperty(B1,"ObjectId",{enumerable:!0,get:function(){return v1.ObjectId}});Object.defineProperty(B1,"serialize",{enumerable:!0,get:function(){return v1.serialize}});Object.defineProperty(B1,"Timestamp",{enumerable:!0,get:function(){return v1.Timestamp}});B1.pluckBSONSerializeOptions=OS;B1.resolveBSONOptions=SS});var j4=z((NV)=>{Object.defineProperty(NV,"__esModule",{value:!0});NV.OP_MSG=NV.OP_COMPRESSED=NV.OP_DELETE=NV.OP_QUERY=NV.OP_INSERT=NV.OP_UPDATE=NV.OP_REPLY=NV.MIN_SUPPORTED_QE_SERVER_VERSION=NV.MIN_SUPPORTED_QE_WIRE_VERSION=NV.MAX_SUPPORTED_WIRE_VERSION=NV.MIN_SUPPORTED_WIRE_VERSION=NV.MAX_SUPPORTED_SERVER_VERSION=NV.MIN_SUPPORTED_SERVER_VERSION=void 0;NV.MIN_SUPPORTED_SERVER_VERSION="3.6";NV.MAX_SUPPORTED_SERVER_VERSION="7.0";NV.MIN_SUPPORTED_WIRE_VERSION=6;NV.MAX_SUPPORTED_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";NV.OP_REPLY=1;NV.OP_UPDATE=2001;NV.OP_INSERT=2002;NV.OP_QUERY=2004;NV.OP_DELETE=2006;NV.OP_COMPRESSED=2012;NV.OP_MSG=2013});var f1=z((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.TOPOLOGY_EVENTS=CV.CMAP_EVENTS=CV.HEARTBEAT_EVENTS=CV.RESUME_TOKEN_CHANGED=CV.END=CV.CHANGE=CV.INIT=CV.MORE=CV.RESPONSE=CV.SERVER_HEARTBEAT_FAILED=CV.SERVER_HEARTBEAT_SUCCEEDED=CV.SERVER_HEARTBEAT_STARTED=CV.COMMAND_FAILED=CV.COMMAND_SUCCEEDED=CV.COMMAND_STARTED=CV.CLUSTER_TIME_RECEIVED=CV.CONNECTION_CHECKED_IN=CV.CONNECTION_CHECKED_OUT=CV.CONNECTION_CHECK_OUT_FAILED=CV.CONNECTION_CHECK_OUT_STARTED=CV.CONNECTION_CLOSED=CV.CONNECTION_READY=CV.CONNECTION_CREATED=CV.CONNECTION_POOL_READY=CV.CONNECTION_POOL_CLEARED=CV.CONNECTION_POOL_CLOSED=CV.CONNECTION_POOL_CREATED=CV.TOPOLOGY_DESCRIPTION_CHANGED=CV.TOPOLOGY_CLOSED=CV.TOPOLOGY_OPENING=CV.SERVER_DESCRIPTION_CHANGED=CV.SERVER_CLOSED=CV.SERVER_OPENING=CV.DESCRIPTION_RECEIVED=CV.UNPINNED=CV.PINNED=CV.MESSAGE=CV.ENDED=CV.CLOSED=CV.CONNECT=CV.OPEN=CV.CLOSE=CV.TIMEOUT=CV.ERROR=CV.SYSTEM_JS_COLLECTION=CV.SYSTEM_COMMAND_COLLECTION=CV.SYSTEM_USER_COLLECTION=CV.SYSTEM_PROFILE_COLLECTION=CV.SYSTEM_INDEX_COLLECTION=CV.SYSTEM_NAMESPACE_COLLECTION=void 0;CV.LEGACY_HELLO_COMMAND_CAMEL_CASE=CV.LEGACY_HELLO_COMMAND=CV.MONGO_CLIENT_EVENTS=CV.LOCAL_SERVER_EVENTS=CV.SERVER_RELAY_EVENTS=CV.APM_EVENTS=void 0;CV.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";CV.SYSTEM_INDEX_COLLECTION="system.indexes";CV.SYSTEM_PROFILE_COLLECTION="system.profile";CV.SYSTEM_USER_COLLECTION="system.users";CV.SYSTEM_COMMAND_COLLECTION="$cmd";CV.SYSTEM_JS_COLLECTION="system.js";CV.ERROR="error";CV.TIMEOUT="timeout";CV.CLOSE="close";CV.OPEN="open";CV.CONNECT="connect";CV.CLOSED="closed";CV.ENDED="ended";CV.MESSAGE="message";CV.PINNED="pinned";CV.UNPINNED="unpinned";CV.DESCRIPTION_RECEIVED="descriptionReceived";CV.SERVER_OPENING="serverOpening";CV.SERVER_CLOSED="serverClosed";CV.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";CV.TOPOLOGY_OPENING="topologyOpening";CV.TOPOLOGY_CLOSED="topologyClosed";CV.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";CV.CONNECTION_POOL_CREATED="connectionPoolCreated";CV.CONNECTION_POOL_CLOSED="connectionPoolClosed";CV.CONNECTION_POOL_CLEARED="connectionPoolCleared";CV.CONNECTION_POOL_READY="connectionPoolReady";CV.CONNECTION_CREATED="connectionCreated";CV.CONNECTION_READY="connectionReady";CV.CONNECTION_CLOSED="connectionClosed";CV.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";CV.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";CV.CONNECTION_CHECKED_OUT="connectionCheckedOut";CV.CONNECTION_CHECKED_IN="connectionCheckedIn";CV.CLUSTER_TIME_RECEIVED="clusterTimeReceived";CV.COMMAND_STARTED="commandStarted";CV.COMMAND_SUCCEEDED="commandSucceeded";CV.COMMAND_FAILED="commandFailed";CV.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";CV.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";CV.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";CV.RESPONSE="response";CV.MORE="more";CV.INIT="init";CV.CHANGE="change";CV.END="end";CV.RESUME_TOKEN_CHANGED="resumeTokenChanged";CV.HEARTBEAT_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED]);CV.CMAP_EVENTS=Object.freeze([CV.CONNECTION_POOL_CREATED,CV.CONNECTION_POOL_READY,CV.CONNECTION_POOL_CLEARED,CV.CONNECTION_POOL_CLOSED,CV.CONNECTION_CREATED,CV.CONNECTION_READY,CV.CONNECTION_CLOSED,CV.CONNECTION_CHECK_OUT_STARTED,CV.CONNECTION_CHECK_OUT_FAILED,CV.CONNECTION_CHECKED_OUT,CV.CONNECTION_CHECKED_IN]);CV.TOPOLOGY_EVENTS=Object.freeze([CV.SERVER_OPENING,CV.SERVER_CLOSED,CV.SERVER_DESCRIPTION_CHANGED,CV.TOPOLOGY_OPENING,CV.TOPOLOGY_CLOSED,CV.TOPOLOGY_DESCRIPTION_CHANGED,CV.ERROR,CV.TIMEOUT,CV.CLOSE]);CV.APM_EVENTS=Object.freeze([CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED]);CV.SERVER_RELAY_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED,CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED,...CV.CMAP_EVENTS]);CV.LOCAL_SERVER_EVENTS=Object.freeze([CV.CONNECT,CV.DESCRIPTION_RECEIVED,CV.CLOSED,CV.ENDED]);CV.MONGO_CLIENT_EVENTS=Object.freeze([...CV.CMAP_EVENTS,...CV.APM_EVENTS,...CV.TOPOLOGY_EVENTS,...CV.HEARTBEAT_EVENTS]);CV.LEGACY_HELLO_COMMAND="ismaster";CV.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var d0=z(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.ReadConcern=$U.ReadConcernLevel=void 0;$U.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class o4{constructor(Z){this.level=$U.ReadConcernLevel[Z]??Z}static fromOptions(Z){if(Z==null)return;if(Z.readConcern){const{readConcern:J}=Z;if(J instanceof o4)return J;else if(typeof J==="string")return new o4(J);else if("level"in J&&J.level)return new o4(J.level)}if(Z.level)return new o4(Z.level);return}static get MAJORITY(){return $U.ReadConcernLevel.majority}static get AVAILABLE(){return $U.ReadConcernLevel.available}static get LINEARIZABLE(){return $U.ReadConcernLevel.linearizable}static get SNAPSHOT(){return $U.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}$U.ReadConcern=o4});var y1=z((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.ReadPreference=YU.ReadPreferenceMode=void 0;var A4=h();YU.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class a{constructor(Z,J,$){if(!a.isValid(Z))throw new A4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(Z)}`);if($==null&&typeof J==="object"&&!Array.isArray(J))$=J,J=void 0;else if(J&&!Array.isArray(J))throw new A4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=Z,this.tags=J,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new A4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===a.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(Z){return new a(Z)}static fromOptions(Z){if(!Z)return;const J=Z.readPreference??Z.session?.transaction.options.readPreference,$=Z.readPreferenceTags;if(J==null)return;if(typeof J==="string")return new a(J,$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:Z.hedge});else if(!(J instanceof a)&&typeof J==="object"){const X=J.mode||J.preference;if(X&&typeof X==="string")return new a(X,J.tags??$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:Z.hedge})}if($)J.tags=$;return J}static translate(Z){if(Z.readPreference==null)return Z;const J=Z.readPreference;if(typeof J==="string")Z.readPreference=new a(J);else if(J&&!(J instanceof a)&&typeof J==="object"){const $=J.mode||J.preference;if($&&typeof $==="string")Z.readPreference=new a($,J.tags,{maxStalenessSeconds:J.maxStalenessSeconds})}else if(!(J instanceof a))throw new A4.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return Z}static isValid(Z){return(new Set([a.PRIMARY,a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST,null])).has(Z)}isValid(Z){return a.isValid(typeof Z==="string"?Z:this.mode)}secondaryOk(){return(new Set([a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST])).has(this.mode)}equals(Z){return Z.mode===this.mode}toJSON(){const Z={mode:this.mode};if(Array.isArray(this.tags))Z.tags=this.tags;if(this.maxStalenessSeconds)Z.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)Z.hedge=this.hedge;return Z}}a.PRIMARY=YU.ReadPreferenceMode.primary;a.PRIMARY_PREFERRED=YU.ReadPreferenceMode.primaryPreferred;a.SECONDARY=YU.ReadPreferenceMode.secondary;a.SECONDARY_PREFERRED=YU.ReadPreferenceMode.secondaryPreferred;a.NEAREST=YU.ReadPreferenceMode.nearest;a.primary=new a(YU.ReadPreferenceMode.primary);a.primaryPreferred=new a(YU.ReadPreferenceMode.primaryPreferred);a.secondary=new a(YU.ReadPreferenceMode.secondary);a.secondaryPreferred=new a(YU.ReadPreferenceMode.secondaryPreferred);a.nearest=new a(YU.ReadPreferenceMode.nearest);YU.ReadPreference=a});var p0=z((KU)=>{var Vy=function(Z){Z.forEach(zy.clearTimeout),Z.clear()},Uy=function(Z,J){if(Z.clusterTime==null)Z.clusterTime=J;else if(J.clusterTime.greaterThan(Z.clusterTime.clusterTime))Z.clusterTime=J};Object.defineProperty(KU,"__esModule",{value:!0});KU._advanceClusterTime=KU.drainTimerQueue=KU.ServerType=KU.TopologyType=KU.STATE_CONNECTED=KU.STATE_CONNECTING=KU.STATE_CLOSED=KU.STATE_CLOSING=void 0;var zy=import.meta.require("timers");KU.STATE_CLOSING="closing";KU.STATE_CLOSED="closed";KU.STATE_CONNECTING="connecting";KU.STATE_CONNECTED="connected";KU.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});KU.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});KU.drainTimerQueue=Vy;KU._advanceClusterTime=Uy});var A0=z((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.WriteConcern=qU.WRITE_CONCERN_KEYS=void 0;qU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class z5{constructor(Z,J,$,X){if(Z!=null)if(!Number.isNaN(Number(Z)))this.w=Number(Z);else this.w=Z;if(J!=null)this.wtimeoutMS=this.wtimeout=J;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(Z,J){const $={};if(J.w!=null)$.w=J.w;if(J.wtimeoutMS!=null)$.wtimeout=J.wtimeoutMS;if(J.journal!=null)$.j=J.j;return Z.writeConcern=$,Z}static fromOptions(Z,J){if(Z==null)return;J=J??{};let $;if(typeof Z==="string"||typeof Z==="number")$={w:Z};else if(Z instanceof z5)$=Z;else $=Z.writeConcern;const X=J instanceof z5?J:J.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:q=void 0,wtimeoutMS:F=void 0}={...X,...$};if(Y!=null||Q!=null||F!=null||K!=null||q!=null||G!=null)return new z5(Y,Q??F,K??q,G);return}}qU.WriteConcern=z5});var _=z((RU)=>{var ky=function(Z,J){for(let $ of J)if(Z===$||$.startsWith("*.")&&Z?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&Z?.endsWith($.substring(2,$.length)))return!0;return!1},_y=function(Z){if(typeof Z!=="string")throw new J0.MongoInvalidArgumentError("Collection name must be a String");if(!Z||Z.indexOf("..")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot be empty");if(Z.indexOf("$")!==-1&&Z.match(/((^\$cmd)|(oplog\.\$main))/)==null)throw new J0.MongoInvalidArgumentError("Collection names must not contain '$'");if(Z.match(/^\.|\.$/)!=null)throw new J0.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(Z.indexOf("\0")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot contain a null character")},xy=function(Z){let J=void 0;if(typeof Z==="string")J=Z;else if(Array.isArray(Z))J={},Z.forEach(($)=>{J[$]=1});else if(Z!=null&&typeof Z==="object"){J={};for(let $ in Z)J[$]=Z[$]}return J},BX=function(Z){return vy(Z)==="[object Object]"},fy=function(Z,J){return{...Z,...J}},gy=function(Z,J){const $={};for(let X in Z)if(J.includes(X))$[X]=Z[X];return $},by=function(Z,J){if(J&&J.s.options?.retryWrites)Z.retryWrites=!0;return Z},my=function(Z){return!!Z&&typeof Z.then==="function"},uy=function(Z,J,$){const X=zU(J).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)Z.collation=$.collation;else throw new J0.MongoCompatibilityError("Current topology does not support collation")},dy=function(Z,J,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},Z.readConcern||{});if(J.s.readConcern)Object.assign(X,J.s.readConcern);if(Object.keys(X).length>0)Object.assign(Z,{readConcern:X})},py=function(Z,J){if(Z.explain)return Z;return{explain:Z,verbosity:J.verbosity}},zU=function(Z){if("topology"in Z&&Z.topology)return Z.topology;else if("client"in Z&&Z.client.topology)return Z.client.topology;throw new J0.MongoNotConnectedError("MongoClient must be connected to perform this operation")},cy=function(Z){return M5.fromString(Z)};function*ly(Z=0){let J=Z;while(!0){const $=J;J+=1,yield $}}var ay=function(Z,J){const $=Z();if(J==null)return $;$.then((X)=>J(void 0,X),(X)=>J(X));return},iy=function(Z){return Z.split(".")[0]},sy=function(){const Z=Ty.randomBytes(16);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z},ny=function(Z){if(Z){if(Z.loadBalanced)return By.MAX_SUPPORTED_WIRE_VERSION;if(Z.hello)return Z.hello.maxWireVersion;if("lastHello"in Z&&typeof Z.lastHello==="function"){const J=Z.lastHello();if(J)return J.maxWireVersion}if(Z.description&&"maxWireVersion"in Z.description&&Z.description.maxWireVersion!=null)return Z.description.maxWireVersion}return 0},ty=function(Z,J,$){Z=Z||[];let X=0,Y=0;for(X=0;X<Z.length;++X)Y++,J(Z[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===Z.length&&Y<=0)$()}},ry=function(Z,J){if(!Array.isArray(Z)||!Array.isArray(J))return!1;return Z.length===J.length&&Z.every(($,X)=>$===J[X])},oy=function(Z,J){if(Z===J)return!0;if(!Z||!J)return Z===J;if(Z==null&&J!=null||Z!=null&&J==null)return!1;if(Z.constructor.name!==J.constructor.name)return!1;if(Z.message!==J.message)return!1;return!0},ey=function(Z){return function J($,X){const Y=Z[$.s.state];if(Y&&Y.indexOf(X)<0)throw new J0.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},VU=function(){const Z=process.hrtime();return Math.floor(Z[0]*1000+Z[1]/1e6)},Zk=function(Z){if(typeof Z!=="number")throw new J0.MongoInvalidArgumentError("Numeric value required to calculate duration");const J=VU()-Z;return J<0?0:J},UU=function(Z){if(Array.isArray(Z)){for(let $ of Z)if(UU($))return!0;return!1}const J=Object.keys(Z);return J.length>0&&J[0][0]==="$"},Jk=function(Z,J){const $=Object.assign({},J,HU.resolveBSONOptions(J,Z));if(!J?.session?.inTransaction()){const Q=hy.ReadConcern.fromOptions(J)??Z?.readConcern;if(Q)$.readConcern=Q;const K=yy.WriteConcern.fromOptions(J)??Z?.writeConcern;if(K)$.writeConcern=K}const Y=Oy.ReadPreference.fromOptions(J)??Z?.readPreference;if(Y)$.readPreference=Y;return $},MU=function(Z,J){Z=Array.isArray(Z)?new Set(Z):Z,J=Array.isArray(J)?new Set(J):J;for(let $ of J)if(!Z.has($))return!1;return!0},$k=function(Z){return Z[Cy.LEGACY_HELLO_COMMAND]||Z.hello?!0:!1},Xk=function(Z,J){const $=new Set(Z);for(let X of J)$.delete(X);return $},jU=function(Z,J=void 0){if(!BX(Z))return!1;const $=Z.constructor;if($&&$.prototype){if(!BX($.prototype))return!1;if(!Yk($.prototype,"isPrototypeOf"))return!1}if(J){const X=Object.keys(Z);return MU(X,J)}return!0},CX=function(Z){if(Z==null)return Z;else if(Array.isArray(Z))return Z.map(($)=>CX($));else if(jU(Z)){const $={};for(let X in Z)$[X]=CX(Z[X]);return $}const J=Z.constructor;if(J)switch(J.name.toLowerCase()){case"date":return new J(Number(Z));case"map":return new Map(Z);case"set":return new Set(Z);case"buffer":return Buffer.from(Z)}return Z},LU=function(Z){return process.emitWarning(Z,{code:RU.MONGODB_WARNING_CODE})},Qk=function(Z){if(!WU.has(Z))return WU.add(Z),LU(Z)},Kk=function(Z){return Object.values(Z).join(", ")},Gk=function(Z){if(!Z)return!1;if(Z.loadBalanced)return!0;if(Z.description.logicalSessionTimeoutMinutes!=null){if(Z.description.type!==Sy.ServerType.Standalone)return!0}return!1},qk=function(Z,J=0){const $=Array.from(Z);if(J>$.length)throw new J0.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=J%$.length===0?1:$.length-J;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return J%$.length===0?$:$.slice(Y)},Fk=function(Z,J){if(Z.aggregate||Z.count||Z.distinct||Z.find||Z.geoNear)return!0;if(Z.mapReduce&&J&&J.out&&(J.out.inline===1||J.out==="inline"))return!0;return!1},Wk=function(){let Z=null;if(typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE==="string"&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{Z=import.meta.require(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{Z=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch{}return Z},Hk=function(Z,J){if(Z==null&&J==null)return 0;if(Z==null)return-1;if(J==null)return 1;return RU.ByteUtils.compare(Z.id,J.id)},wU=function(Z){if(typeof Z==="number")return Math.trunc(Z);const J=Number.parseInt(String(Z),10);return Number.isNaN(J)?null:J},zk=function(Z){const J=wU(Z);return J!=null&&J>=0?J:null},Vk=function(Z,J){const $=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,X=J.endsWith(".")?J.slice(0,J.length-1):J,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function Uk(Z,J={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Ey.parse(Z),...J},Q=Iy.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(q)=>{G+=q}),K.once("end",()=>{if(J.json===!1){$(G);return}try{const q=JSON.parse(G);$(q)}catch{X(new J0.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new J0.MongoNetworkTimeoutError(`Network request to ${Z} timed out after ${J.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}Object.defineProperty(RU,"__esModule",{value:!0});RU.matchesParentDomain=RU.parseUnsignedInteger=RU.parseInteger=RU.compareObjectId=RU.getMongoDBClientEncryption=RU.commandSupportsReadConcern=RU.shuffle=RU.supportsRetryableWrites=RU.enumToString=RU.emitWarningOnce=RU.emitWarning=RU.MONGODB_WARNING_CODE=RU.DEFAULT_PK_FACTORY=RU.HostAddress=RU.BufferPool=RU.List=RU.deepCopy=RU.isRecord=RU.setDifference=RU.isHello=RU.isSuperset=RU.resolveOptions=RU.hasAtomicOperators=RU.calculateDurationInMs=RU.now=RU.makeStateMachine=RU.errorStrictEqual=RU.arrayStrictEqual=RU.eachAsync=RU.maxWireVersion=RU.uuidV4=RU.databaseNamespace=RU.maybeCallback=RU.makeCounter=RU.MongoDBCollectionNamespace=RU.MongoDBNamespace=RU.ns=RU.getTopology=RU.decorateWithExplain=RU.decorateWithReadConcern=RU.decorateWithCollation=RU.isPromiseLike=RU.applyRetryableWrites=RU.filterOptions=RU.mergeOptions=RU.isObject=RU.normalizeHintField=RU.checkCollectionName=RU.hostMatchesWildcards=RU.ByteUtils=void 0;RU.request=void 0;var Ty=import.meta.require("crypto"),Iy=import.meta.require("http"),Ey=import.meta.require("url"),Ny=import.meta.require("url"),HU=D1(),By=j4(),Cy=f1(),J0=h(),hy=d0(),Oy=y1(),Sy=p0(),yy=A0();RU.ByteUtils={toLocalBufferType(Z){return Buffer.isBuffer(Z)?Z:Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength)},equals(Z,J){return RU.ByteUtils.toLocalBufferType(Z).equals(J)},compare(Z,J){return RU.ByteUtils.toLocalBufferType(Z).compare(J)},toBase64(Z){return RU.ByteUtils.toLocalBufferType(Z).toString("base64")}};RU.hostMatchesWildcards=ky;RU.checkCollectionName=_y;RU.normalizeHintField=xy;var vy=(Z)=>Object.prototype.toString.call(Z);RU.isObject=BX;RU.mergeOptions=fy;RU.filterOptions=gy;RU.applyRetryableWrites=by;RU.isPromiseLike=my;RU.decorateWithCollation=uy;RU.decorateWithReadConcern=dy;RU.decorateWithExplain=py;RU.getTopology=zU;RU.ns=cy;class M5{constructor(Z,J){this.db=Z,this.collection=J,this.collection=J===""?void 0:J}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(Z){return new hX(this.db,Z)}static fromString(Z){if(typeof Z!=="string"||Z==="")throw new J0.MongoRuntimeError(`Cannot parse namespace from "${Z}"`);const[J,...$]=Z.split("."),X=$.join(".");return new M5(J,X===""?void 0:X)}}RU.MongoDBNamespace=M5;class hX extends M5{constructor(Z,J){super(Z,J);this.collection=J}}RU.MongoDBCollectionNamespace=hX;RU.makeCounter=ly;RU.maybeCallback=ay;RU.databaseNamespace=iy;RU.uuidV4=sy;RU.maxWireVersion=ny;RU.eachAsync=ty;RU.arrayStrictEqual=ry;RU.errorStrictEqual=oy;RU.makeStateMachine=ey;RU.now=VU;RU.calculateDurationInMs=Zk;RU.hasAtomicOperators=UU;RU.resolveOptions=Jk;RU.isSuperset=MU;RU.isHello=$k;RU.setDifference=Xk;var Yk=(Z,J)=>Object.prototype.hasOwnProperty.call(Z,J);RU.isRecord=jU;RU.deepCopy=CX;class OX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let Z of this.nodes())yield Z.value}*nodes(){let Z=this.head.next;while(Z!==this.head){const{next:J}=Z;yield Z,Z=J}}push(Z){this.count+=1;const J={next:this.head,prev:this.head.prev,value:Z};this.head.prev.next=J,this.head.prev=J}pushMany(Z){for(let J of Z)this.push(J)}unshift(Z){this.count+=1;const J={next:this.head.next,prev:this.head,value:Z};this.head.next.prev=J,this.head.next=J}remove(Z){if(Z===this.head||this.length===0)return null;this.count-=1;const{prev:J,next:$}=Z;return J.next=$,$.prev=J,Z.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(Z){for(let J of this.nodes())if(Z(J.value))this.remove(J)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}RU.List=OX;class AU{constructor(){this.buffers=new OX,this.totalByteLength=0}get length(){return this.totalByteLength}append(Z){this.buffers.push(Z),this.totalByteLength+=Z.length}getInt32(){if(this.totalByteLength<4)return null;const Z=this.buffers.first();if(Z!=null&&Z.byteLength>=4)return Z.readInt32LE(0);const J=this.read(4),$=J.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(J),$}read(Z){if(typeof Z!=="number"||Z<0)throw new J0.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(Z>this.totalByteLength)return Buffer.alloc(0);const J=Buffer.allocUnsafe(Z);for(let $=0;$<Z;){const X=this.buffers.shift();if(X==null)break;const Y=Z-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(J.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return J}}RU.BufferPool=AU;class U5{constructor(Z){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const J=Z.split(" ").join("%20");if(J.endsWith(".sock")){this.socketPath=decodeURIComponent(J);return}const $=`iLoveJS://${J}`;let X;try{X=new Ny.URL($)}catch(G){const q=new J0.MongoRuntimeError(`Unable to parse ${J} with URL`);throw q.cause=G,q}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new J0.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(Z){return new U5(Z)}static fromHostPort(Z,J){if(Z.includes(":"))Z=`[${Z}]`;return U5.fromString(`${Z}:${J}`)}static fromSrvRecord({name:Z,port:J}){return U5.fromHostPort(Z,J)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const Z=this.host??"",J=this.port??0;return{host:Z,port:J}}}RU.HostAddress=U5;RU.DEFAULT_PK_FACTORY={createPk(){return new HU.ObjectId}};RU.MONGODB_WARNING_CODE="MONGODB DRIVER";RU.emitWarning=LU;var WU=new Set;RU.emitWarningOnce=Qk;RU.enumToString=Kk;RU.supportsRetryableWrites=Gk;RU.shuffle=qk;RU.commandSupportsReadConcern=Fk;RU.getMongoDBClientEncryption=Wk;RU.compareObjectId=Hk;RU.parseInteger=wU;RU.parseUnsignedInteger=zk;RU.matchesParentDomain=Vk;RU.request=Uk});var kX=z((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.Explain=IU.ExplainVerbosity=void 0;var q_=h();IU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class yX{constructor(Z){if(typeof Z==="boolean")this.verbosity=Z?IU.ExplainVerbosity.allPlansExecution:IU.ExplainVerbosity.queryPlanner;else this.verbosity=Z}static fromOptions(Z){if(Z?.explain==null)return;const J=Z.explain;if(typeof J==="boolean"||typeof J==="string")return new yX(J);throw new q_.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}IU.Explain=yX});var A5=z((BU)=>{var W_=function(){return(Z,J)=>_X(Z,J.filter(($)=>$.isWritable))},H_=function(Z){return(J,$)=>{if(!Z)return[];return $.filter((X)=>{return X.address===Z.address&&X.type!==N0.ServerType.Unknown})}},z_=function(Z,J){if(!J||!Z||Z&&Z<BU.MIN_SECONDARY_WRITE_WIRE_VERSION)return xX(j5.ReadPreference.primary);return xX(J)},V_=function(Z,J,$){if(Z.maxStalenessSeconds==null||Z.maxStalenessSeconds<0)return $;const X=Z.maxStalenessSeconds,Y=(J.heartbeatFrequencyMS+F_)/1000;if(X<Y)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<NU)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${NU} seconds`);if(J.type===N0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(J.servers.values()).filter(FZ)[0];return $.reduce((K,G)=>{const F=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}if(J.type===N0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const F=(Q.lastWriteDate-G.lastWriteDate+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}return $},U_=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||J[Q]!==Z[Q])return!1}return!0},M_=function(Z,J){if(Z.tags==null||Array.isArray(Z.tags)&&Z.tags.length===0)return J;for(let $=0;$<Z.tags.length;++$){const X=Z.tags[$],Y=J.reduce((Q,K)=>{if(U_(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},_X=function(Z,J){const $=J.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+Z.localThresholdMS;return J.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},FZ=function(Z){return Z.type===N0.ServerType.RSPrimary},j_=function(Z){return Z.type===N0.ServerType.RSSecondary},A_=function(Z){return Z.type===N0.ServerType.RSSecondary||Z.type===N0.ServerType.RSPrimary},L_=function(Z){return Z.type!==N0.ServerType.Unknown},w_=function(Z){return Z.type===N0.ServerType.LoadBalancer},xX=function(Z){if(!Z.isValid())throw new WZ.MongoInvalidArgumentError("Invalid read preference specified");return(J,$)=>{const X=J.commonWireVersion;if(X&&Z.minWireVersion&&Z.minWireVersion>X)throw new WZ.MongoCompatibilityError(`Minimum wire version '${Z.minWireVersion}' required, but found '${X}'`);if(J.type===N0.TopologyType.LoadBalanced)return $.filter(w_);if(J.type===N0.TopologyType.Unknown)return[];if(J.type===N0.TopologyType.Single||J.type===N0.TopologyType.Sharded)return _X(J,$.filter(L_));const Y=Z.mode;if(Y===j5.ReadPreference.PRIMARY)return $.filter(FZ);if(Y===j5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(FZ);if(G.length)return G}const Q=Y===j5.ReadPreference.NEAREST?A_:j_,K=_X(J,M_(Z,V_(Z,J,$.filter(Q))));if(Y===j5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(FZ);return K}};Object.defineProperty(BU,"__esModule",{value:!0});BU.readPreferenceServerSelector=BU.secondaryWritableServerSelector=BU.sameServerSelector=BU.writableServerSelector=BU.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var WZ=h(),j5=y1(),N0=p0(),F_=1e4,NU=90;BU.MIN_SECONDARY_WRITE_WIRE_VERSION=13;BU.writableServerSelector=W_;BU.sameServerSelector=H_;BU.secondaryWritableServerSelector=z_;BU.readPreferenceServerSelector=xX});var J1=z((SU)=>{var E_=function(Z,J){if(!Array.isArray(J)&&!(J instanceof Set))J=[J];return J=new Set(J),Object.defineProperty(Z,"aspects",{value:J,writable:!1}),J};Object.defineProperty(SU,"__esModule",{value:!0});SU.defineAspects=SU.AbstractCallbackOperation=SU.AbstractOperation=SU.Aspect=void 0;var T_=import.meta.require("util"),I_=D1(),vX=y1();SU.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"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var fX=Symbol("session");class gX{constructor(Z={}){this.readPreference=this.hasAspect(SU.Aspect.WRITE_OPERATION)?vX.ReadPreference.primary:vX.ReadPreference.fromOptions(Z)??vX.ReadPreference.primary,this.bsonOptions=I_.resolveBSONOptions(Z),this[fX]=Z.session!=null?Z.session:void 0,this.options=Z,this.bypassPinningCheck=!!Z.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(Z){const J=this.constructor;if(J.aspects==null)return!1;return J.aspects.has(Z)}get session(){return this[fX]}clearSession(){this[fX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}SU.AbstractOperation=gX;class OU extends gX{constructor(Z={}){super(Z)}execute(Z,J){return T_.promisify(($)=>{this.executeCallback(Z,J,$)})()}}SU.AbstractCallbackOperation=OU;SU.defineAspects=E_});var T1=z((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.CommandCallbackOperation=vU.CommandOperation=void 0;var C_=h(),h_=kX(),O_=d0(),S_=A5(),L5=_(),_U=A0(),e4=J1();class bX extends e4.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J??{};const $=J?.dbName||J?.authdb;if($)this.ns=new L5.MongoDBNamespace($,"$cmd");else this.ns=Z?Z.s.namespace.withCollection("$cmd"):new L5.MongoDBNamespace("admin","$cmd");if(this.readConcern=O_.ReadConcern.fromOptions(J),this.writeConcern=_U.WriteConcern.fromOptions(J),this.hasAspect(e4.Aspect.EXPLAINABLE))this.explain=h_.Explain.fromOptions(J);else if(J?.explain!=null)throw new C_.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect(e4.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(Z,J,$){this.server=Z;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:J},Y=L5.maxWireVersion(Z),Q=this.session&&this.session.inTransaction();if(this.readConcern&&L5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<S_.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect(e4.Aspect.WRITE_OPERATION)&&!Q)_U.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect(e4.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect(e4.Aspect.EXPLAINABLE)&&this.explain)$=L5.decorateWithExplain($,this.explain);return Z.commandAsync(this.ns,$,X)}}vU.CommandOperation=bX;class xU extends bX{constructor(Z,J){super(Z,J)}executeCommandCallback(Z,J,$,X){super.executeCommand(Z,J,$).then((Y)=>X(void 0,Y),(Y)=>X(Y,void 0))}}vU.CommandCallbackOperation=xU});var uX=z((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.AddUserOperation=void 0;var k_=import.meta.require("crypto"),__=h(),gU=_(),x_=T1(),bU=J1();class mX extends x_.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.db=Z,this.username=J,this.password=$,this.options=X??{}}executeCallback(Z,J,$){const X=this.db,Y=this.username,Q=this.password,K=this.options;if("digestPassword"in K&&K.digestPassword!=null)return $(new __.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let G;if(!K.roles||Array.isArray(K.roles)&&K.roles.length===0)if(gU.emitWarningOnce('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),X.databaseName.toLowerCase()==="admin")G=["root"];else G=["dbOwner"];else G=Array.isArray(K.roles)?K.roles:[K.roles];let q;try{q=gU.getTopology(X)}catch(V){return $(V)}const F=q.lastHello().maxWireVersion>=7;let W=Q;if(!F){const V=k_.createHash("md5");V.update(`${Y}:mongo:${Q}`),W=V.digest("hex")}const H={createUser:Y,customData:K.customData||{},roles:G,digestPassword:F};if(typeof Q==="string")H.pwd=W;super.executeCommandCallback(Z,J,H,$)}}mU.AddUserOperation=mX;bU.defineAspects(mX,[bU.Aspect.WRITE_OPERATION])});var B0=z((lU)=>{var f_=function(Z,J,$){return dX.maybeCallback(()=>g_(Z,J),$)};async function g_(Z,J){if(!(J instanceof y6.AbstractCallbackOperation))throw new F0.MongoRuntimeError("This method requires a valid operation instance");if(Z.topology==null){if(Z.s.hasBeenClosed)throw new F0.MongoNotConnectedError("Client must be connected before running operations");Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await Z.connect()}finally{delete Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=Z;if($==null)throw new F0.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=J.session,Y;if(X==null)Y=Symbol(),X=Z.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new F0.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new F0.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");const Q=J.readPreference??dU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(dU.ReadPreference.primary))throw new F0.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!J.bypassPinningCheck)X.unpin();let G;if(J.hasAspect(y6.Aspect.MUST_SELECT_SAME_SERVER))G=pU.sameServerSelector(J.server?.description);else if(J.trySecondaryWrite)G=pU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const q=await $.selectServerAsync(G,{session:X});if(X==null)return J.execute(q,void 0);if(!J.hasAspect(y6.Aspect.RETRYABLE))try{return await J.execute(q,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const F=$.s.options.retryReads&&!K&&J.canRetryRead,W=$.s.options.retryWrites&&!K&&dX.supportsRetryableWrites(q)&&J.canRetryWrite,H=J.hasAspect(y6.Aspect.READ_OPERATION),V=J.hasAspect(y6.Aspect.WRITE_OPERATION),j=H&&F||V&&W;if(V&&W)J.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await J.execute(q,X)}catch(U){if(j&&U instanceof F0.MongoError)return await b_(J,U,{session:X,topology:$,selector:G});throw U}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function b_(Z,J,{session:$,topology:X,selector:Y}){const Q=Z.hasAspect(y6.Aspect.WRITE_OPERATION),K=Z.hasAspect(y6.Aspect.READ_OPERATION);if(Q&&J.code===v_)throw new F0.MongoServerError({message:cU,errmsg:cU,originalError:J});if(Q&&!F0.isRetryableWriteError(J))throw J;if(K&&!F0.isRetryableReadError(J))throw J;if(J instanceof F0.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&Z.hasAspect(y6.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!dX.supportsRetryableWrites(G))throw new F0.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await Z.execute(G,$)}catch(q){if(q instanceof F0.MongoError&&q.hasErrorLabel(F0.MongoErrorLabel.NoWritesPerformed))throw J;throw q}}Object.defineProperty(lU,"__esModule",{value:!0});lU.executeOperation=void 0;var F0=h(),dU=y1(),pU=A5(),dX=_(),y6=J1(),v_=F0.MONGODB_ERROR_CODES.IllegalOperation,cU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";lU.executeOperation=f_});var tU=z((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.ListDatabasesOperation=void 0;var iU=_(),m_=T1(),pX=J1();class cX extends m_.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.ns=new iU.MongoDBNamespace("admin","$cmd")}executeCallback(Z,J,$){const X={listDatabases:1};if(typeof this.options.nameOnly==="boolean")X.nameOnly=this.options.nameOnly;if(this.options.filter)X.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")X.authorizedDatabases=this.options.authorizedDatabases;if(iU.maxWireVersion(Z)>=9&&this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,$)}}sU.ListDatabasesOperation=cX;pX.defineAspects(cX,[pX.Aspect.READ_OPERATION,pX.Aspect.RETRYABLE])});var aX=z((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.RemoveUserOperation=void 0;var u_=T1(),rU=J1();class lX extends u_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$,this.username=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropUser:this.username},(X)=>{$(X,X?!1:!0)})}}oU.RemoveUserOperation=lX;rU.defineAspects(lX,[rU.Aspect.WRITE_OPERATION])});var Z7=z((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.RunAdminCommandOperation=JM.RunCommandOperation=void 0;var d_=_(),p_=T1();class iX extends p_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.command=J}executeCallback(Z,J,$){const X=this.command;this.executeCommandCallback(Z,J,X,$)}}JM.RunCommandOperation=iX;class ZM extends iX{constructor(Z,J,$){super(Z,J,$);this.ns=new d_.MongoDBNamespace("admin")}}JM.RunAdminCommandOperation=ZM});var KM=z((YM)=>{Object.defineProperty(YM,"__esModule",{value:!0});YM.ValidateCollectionOperation=void 0;var HZ=h(),l_=T1();class XM extends l_.CommandCallbackOperation{constructor(Z,J,$){const X={validate:J},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(Z.s.db,$);this.options=$,this.command=X,this.collectionName=J}executeCallback(Z,J,$){const X=this.collectionName;super.executeCommandCallback(Z,J,this.command,(Y,Q)=>{if(Y!=null)return $(Y);if(Q.ok===0)return $(new HZ.MongoRuntimeError("Error with validate command"));if(Q.result!=null&&typeof Q.result!=="string")return $(new HZ.MongoRuntimeError("Error with validation data"));if(Q.result!=null&&Q.result.match(/exception|corrupt/)!=null)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));if(Q.valid!=null&&!Q.valid)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));return $(void 0,Q)})}}YM.ValidateCollectionOperation=XM});var sX=z((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.Admin=void 0;var a_=uX(),w5=B0(),i_=tU(),s_=aX(),n_=Z7(),t_=KM();class GM{constructor(Z){this.s={db:Z}}async command(Z,J){return w5.executeOperation(this.s.db.client,new n_.RunCommandOperation(this.s.db,Z,{dbName:"admin",...J}))}async buildInfo(Z){return this.command({buildinfo:1},Z)}async serverInfo(Z){return this.command({buildinfo:1},Z)}async serverStatus(Z){return this.command({serverStatus:1},Z)}async ping(Z){return this.command({ping:1},Z)}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return w5.executeOperation(this.s.db.client,new a_.AddUserOperation(this.s.db,Z,X,{dbName:"admin",...$}))}async removeUser(Z,J){return w5.executeOperation(this.s.db.client,new s_.RemoveUserOperation(this.s.db,Z,{dbName:"admin",...J}))}async validateCollection(Z,J={}){return w5.executeOperation(this.s.db.client,new t_.ValidateCollectionOperation(this,Z,J))}async listDatabases(Z){return w5.executeOperation(this.s.db.client,new i_.ListDatabasesOperation(this.s.db,Z))}async replSetGetStatus(Z){return this.command({replSetGetStatus:1},Z)}}qM.Admin=GM});var oX=z((WM)=>{var rX=function(Z,J){const $={q:Z,limit:typeof J.limit==="number"?J.limit:0};if(J.collation)$.collation=J.collation;if(J.hint)$.hint=J.hint;return $};Object.defineProperty(WM,"__esModule",{value:!0});WM.makeDeleteStatement=WM.DeleteManyOperation=WM.DeleteOneOperation=WM.DeleteOperation=void 0;var R5=h(),r_=T1(),c0=J1();class P5 extends r_.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.limit!=null?Z.limit>0:!0)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={delete:this.ns.collection,deletes:this.statements,ordered:Y};if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new R5.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}WM.DeleteOperation=P5;class nX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,{...$,limit:1})],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteOneOperation=nX;class tX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,$)],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteManyOperation=tX;WM.makeDeleteStatement=rX;c0.defineAspects(P5,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION]);c0.defineAspects(nX,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION]);c0.defineAspects(tX,[c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION])});var JY=z((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.BulkWriteOperation=void 0;var eX=J1();class ZY extends eX.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.operations=J}executeCallback(Z,J,$){const X=this.collection,Y=this.operations,Q={...this.options,...this.bsonOptions,readPreference:this.readPreference},K=Q.ordered===!1?X.initializeUnorderedBulkOp(Q):X.initializeOrderedBulkOp(Q);try{for(let G=0;G<Y.length;G++)K.raw(Y[G])}catch(G){return $(G)}K.execute({...Q,session:J}).then((G)=>$(void 0,G),(G)=>$(G))}}zM.BulkWriteOperation=ZY;eX.defineAspects(ZY,[eX.Aspect.WRITE_OPERATION])});var $Y=z((UM)=>{var Xx=function(Z,J,$,X){let Y=$,Q=X;if(typeof $==="function")Q=$,Y={};const K=Y.full==null?!1:Y.full;let G;try{G=$x.getTopology(Z)}catch(F){return Q(F)}if(G.isDestroyed())return Q(new Jx.MongoTopologyClosedError);function q(F){const W={};for(let H=0;H<F.length;H++){const V=F[H];W[V.name]=[];for(let j in V.key)W[V.name].push([j,V.key[j]])}return W}Z.collection(J).listIndexes(Y).toArray().then((F)=>{if(!Array.isArray(F))return Q(void 0,[]);if(K)return Q(void 0,F);Q(void 0,q(F))},(F)=>Q(F))},Yx=function(Z,J,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:Z.s.db.options?.forceServerObjectId)===!0)return J;return J.map((Y)=>{if(Y._id==null)Y._id=Z.s.pkFactory.createPk();return Y})};Object.defineProperty(UM,"__esModule",{value:!0});UM.prepareDocs=UM.indexInformation=void 0;var Jx=h(),$x=_();UM.indexInformation=Xx;UM.prepareDocs=Yx});var QY=z((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.InsertManyOperation=AM.InsertOneOperation=AM.InsertOperation=void 0;var zZ=h(),Kx=A0(),Gx=JY(),qx=T1(),jM=$Y(),J6=J1();class VZ extends qx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=Z,this.documents=J}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={insert:this.ns.collection,documents:this.documents,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.comment!==void 0)Q.comment=X.comment;super.executeCommandCallback(Z,J,Q,$)}}AM.InsertOperation=VZ;class XY extends VZ{constructor(Z,J,$){super(Z.s.namespace,jM.prepareDocs(Z,[J],$),$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new zZ.MongoServerError(Y));if(Y.writeErrors)return $(new zZ.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id})})}}AM.InsertOneOperation=XY;class YY extends J6.AbstractCallbackOperation{constructor(Z,J,$){super($);if(!Array.isArray(J))throw new zZ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=Z,this.docs=J}executeCallback(Z,J,$){const X=this.collection,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Kx.WriteConcern.fromOptions(Y);new Gx.BulkWriteOperation(X,jM.prepareDocs(X,this.docs,Y).map((G)=>({insertOne:{document:G}})),Y).executeCallback(Z,J,(G,q)=>{if(G||q==null){if(G&&G.message==="Operation must be an object with an operation key")G=new zZ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");return $(G)}$(void 0,{acknowledged:Q?.w!==0,insertedCount:q.insertedCount,insertedIds:q.insertedIds})})}}AM.InsertManyOperation=YY;J6.defineAspects(VZ,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(XY,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(YY,[J6.Aspect.WRITE_OPERATION])});var WY=z((wM)=>{var UZ=function(Z,J,$){if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:Z,u:J};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(wM,"__esModule",{value:!0});wM.makeUpdateStatement=wM.ReplaceOneOperation=wM.UpdateManyOperation=wM.UpdateOneOperation=wM.UpdateOperation=void 0;var l0=h(),KY=_(),Hx=T1(),u1=J1();class J7 extends Hx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.multi==null||Z.multi===!1)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={update:this.ns.collection,updates:this.statements,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}wM.UpdateOperation=J7;class GY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateOneOperation=GY;class qY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!0})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateManyOperation=qY;class FY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.ReplaceOneOperation=FY;wM.makeUpdateStatement=UZ;u1.defineAspects(J7,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(GY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(qY,[u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(FY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION])});var N5=z((BM)=>{var LZ=function(Z,J,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&J.ok===1){J.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:Z.operations[0]};J.writeErrors.push(new AZ(Q));return}else if(X.ok===0&&J.ok===0)return;if(NM(Z)&&X.n)J.nInserted=J.nInserted+X.n;if(zY(Z)&&X.n)J.nRemoved=J.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)J.upserted.push({index:X.upserted[Q].index+Z.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,J.upserted.push({index:Z.originalZeroIndex,_id:X.upserted});if(HY(Z)&&X.n){const Q=X.nModified;if(J.nUpserted=J.nUpserted+Y,J.nMatched=J.nMatched+(X.n-Y),typeof Q==="number")J.nModified=J.nModified+Q;else J.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:Z.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:Z.operations[X.writeErrors[Q].index]};J.writeErrors.push(new AZ(K))}if(X.writeConcernError)J.writeConcernErrors.push(new E5(X.writeConcernError))},IM=function(Z,J,$){if(Z.s.batches.length===0)return $(void 0,new _6(Z.s.bulkResult,Z.isOrdered));const X=Z.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof k1.MongoWriteConcernError))return $(new $7(K,new _6(Z.s.bulkResult,Z.isOrdered)));if(K instanceof k1.MongoWriteConcernError)return Lx(X,Z.s.bulkResult,Z.isOrdered,K,$);LZ(X,Z.s.bulkResult,K,G);const q=new _6(Z.s.bulkResult,Z.isOrdered);if(Z.handleWriteError($,q))return;IM(Z,J,$)}const Q=k6.resolveOptions(Z,{...J,ordered:Z.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(Z.operationId)Y.operationId=Z.operationId;if(Z.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(Z.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(HY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(zY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(NM(X))jZ.executeOperation(Z.s.collection.client,new jx.InsertOperation(Z.s.namespace,X.operations,Q),Y);else if(HY(X))jZ.executeOperation(Z.s.collection.client,new L4.UpdateOperation(Z.s.namespace,X.operations,Q),Y);else if(zY(X))jZ.executeOperation(Z.s.collection.client,new I5.DeleteOperation(Z.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,LZ(X,Z.s.bulkResult,K,void 0),$()}},Lx=function(Z,J,$,X,Y){LZ(Z,J,void 0,X.result),Y(new $7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new _6(J,$)))},DM=function(Z){if(typeof Z.s.options.forceServerObjectId==="boolean")return Z.s.options.forceServerObjectId;if(typeof Z.s.collection.s.db.options?.forceServerObjectId==="boolean")return Z.s.collection.s.db.options?.forceServerObjectId;return!1},NM=function(Z){return Z.batchType===BM.BatchType.INSERT},HY=function(Z){return Z.batchType===BM.BatchType.UPDATE},zY=function(Z){return Z.batchType===BM.BatchType.DELETE},T5=function(Z){let{currentOp:J}=Z.s;if(Z.s.currentOp=void 0,!J)J={};return J};Object.defineProperty(BM,"__esModule",{value:!0});BM.BulkOperationBase=BM.FindOperators=BM.MongoBulkWriteError=BM.mergeBatchResults=BM.WriteError=BM.WriteConcernError=BM.BulkWriteResult=BM.Batch=BM.BatchType=void 0;var MZ=D1(),k1=h(),I5=oX(),jZ=B0(),jx=QY(),Ax=J1(),L4=WY(),k6=_(),PM=A0(),D5=Symbol("serverError");BM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class TM{constructor(Z,J){this.originalZeroIndex=J,this.currentIndex=0,this.originalIndexes=[],this.batchType=Z,this.operations=[],this.size=0,this.sizeBytes=0}}BM.Batch=TM;class _6{static generateIdMap(Z){const J={};for(let $ of Z)J[$.index]=$._id;return J}constructor(Z,J){this.result=Z,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=_6.generateIdMap(this.result.upserted),this.insertedIds=_6.generateIdMap(this.getSuccessfullyInsertedIds(Z,J)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}getSuccessfullyInsertedIds(Z,J){if(Z.writeErrors.length===0)return Z.insertedIds;if(J)return Z.insertedIds.slice(0,Z.writeErrors[0].index);return Z.insertedIds.filter(({index:$})=>!Z.writeErrors.some((X)=>$===X.index))}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(Z){return this.result.upserted[Z]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(Z){return Z<this.result.writeErrors.length?this.result.writeErrors[Z]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let Z="";for(let J=0;J<this.result.writeConcernErrors.length;J++){const $=this.result.writeConcernErrors[J];if(Z=Z+$.errmsg,J===0)Z=Z+" and "}return new E5({errmsg:Z,code:k1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}BM.BulkWriteResult=_6;class E5{constructor(Z){this[D5]=Z}get code(){return this[D5].code}get errmsg(){return this[D5].errmsg}get errInfo(){return this[D5].errInfo}toJSON(){return this[D5]}toString(){return`WriteConcernError(${this.errmsg})`}}BM.WriteConcernError=E5;class AZ{constructor(Z){this.err=Z}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())})`}}BM.WriteError=AZ;BM.mergeBatchResults=LZ;class $7 extends k1.MongoServerError{constructor(Z,J){super(Z);if(this.writeErrors=[],Z instanceof E5)this.err=Z;else if(!(Z instanceof Error))this.message=Z.message,this.code=Z.code,this.writeErrors=Z.writeErrors??[];this.result=J,Object.assign(this,Z)}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}}BM.MongoBulkWriteError=$7;class VY{constructor(Z){this.bulkOperation=Z}update(Z){const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!0}))}updateOne(Z){if(!k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}replaceOne(Z){if(k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}deleteOne(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:1}))}delete(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=Z,this}arrayFilters(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=Z,this}hint(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=Z,this}}BM.FindOperators=VY;class EM extends Ax.AbstractCallbackOperation{constructor(Z,J){super(J);this.bulkOperation=Z}executeCallback(Z,J,$){if(this.options.session==null)this.options.session=J;return IM(this.bulkOperation,this.options,$)}}class UY{constructor(Z,J,$){this.isOrdered=$;const X=k6.getTopology(Z);J=J==null?{}:J;const Y=Z.s.namespace,Q=!1,K=void 0,G=X.lastHello(),q=!!(X.s.options&&X.s.options.autoEncrypter),F=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=q?2097152:F,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,V=(H-1).toString(10).length+2;let j=Object.assign({},J);j=k6.applyRetryableWrites(j,Z.s.db);const U={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:U,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:PM.WriteConcern.fromOptions(J),maxBsonObjectSize:F,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:V,namespace:Y,topology:X,options:j,bsonOptions:MZ.resolveBSONOptions(J),currentOp:K,executed:Q,collection:Z,err:void 0,checkKeys:typeof J.checkKeys==="boolean"?J.checkKeys:!1},J.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(Z){if(Z._id==null&&!DM(this))Z._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z)}find(Z){if(!Z)throw new k1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:Z},new VY(this)}raw(Z){if(Z==null||typeof Z!=="object")throw new k1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in Z){const J=DM(this);if(Z.insertOne&&Z.insertOne.document==null){if(J!==!0&&Z.insertOne._id==null)Z.insertOne._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne)}if(J!==!0&&Z.insertOne.document._id==null)Z.insertOne.document._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne.document)}if("replaceOne"in Z||"updateOne"in Z||"updateMany"in Z){if("replaceOne"in Z){if("q"in Z.replaceOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.replaceOne.filter,Z.replaceOne.replacement,{...Z.replaceOne,multi:!1});if(k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateOne"in Z){if("q"in Z.updateOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateOne.filter,Z.updateOne.update,{...Z.updateOne,multi:!1});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateMany"in Z){if("q"in Z.updateMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateMany.filter,Z.updateMany.update,{...Z.updateMany,multi:!0});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}}if("deleteOne"in Z){if("q"in Z.deleteOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteOne.filter,{...Z.deleteOne,limit:1}))}if("deleteMany"in Z){if("q"in Z.deleteMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteMany.filter,{...Z.deleteMany,limit:0}))}throw new k1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const Z=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)Z.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)Z.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)Z.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)Z.push(this.s.currentRemoveBatch)}return Z}async execute(Z={}){if(this.s.executed)throw new k1.MongoBatchReExecutionError;const J=PM.WriteConcern.fromOptions(Z);if(J)this.s.writeConcern=J;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new k1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...Z},X=new EM(this,$);return jZ.executeOperation(this.s.collection.client,X)}handleWriteError(Z,J){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return Z(new $7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},J)),!0}const $=J.getWriteConcernError();if($)return Z(new $7($,J)),!0;return!1}}BM.BulkOperationBase=UY;Object.defineProperty(UY.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var MY=z((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.OrderedBulkOperation=void 0;var Nx=D1(),hM=h(),wZ=N5();class OM extends wZ.BulkOperationBase{constructor(Z,J){super(Z,J,!0)}addToOperationsList(Z,J){const $=Nx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new hM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(Z===wZ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:J._id});if(Array.isArray(J))throw new hM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(J),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}SM.OrderedBulkOperation=OM});var jY=z((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.UnorderedBulkOperation=void 0;var Bx=D1(),kM=h(),$6=N5();class _M extends $6.BulkOperationBase{constructor(Z,J){super(Z,J,!1)}handleWriteError(Z,J){if(this.s.batches.length)return!1;return super.handleWriteError(Z,J)}addToOperationsList(Z,J){const $=Bx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new kM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,Z===$6.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(Z===$6.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(Z===$6.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(Array.isArray(J))throw new kM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(J),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,Z===$6.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:J._id});else if(Z===$6.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(Z===$6.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}xM.UnorderedBulkOperation=_M});var RZ=z((gM)=>{Object.defineProperty(gM,"__esModule",{value:!0});gM.AggregateOperation=gM.DB_AGGREGATE_COLLECTION=void 0;var fM=h(),Cx=_(),hx=A0(),Ox=T1(),B5=J1();gM.DB_AGGREGATE_COLLECTION=1;var Sx=8;class AY extends Ox.CommandCallbackOperation{constructor(Z,J,$){super(void 0,{...$,dbName:Z.db});if(this.options={...$},this.target=Z.collection||gM.DB_AGGREGATE_COLLECTION,this.pipeline=J,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(J.length>0){const X=J[J.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new fM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new fM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(Z){this.pipeline.push(Z)}executeCallback(Z,J,$){const X=this.options,Y=Cx.maxWireVersion(Z),Q={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&Y<Sx)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)hx.WriteConcern.apply(Q,this.writeConcern);if(X.bypassDocumentValidation===!0)Q.bypassDocumentValidation=X.bypassDocumentValidation;if(typeof X.allowDiskUse==="boolean")Q.allowDiskUse=X.allowDiskUse;if(X.hint)Q.hint=X.hint;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(Q.cursor=X.cursor||{},X.batchSize&&!this.hasWriteStage)Q.cursor.batchSize=X.batchSize;super.executeCommandCallback(Z,J,Q,$)}}gM.AggregateOperation=AY;B5.defineAspects(AY,[B5.Aspect.READ_OPERATION,B5.Aspect.RETRYABLE,B5.Aspect.EXPLAINABLE,B5.Aspect.CURSOR_CREATING])});var C0=z((dM)=>{Object.defineProperty(dM,"__esModule",{value:!0});dM.CancellationToken=dM.TypedEventEmitter=void 0;var yx=import.meta.require("events");class LY extends yx.EventEmitter{emitAndLog(Z,...J){if(this.emit(Z,...J),this.component)this.mongoLogger?.debug(this.component,J[0])}}dM.TypedEventEmitter=LY;class uM extends LY{}dM.CancellationToken=uM});var PY=z((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.GetMoreOperation=void 0;var wY=h(),_x=_(),PZ=J1();class RY extends PZ.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.options=X,this.ns=Z,this.cursorId=J,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new wY.MongoRuntimeError("Getmore must run on the same server operation began on"));if(this.cursorId==null||this.cursorId.isZero())return $(new wY.MongoRuntimeError("Unable to iterate cursor with no id"));const X=this.ns.collection;if(X==null)return $(new wY.MongoRuntimeError("A collection name must be determined before getMore"));const Y={getMore:this.cursorId,collection:X};if(typeof this.options.batchSize==="number")Y.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")Y.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&_x.maxWireVersion(Z)>=9)Y.comment=this.options.comment;const Q={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};Z.command(this.ns,Y,Q,$)}}cM.GetMoreOperation=RY;PZ.defineAspects(RY,[PZ.Aspect.READ_OPERATION,PZ.Aspect.MUST_SELECT_SAME_SERVER])});var nM=z((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.KillCursorsOperation=void 0;var aM=h(),DY=J1();class TY extends DY.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.ns=J,this.cursorId=Z,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new aM.MongoRuntimeError("Killcursor must run on the same server operation began on"));const X=this.ns.collection;if(X==null)return $(new aM.MongoRuntimeError("A collection name must be determined before killCursors"));const Y={killCursors:X,cursors:[this.cursorId]};Z.command(this.ns,Y,{session:J},()=>$())}}iM.KillCursorsOperation=TY;DY.defineAspects(TY,[DY.Aspect.MUST_SELECT_SAME_SERVER])});var IY=z((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.ConnectionPoolMetrics=void 0;class X6{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(Z){if(Z===X6.TXN)this.txnConnections+=1;else if(Z===X6.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(Z){if(Z===X6.TXN)this.txnConnections-=1;else if(Z===X6.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(Z){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${Z}, `+`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}}X6.TXN="txn";X6.CURSOR="cursor";X6.OTHER="other";tM.ConnectionPoolMetrics=X6});var C5=z((Jj)=>{var eM=function(Z,J){if(J?.loadBalanced)return C1.ServerType.LoadBalancer;if(!Z||!Z.ok)return C1.ServerType.Unknown;if(Z.isreplicaset)return C1.ServerType.RSGhost;if(Z.msg&&Z.msg==="isdbgrid")return C1.ServerType.Mongos;if(Z.setName)if(Z.hidden)return C1.ServerType.RSOther;else if(Z.isWritablePrimary)return C1.ServerType.RSPrimary;else if(Z.secondary)return C1.ServerType.RSSecondary;else if(Z.arbiterOnly)return C1.ServerType.RSArbiter;else return C1.ServerType.RSOther;return C1.ServerType.Standalone},gx=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);return $.length===X.length&&$.every((Y)=>J[Y]===Z[Y])},Zj=function(Z,J){if(Z==null||J==null)return-1;if(!Z.processId.equals(J.processId))return-1;const $=DZ.Long.isLong(Z.counter)?Z.counter:DZ.Long.fromNumber(Z.counter),X=DZ.Long.isLong(J.counter)?J.counter:DZ.Long.fromNumber(J.counter);return $.compare(X)};Object.defineProperty(Jj,"__esModule",{value:!0});Jj.compareTopologyVersion=Jj.parseServerType=Jj.ServerDescription=void 0;var DZ=D1(),xx=h(),X7=_(),C1=p0(),vx=new Set([C1.ServerType.RSPrimary,C1.ServerType.Standalone,C1.ServerType.Mongos,C1.ServerType.LoadBalancer]),fx=new Set([C1.ServerType.RSPrimary,C1.ServerType.RSSecondary,C1.ServerType.Mongos,C1.ServerType.Standalone,C1.ServerType.LoadBalancer]);class oM{constructor(Z,J,$={}){if(Z==null||Z==="")throw new xx.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof Z==="string"?X7.HostAddress.fromString(Z).toString():Z.toString(),this.type=eM(J,$),this.hosts=J?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=J?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=J?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=J?.tags??{},this.minWireVersion=J?.minWireVersion??0,this.maxWireVersion=J?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=X7.now(),this.lastWriteDate=J?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??J?.topologyVersion??null,this.setName=J?.setName??null,this.setVersion=J?.setVersion??null,this.electionId=J?.electionId??null,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes??null,this.primary=J?.primary??null,this.me=J?.me?.toLowerCase()??null,this.$clusterTime=J?.$clusterTime??null}get hostAddress(){return X7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===C1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return fx.has(this.type)}get isWritable(){return vx.has(this.type)}get host(){const Z=`:${this.port}`.length;return this.address.slice(0,-Z)}get port(){const Z=this.address.split(":").pop();return Z?Number.parseInt(Z,10):27017}equals(Z){const J=this.topologyVersion===Z?.topologyVersion||Zj(this.topologyVersion,Z?.topologyVersion)===0,$=this.electionId!=null&&Z?.electionId!=null?X7.compareObjectId(this.electionId,Z.electionId)===0:this.electionId===Z?.electionId;return Z!=null&&X7.errorStrictEqual(this.error,Z.error)&&this.type===Z.type&&this.minWireVersion===Z.minWireVersion&&X7.arrayStrictEqual(this.hosts,Z.hosts)&&gx(this.tags,Z.tags)&&this.setName===Z.setName&&this.setVersion===Z.setVersion&&$&&this.primary===Z.primary&&this.logicalSessionTimeoutMinutes===Z.logicalSessionTimeoutMinutes&&J}}Jj.ServerDescription=oM;Jj.parseServerType=eM;Jj.compareTopologyVersion=Zj});var NY=z((qj)=>{var lx=function(Z){switch(Z){case i.ServerType.Standalone:return i.TopologyType.Single;case i.ServerType.Mongos:return i.TopologyType.Sharded;case i.ServerType.RSPrimary:return i.TopologyType.ReplicaSetWithPrimary;case i.ServerType.RSOther:case i.ServerType.RSSecondary:return i.TopologyType.ReplicaSetNoPrimary;default:return i.TopologyType.Unknown}},Gj=function(Z,J,$=null,X=null,Y=null){if($=$||J.setName,$!==J.setName)return Z.delete(J.address),[w4(Z),$,X,Y];if(J.maxWireVersion>=17){const G=EY.compareObjectId(Y,J.electionId),q=G===0,F=G===-1,W=(X??-1)<=(J.setVersion??-1);if(F||q&&W)Y=J.electionId,X=J.setVersion;else return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}else{const G=J.electionId?J.electionId:null;if(J.setVersion&&G){if(X&&Y){if(X>J.setVersion||EY.compareObjectId(Y,G)>0)return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}Y=J.electionId}if(J.setVersion!=null&&(X==null||J.setVersion>X))X=J.setVersion}for(let[G,q]of Z)if(q.type===i.ServerType.RSPrimary&&q.address!==J.address){Z.set(G,new x6.ServerDescription(q.address));break}J.allHosts.forEach((G)=>{if(!Z.has(G))Z.set(G,new x6.ServerDescription(G))});const Q=Array.from(Z.keys()),K=J.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{Z.delete(G)}),[w4(Z),$,X,Y]},ax=function(Z,J,$=null){if($==null)throw new ux.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==J.setName||J.me&&J.address!==J.me)Z.delete(J.address);return w4(Z)},ix=function(Z,J,$=null){const X=i.TopologyType.ReplicaSetNoPrimary;if($=$??J.setName,$!==J.setName)return Z.delete(J.address),[X,$];if(J.allHosts.forEach((Y)=>{if(!Z.has(Y))Z.set(Y,new x6.ServerDescription(Y))}),J.me&&J.address!==J.me)Z.delete(J.address);return[X,$]},w4=function(Z){for(let J of Z.values())if(J.type===i.ServerType.RSPrimary)return i.TopologyType.ReplicaSetWithPrimary;return i.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(qj,"__esModule",{value:!0});qj.TopologyDescription=void 0;var TZ=j4(),ux=h(),EY=_(),i=p0(),x6=C5(),dx=TZ.MIN_SUPPORTED_SERVER_VERSION,px=TZ.MAX_SUPPORTED_SERVER_VERSION,Xj=TZ.MIN_SUPPORTED_WIRE_VERSION,Yj=TZ.MAX_SUPPORTED_WIRE_VERSION,cx=new Set([i.ServerType.Mongos,i.ServerType.Unknown]),Qj=new Set([i.ServerType.Mongos,i.ServerType.Standalone]),Kj=new Set([i.ServerType.RSSecondary,i.ServerType.RSArbiter,i.ServerType.RSOther]);class h5{constructor(Z,J=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=Z??i.TopologyType.Unknown,this.servers=J??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===i.ServerType.Unknown||G.type===i.ServerType.LoadBalancer)continue;if(G.minWireVersion>Yj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${Yj} (MongoDB ${px})`;if(G.maxWireVersion<Xj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Xj} (MongoDB ${dx}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(Z,J=0){const $=Z.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(J===0)for(let G of Y)K.set(G,new x6.ServerDescription(G));else if(K.size<J){const G=EY.shuffle(Y,J-K.size);for(let q of G)K.set(q,new x6.ServerDescription(q))}}return new h5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(Z){const J=Z.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=Z.type,q=new Map(this.servers);if(Z.maxWireVersion!==0)if(K==null)K=Z.maxWireVersion;else K=Math.min(K,Z.maxWireVersion);if(typeof Z.setName==="string"&&typeof X==="string"&&Z.setName!==X)if($===i.TopologyType.Single)Z=new x6.ServerDescription(J);else q.delete(J);if(q.set(J,Z),$===i.TopologyType.Single)return new h5(i.TopologyType.Single,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===i.TopologyType.Unknown)if(G===i.ServerType.Standalone&&this.servers.size!==1)q.delete(J);else $=lx(G);if($===i.TopologyType.Sharded){if(!cx.has(G))q.delete(J)}if($===i.TopologyType.ReplicaSetNoPrimary){if(Qj.has(G))q.delete(J);if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G)){const F=ix(q,Z,X);$=F[0],X=F[1]}}if($===i.TopologyType.ReplicaSetWithPrimary)if(Qj.has(G))q.delete(J),$=w4(q);else if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G))$=ax(q,Z,X);else $=w4(q);return new h5($,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const Z=Array.from(this.servers.values()).filter((J)=>J.error);if(Z.length>0)return Z[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((Z)=>Z.type!==i.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((Z)=>Z.isDataBearing)}hasServer(Z){return this.servers.has(Z)}}qj.TopologyDescription=h5});var CY=z((Hj)=>{var tx=function(Z){let J=Z?.readPreference??BY.ReadPreference.primary;if(Z?.readPreference)J=Z.readPreference;if(typeof J==="string")J=BY.ReadPreference.fromString(J);if(!(J instanceof BY.ReadPreference))throw new sx.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return J},rx=function(Z){if(Z==null)return!1;if(Z.description&&Z.description.type===Wj.ServerType.Mongos)return!0;if(Z.description&&Z.description instanceof nx.TopologyDescription)return Array.from(Z.description.servers.values()).some(($)=>$.type===Wj.ServerType.Mongos);return!1};Object.defineProperty(Hj,"__esModule",{value:!0});Hj.isSharded=Hj.getReadPreference=void 0;var sx=h(),BY=y1(),Wj=p0(),nx=NY();Hj.getReadPreference=tx;Hj.isSharded=rx});var hY=z((Mj)=>{var Qv=function(Z){return!!(Z.commitTransaction||Z.abortTransaction)};Object.defineProperty(Mj,"__esModule",{value:!0});Mj.isTransactionCommand=Mj.Transaction=Mj.TxnState=void 0;var Vj=h(),ex=d0(),Zv=y1(),Jv=A0();Mj.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"});var $v={[Mj.TxnState.NO_TRANSACTION]:[Mj.TxnState.NO_TRANSACTION,Mj.TxnState.STARTING_TRANSACTION],[Mj.TxnState.STARTING_TRANSACTION]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_IN_PROGRESS]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_COMMITTED]:[Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_ABORTED]:[Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.NO_TRANSACTION]},Xv=new Set([Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.TRANSACTION_IN_PROGRESS]),Yv=new Set([Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED]);class Uj{constructor(Z){Z=Z??{},this.state=Mj.TxnState.NO_TRANSACTION,this.options={};const J=Jv.WriteConcern.fromOptions(Z);if(J){if(J.w===0)throw new Vj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=J}if(Z.readConcern)this.options.readConcern=ex.ReadConcern.fromOptions(Z);if(Z.readPreference)this.options.readPreference=Zv.ReadPreference.fromOptions(Z);if(Z.maxCommitTimeMS)this.options.maxTimeMS=Z.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===Mj.TxnState.STARTING_TRANSACTION}get isActive(){return Xv.has(this.state)}get isCommitted(){return Yv.has(this.state)}transition(Z){const J=$v[this.state];if(J&&J.includes(Z)){if(this.state=Z,this.state===Mj.TxnState.NO_TRANSACTION||this.state===Mj.TxnState.STARTING_TRANSACTION||this.state===Mj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Vj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${Z}]`)}pinServer(Z){if(this.isActive)this._pinnedServer=Z}unpinServer(){this._pinnedServer=void 0}}Mj.Transaction=Uj;Mj.isTransactionCommand=Qv});var S5=z((Nj)=>{var Ij=function(Z,J){return F8.calculateDurationInMs(Z)<J},Uv=function(Z){const J=Z instanceof b.MongoServerError&&Z.codeName&&Vv.has(Z.codeName);return hZ(Z)||!J&&Z.code!==b.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&Z.code!==b.MONGODB_ERROR_CODES.UnknownReplWriteConcern},CZ=function(Z,J){const $=Z[Q7],X=J?.error;if(Z.inTransaction()&&X&&X instanceof b.MongoError&&X.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return;const Y=Z.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(J?.error==null||J?.force){if(K.pool.checkIn($),$.emit(Dj.UNPINNED,Z.transaction.state!==j1.TxnState.NO_TRANSACTION?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR),J?.forceClear)K.pool.clear({serviceId:$.serviceId})}Z[Q7]=void 0}},hZ=function(Z){if(Z==null||!(Z instanceof b.MongoServerError))return!1;return Z.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired||Z.writeConcernError&&Z.writeConcernError.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired},Ej=function(Z,J,$,X){return Z.commitTransaction().catch((Y)=>{if(Y instanceof b.MongoError&&Ij(J,Tj)&&!hZ(Y)){if(Y.hasErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult))return Ej(Z,J,$,X);if(Y.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return yY(Z,J,$,X)}throw Y})},jv=function(Z){return Mv.has(Z.transaction.state)},yY=function(Z,J,$,X){Z.startTransaction(X);let Y;try{Y=$(Z)}catch(Q){Y=Promise.reject(Q)}if(!F8.isPromiseLike(Y))throw Z.abortTransaction().catch(()=>null),new b.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return Y.then(()=>{if(jv(Z))return;return Ej(Z,J,$,X)},(Q)=>{function K(G){if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError)&&Ij(J,Tj))return yY(Z,J,$,X);if(hZ(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(Z.inTransaction())return Z.abortTransaction().then(()=>K(Q));return K(Q)})},Av=function(Z,J,$){const X=Z.transaction.state;if(X===j1.TxnState.NO_TRANSACTION){$(new b.MongoTransactionError("No transaction started"));return}if(J==="commitTransaction"){if(X===j1.TxnState.STARTING_TRANSACTION||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===j1.TxnState.TRANSACTION_COMMITTED||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new b.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[J]:1};let Q;if(Z.transaction.options.writeConcern)Q=Object.assign({},Z.transaction.options.writeConcern);else if(Z.clientOptions&&Z.clientOptions.writeConcern)Q={w:Z.clientOptions.writeConcern.w};if(X===j1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)Hv.WriteConcern.apply(Y,Q);if(J==="commitTransaction"&&Z.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:Z.transaction.options.maxTimeMS});function K(G,q){if(J!=="commitTransaction"){if(Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),Z.loadBalanced)CZ(Z,{force:!1});return $()}if(Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED),G instanceof b.MongoError){if(G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)||G instanceof b.MongoWriteConcernError||hZ(G)){if(Uv(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult),Z.unpin({error:G})}else if(G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))Z.unpin({error:G})}$(G,q)}if(Z.transaction.recoveryToken)Y.recoveryToken=Z.transaction.recoveryToken;Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),(G,q)=>{if(Y.abortTransaction)Z.unpin();if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)){if(Y.commitTransaction)Z.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G,q)})},Lv=function(Z,J,$){if(Z.hasEnded)return new b.MongoExpiredSessionError;const X=Z.serverSession;if(X==null)return new b.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(Z&&Z.explicit)return new b.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F8.now(),J.lsid=X.id;const Y=Z.inTransaction()||j1.isTransactionCommand(J);if(!!$.willRetryWrite||Y)X.txnNumber+=Z[BZ],Z[BZ]=0,J.txnNumber=IZ.Long.fromNumber(X.txnNumber);if(!Y){if(Z.transaction.state!==j1.TxnState.NO_TRANSACTION)Z.transaction.transition(j1.TxnState.NO_TRANSACTION);if(Z.supports.causalConsistency&&Z.operationTime&&F8.commandSupportsReadConcern(J,$))J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime});else if(Z[K7]){if(J.readConcern=J.readConcern||{level:Wv.ReadConcernLevel.snapshot},Z[NZ]!=null)Object.assign(J.readConcern,{atClusterTime:Z[NZ]})}return}if(J.autocommit=!1,Z.transaction.state===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_IN_PROGRESS),J.startTransaction=!0;const K=Z.transaction.options.readConcern||Z?.clientOptions?.readConcern;if(K)J.readConcern=K;if(Z.supports.causalConsistency&&Z.operationTime)J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime})}return},wv=function(Z,J){if(J.$clusterTime)OY._advanceClusterTime(Z,J.$clusterTime);if(J.operationTime&&Z&&Z.supports.causalConsistency)Z.advanceOperationTime(J.operationTime);if(J.recoveryToken&&Z&&Z.inTransaction())Z.transaction._recoveryToken=J.recoveryToken;if(Z?.[K7]&&Z[NZ]==null){const $=J.cursor?.atClusterTime||J.atClusterTime;if($)Z[NZ]=$}},Pj;Object.defineProperty(Nj,"__esModule",{value:!0});Nj.updateSessionFromResponse=Nj.applySession=Nj.ServerSessionPool=Nj.ServerSession=Nj.maybeClearPinnedConnection=Nj.ClientSession=void 0;var Gv=import.meta.require("util"),IZ=D1(),EZ=IY(),qv=CY(),Dj=f1(),b=h(),Fv=C0(),Aj=B0(),Lj=Z7(),Wv=d0(),wj=y1(),OY=p0(),j1=hY(),F8=_(),Hv=A0(),zv=8,Y7=Symbol("serverSession"),NZ=Symbol("snapshotTime"),K7=Symbol("snapshotEnabled"),Q7=Symbol("pinnedConnection"),BZ=Symbol("txnNumberIncrement");class SY extends Fv.TypedEventEmitter{constructor(Z,J,$,X){super();if(this[Pj]=!1,Z==null)throw new b.MongoRuntimeError("ClientSession requires a MongoClient");if(J==null||!(J instanceof kY))throw new b.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[K7]=!0,$.causalConsistency===!0)throw new b.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=Z,this.sessionPool=J,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[Y7]=this.explicit?this.sessionPool.acquire():null,this[BZ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new j1.Transaction}get id(){return this[Y7]?.id}get serverSession(){let Z=this[Y7];if(Z==null){if(this.explicit)throw new b.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new b.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");Z=this.sessionPool.acquire(),this[Y7]=Z}return Z}get snapshotEnabled(){return this[K7]}get loadBalanced(){return this.client.topology?.description.type===OY.TopologyType.LoadBalanced}get pinnedConnection(){return this[Q7]}pin(Z){if(this[Q7])throw TypeError("Cannot pin multiple connections to the same session");this[Q7]=Z,Z.emit(Dj.PINNED,this.inTransaction()?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR)}unpin(Z){if(this.loadBalanced)return CZ(this,Z);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[Q7]:this.transaction.isPinned}async endSession(Z){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const J=this[Y7];if(J!=null)this.sessionPool.release(J),Object.defineProperty(this,Y7,{value:O5.clone(J),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{CZ(this,{force:!0,...Z})}}advanceOperationTime(Z){if(this.operationTime==null){this.operationTime=Z;return}if(Z.greaterThan(this.operationTime))this.operationTime=Z}advanceClusterTime(Z){if(!Z||typeof Z!=="object")throw new b.MongoInvalidArgumentError("input cluster time must be an object");if(!Z.clusterTime||Z.clusterTime._bsontype!=="Timestamp")throw new b.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!Z.signature||Z.signature.hash?._bsontype!=="Binary"||typeof Z.signature.keyId!=="bigint"&&typeof Z.signature.keyId!=="number"&&Z.signature.keyId?._bsontype!=="Long")throw new b.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');OY._advanceClusterTime(this,Z)}equals(Z){if(!(Z instanceof SY))return!1;if(this.id==null||Z.id==null)return!1;return F8.ByteUtils.equals(this.id.id.buffer,Z.id.id.buffer)}incrementTransactionNumber(){this[BZ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(Z){if(this[K7])throw new b.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new b.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const J=F8.maxWireVersion(this.client.topology);if(qv.isSharded(this.client.topology)&&J!=null&&J<zv)throw new b.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new j1.Transaction({readConcern:Z?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:Z?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:Z?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:Z?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(j1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Rj(this,"commitTransaction")}async abortTransaction(){return Rj(this,"abortTransaction")}toBSON(){throw new b.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(Z,J){const $=F8.now();return yY(this,$,Z,J)}}Nj.ClientSession=SY;Pj=K7;var Tj=120000,Vv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);Nj.maybeClearPinnedConnection=CZ;var Mv=new Set([j1.TxnState.NO_TRANSACTION,j1.TxnState.TRANSACTION_COMMITTED,j1.TxnState.TRANSACTION_ABORTED]),Rj=Gv.promisify(Av);class O5{constructor(){this.id={id:new IZ.Binary(F8.uuidV4(),IZ.Binary.SUBTYPE_UUID)},this.lastUse=F8.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(Z){return Math.round(F8.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>Z-1}static clone(Z){const J=new ArrayBuffer(16),$=Buffer.from(J);$.set(Z.id.id.buffer);const X=new IZ.Binary($,Z.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:Z.lastUse,txnNumber:Z.txnNumber,isDirty:Z.isDirty},O5.prototype)}}Nj.ServerSession=O5;class kY{constructor(Z){if(Z==null)throw new b.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=Z,this.sessions=new F8.List}acquire(){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;let J=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(Z))){J=$;break}}if(J==null)J=new O5;return J}release(Z){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!J)this.sessions.unshift(Z);if(!J)return;if(this.sessions.prune(($)=>$.hasTimedOut(J)),!Z.hasTimedOut(J)){if(Z.isDirty)return;this.sessions.unshift(Z)}}}Nj.ServerSessionPool=kY;Nj.applySession=Lv;Nj.updateSessionFromResponse=wv});var Q6=z((kj)=>{async function yZ(Z,{blocking:J,transform:$}){if(Z.closed)return null;do{if(Z[$0]==null)await _Y.promisify(Z[yj].bind(Z))();if(Z[X0].length!==0){const Y=Z[X0].shift();if(Y!=null&&$&&Z[x5])try{return Z[x5](Y)}catch(Q){throw await q7(Z,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(Z.isDead)return await q7(Z,{}),null;const X=Z[g1].batchSize||1000;try{const Y=await _Y.promisify(Z._getMore.bind(Z))(X);if(Y){const Q=typeof Y.cursor.id==="number"?W8.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?W8.Long.fromBigInt(Y.cursor.id):Y.cursor.id;Z[X0].pushMany(Y.cursor.nextBatch),Z[$0]=Q}}catch(Y){throw await q7(Z,{error:Y}).catch(()=>null),Y}if(Z.isDead)await q7(Z,{});if(Z[X0].length===0&&J===!1)return null}while(!Z.isDead||Z[X0].length!==0);return null}var vY=function(Z,J,$){const X=Z[$0],Y=Z[y5],Q=Z[SZ],K=Z[Y6],G=J?.error,q=J?.needsToEmitClosed??Z[X0].length===0;if(G){if(Z.loadBalanced&&G instanceof h0.MongoNetworkError)return F()}if(X==null||Q==null||X.isZero()||Y==null){if(q)Z[R4]=!0,Z[$0]=W8.Long.ZERO,Z.emit(F7.CLOSE);if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return $()}function F(){if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{Z.emit(F7.CLOSE),$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return Z.emit(F7.CLOSE),$()}if(Z[_5]=!0,K.hasEnded)return F();Sj.executeOperation(Z[G7],new Bv.KillCursorsOperation(X,Y,Q,{session:K})).catch(()=>null).finally(F)},P4=function(Z){if(Z[k5])throw new h0.MongoCursorInUseError};Object.defineProperty(kj,"__esModule",{value:!0});kj.assertUninitialized=kj.AbstractCursor=kj.CURSOR_FLAGS=void 0;var Oj=import.meta.require("stream"),_Y=import.meta.require("util"),W8=D1(),h0=h(),Ev=C0(),Sj=B0(),Nv=PY(),Bv=nM(),Cj=d0(),OZ=y1(),xY=S5(),hj=_(),$0=Symbol("id"),X0=Symbol("documents"),SZ=Symbol("server"),y5=Symbol("namespace"),G7=Symbol("client"),Y6=Symbol("session"),g1=Symbol("options"),x5=Symbol("transform"),k5=Symbol("initialized"),R4=Symbol("closed"),_5=Symbol("killed"),yj=Symbol("kInit");kj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class F7 extends Ev.TypedEventEmitter{constructor(Z,J,$={}){super();if(!Z.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[G7]=Z,this[y5]=J,this[$0]=null,this[X0]=new hj.List,this[k5]=!1,this[R4]=!1,this[_5]=!1,this[g1]={readPreference:$.readPreference&&$.readPreference instanceof OZ.ReadPreference?$.readPreference:OZ.ReadPreference.primary,...W8.pluckBSONSerializeOptions($)};const X=Cj.ReadConcern.fromOptions($);if(X)this[g1].readConcern=X;if(typeof $.batchSize==="number")this[g1].batchSize=$.batchSize;if($.comment!==void 0)this[g1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[g1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[g1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof xY.ClientSession)this[Y6]=$.session;else this[Y6]=this[G7].startSession({owner:this,explicit:!1})}get id(){return this[$0]??void 0}get isDead(){return(this[$0]?.isZero()??!1)||this[R4]||this[_5]}get client(){return this[G7]}get server(){return this[SZ]}get namespace(){return this[y5]}get readPreference(){return this[g1].readPreference}get readConcern(){return this[g1].readConcern}get session(){return this[Y6]}set session(Z){this[Y6]=Z}get cursorOptions(){return this[g1]}get closed(){return this[R4]}get killed(){return this[_5]}get loadBalanced(){return!!this[G7].topology?.loadBalanced}bufferedCount(){return this[X0].length}readBufferedDocuments(Z){const J=[],$=Math.min(Z??this[X0].length,this[X0].length);for(let X=0;X<$;X++){const Y=this[X0].shift();if(Y!=null)J.push(Y)}return J}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const Z=await this.next();if(Z===null){if(!this.closed)throw await q7(this,{needsToEmitClosed:!0}).catch(()=>null),new h0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield Z,this[$0]===W8.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(Z){if(Z?.transform){const J=Z.transform;return new fY(this).pipe(new Oj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=J(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new fY(this)}async hasNext(){if(this[$0]===W8.Long.ZERO)return!1;if(this[X0].length!==0)return!0;const Z=await yZ(this,{blocking:!0,transform:!1});if(Z)return this[X0].unshift(Z),!0;return!1}async next(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!1,transform:!0})}async forEach(Z){if(typeof Z!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let J of this)if(Z(J)===!1)break}async close(){const Z=!this[R4];this[R4]=!0,await q7(this,{needsToEmitClosed:Z})}async toArray(){const Z=[];for await(let J of this)Z.push(J);return Z}addCursorFlag(Z,J){if(P4(this),!kj.CURSOR_FLAGS.includes(Z))throw new h0.MongoInvalidArgumentError(`Flag ${Z} is not one of ${kj.CURSOR_FLAGS}`);if(typeof J!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${Z} must be a boolean value`);return this[g1][Z]=J,this}map(Z){P4(this);const J=this[x5];if(J)this[x5]=($)=>{return Z(J($))};else this[x5]=Z;return this}withReadPreference(Z){if(P4(this),Z instanceof OZ.ReadPreference)this[g1].readPreference=Z;else if(typeof Z==="string")this[g1].readPreference=OZ.ReadPreference.fromString(Z);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return this}withReadConcern(Z){P4(this);const J=Cj.ReadConcern.fromOptions({readConcern:Z});if(J)this[g1].readConcern=J;return this}maxTimeMS(Z){if(P4(this),typeof Z!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[g1].maxTimeMS=Z,this}batchSize(Z){if(P4(this),this[g1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof Z!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[g1].batchSize=Z,this}rewind(){if(!this[k5])return;this[$0]=null,this[X0].clear(),this[R4]=!1,this[_5]=!1,this[k5]=!1;const Z=this[Y6];if(Z){if(Z.explicit===!1){if(!Z.hasEnded)Z.endSession().catch(()=>null);this[Y6]=this.client.startSession({owner:this,explicit:!1})}}}_getMore(Z,J){const $=new Nv.GetMoreOperation(this[y5],this[$0],this[SZ],{...this[g1],session:this[Y6],batchSize:Z});Sj.executeOperation(this[G7],$,J)}[yj](Z){this._initialize(this[Y6],(J,$)=>{if($){const X=$.response;if(this[SZ]=$.server,X.cursor){if(this[$0]=typeof X.cursor.id==="number"?W8.Long.fromNumber(X.cursor.id):typeof X.cursor.id==="bigint"?W8.Long.fromBigInt(X.cursor.id):X.cursor.id,X.cursor.ns)this[y5]=hj.ns(X.cursor.ns);this[X0].pushMany(X.cursor.firstBatch)}if(this[$0]==null)this[$0]=W8.Long.ZERO,this[X0].push($.response)}if(this[k5]=!0,J)return vY(this,{error:J},()=>Z(J,void 0));if(this.isDead)return vY(this,void 0,()=>Z());Z()})}}F7.CLOSE="close";kj.AbstractCursor=F7;var q7=_Y.promisify(vY);kj.assertUninitialized=P4;class fY extends Oj.Readable{constructor(Z){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=Z}_read(Z){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(Z,J){this._cursor.close().then(()=>J(Z),($)=>J($))}_readNext(){yZ(this._cursor,{blocking:!0,transform:!0}).then((Z)=>{if(Z==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(Z))return this._readNext();this._readInProgress=!1}},(Z)=>{if(Z.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(Z.message.match(/operation was interrupted/))return this.push(null);return this.destroy(Z)})}}});var v5=z((fj)=>{Object.defineProperty(fj,"__esModule",{value:!0});fj.AggregationCursor=void 0;var xj=RZ(),vj=B0(),hv=_(),a0=Q6(),Y0=Symbol("pipeline"),kZ=Symbol("options");class bY extends a0.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);this[Y0]=$,this[kZ]=X}get pipeline(){return this[Y0]}clone(){const Z=hv.mergeOptions({},this[kZ]);return delete Z.session,new bY(this.client,this.namespace,this[Y0],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,session:Z});vj.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}async explain(Z){return vj.executeOperation(this.client,new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,explain:Z??!0}))}group(Z){return a0.assertUninitialized(this),this[Y0].push({$group:Z}),this}limit(Z){return a0.assertUninitialized(this),this[Y0].push({$limit:Z}),this}match(Z){return a0.assertUninitialized(this),this[Y0].push({$match:Z}),this}out(Z){return a0.assertUninitialized(this),this[Y0].push({$out:Z}),this}project(Z){return a0.assertUninitialized(this),this[Y0].push({$project:Z}),this}lookup(Z){return a0.assertUninitialized(this),this[Y0].push({$lookup:Z}),this}redact(Z){return a0.assertUninitialized(this),this[Y0].push({$redact:Z}),this}skip(Z){return a0.assertUninitialized(this),this[Y0].push({$skip:Z}),this}sort(Z){return a0.assertUninitialized(this),this[Y0].push({$sort:Z}),this}unwind(Z){return a0.assertUninitialized(this),this[Y0].push({$unwind:Z}),this}geoNear(Z){return a0.assertUninitialized(this),this[Y0].push({$geoNear:Z}),this}}fj.AggregationCursor=bY});var dY=z((bj)=>{Object.defineProperty(bj,"__esModule",{value:!0});bj.CountOperation=void 0;var Ov=T1(),mY=J1();class uY extends Ov.CommandCallbackOperation{constructor(Z,J,$){super({s:{namespace:Z}},$);this.options=$,this.collectionName=Z.collection,this.query=J}executeCallback(Z,J,$){const X=this.options,Y={count:this.collectionName,query:this.query};if(typeof X.limit==="number")Y.limit=X.limit;if(typeof X.skip==="number")Y.skip=X.skip;if(X.hint!=null)Y.hint=X.hint;if(typeof X.maxTimeMS==="number")Y.maxTimeMS=X.maxTimeMS;super.executeCommandCallback(Z,J,Y,(Q,K)=>{$(Q,K?K.n:0)})}}bj.CountOperation=uY;mY.defineAspects(uY,[mY.Aspect.READ_OPERATION,mY.Aspect.RETRYABLE])});var _Z=z((dj)=>{var W7=function(Z=1){const J=`${Z}`.toLowerCase();if(Sv(Z))return Z;switch(J){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new uj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(Z)}`)}},Sv=function(Z){return typeof Z==="object"&&Z!=null&&"$meta"in Z&&typeof Z.$meta==="string"},yv=function(Z){if(Array.isArray(Z)&&Z.length===2)try{return W7(Z[1]),!0}catch(J){return!1}return!1},kv=function(Z){return Array.isArray(Z)&&Array.isArray(Z[0])},_v=function(Z){return Z instanceof Map&&Z.size>0},xv=function(Z){return new Map([[`${Z[0]}`,W7([Z[1]])]])},vv=function(Z){const J=Z.map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},fv=function(Z){const J=Z.map(($)=>[`${$}`,1]);return new Map(J)},gv=function(Z){const J=Object.entries(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},bv=function(Z){const J=Array.from(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},mv=function(Z,J){if(Z==null)return;if(typeof Z==="string")return new Map([[Z,W7(J)]]);if(typeof Z!=="object")throw new uj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(Z)} Sort must be a valid object`);if(!Array.isArray(Z))return _v(Z)?bv(Z):Object.keys(Z).length?gv(Z):void 0;if(!Z.length)return;if(kv(Z))return vv(Z);if(yv(Z))return xv(Z);return fv(Z)};Object.defineProperty(dj,"__esModule",{value:!0});dj.formatSort=void 0;var uj=h();dj.formatSort=mv});var ij=z((lj)=>{var lv=function(Z,J,$){const X={find:Z.collection,filter:J};if($.sort)X.sort=pv.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=cj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=dv.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(lj,"__esModule",{value:!0});lj.FindOperation=void 0;var uv=h(),dv=d0(),pv=_Z(),cj=_(),cv=T1(),f5=J1();class pY extends cv.CommandCallbackOperation{constructor(Z,J,$={},X={}){super(Z,X);if(this.options={...X},delete this.options.writeConcern,this.ns=J,typeof $!=="object"||Array.isArray($))throw new uv.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}executeCallback(Z,J,$){this.server=Z;const X=this.options;let Y=lv(this.ns,this.filter,X);if(this.explain)Y=cj.decorateWithExplain(Y,this.explain);Z.command(this.ns,Y,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:J},$)}}lj.FindOperation=pY;f5.defineAspects(pY,[f5.Aspect.READ_OPERATION,f5.Aspect.RETRYABLE,f5.Aspect.EXPLAINABLE,f5.Aspect.CURSOR_CREATING])});var iY=z((tj)=>{Object.defineProperty(tj,"__esModule",{value:!0});tj.FindCursor=tj.FLAGS=void 0;var av=D1(),H8=h(),iv=dY(),cY=B0(),sj=ij(),lY=_Z(),nj=_(),p1=Q6(),D4=Symbol("filter"),g5=Symbol("numReturned"),n=Symbol("builtOptions");tj.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class aY extends p1.AbstractCursor{constructor(Z,J,$={},X={}){super(Z,J,X);if(this[D4]=$,this[n]=X,X.sort!=null)this[n].sort=lY.formatSort(X.sort)}clone(){const Z=nj.mergeOptions({},this[n]);return delete Z.session,new aY(this.client,this.namespace,this[D4],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,session:Z});cY.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);if(Y.cursor)this[g5]=Y.cursor.firstBatch.length;else this[g5]=Y.documents?Y.documents.length:0;J(void 0,{server:$.server,session:Z,response:Y})})}_getMore(Z,J){const $=this[g5];if($){const X=this[n].limit;if(Z=X&&X>0&&$+Z>X?X-$:Z,Z<=0){this.close().finally(()=>J(void 0,{cursor:{id:av.Long.ZERO,nextBatch:[]}}));return}}super._getMore(Z,(X,Y)=>{if(X)return J(X);if(Y)this[g5]=this[g5]+Y.cursor.nextBatch.length;J(void 0,Y)})}async count(Z){if(nj.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof Z==="boolean")throw new H8.MongoInvalidArgumentError("Invalid first parameter to count");return cY.executeOperation(this.client,new iv.CountOperation(this.namespace,this[D4],{...this[n],...this.cursorOptions,...Z}))}async explain(Z){return cY.executeOperation(this.client,new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,explain:Z??!0}))}filter(Z){return p1.assertUninitialized(this),this[D4]=Z,this}hint(Z){return p1.assertUninitialized(this),this[n].hint=Z,this}min(Z){return p1.assertUninitialized(this),this[n].min=Z,this}max(Z){return p1.assertUninitialized(this),this[n].max=Z,this}returnKey(Z){return p1.assertUninitialized(this),this[n].returnKey=Z,this}showRecordId(Z){return p1.assertUninitialized(this),this[n].showRecordId=Z,this}addQueryModifier(Z,J){if(p1.assertUninitialized(this),Z[0]!=="$")throw new H8.MongoInvalidArgumentError(`${Z} is not a valid query modifier`);switch(Z.substr(1)){case"comment":this[n].comment=J;break;case"explain":this[n].explain=J;break;case"hint":this[n].hint=J;break;case"max":this[n].max=J;break;case"maxTimeMS":this[n].maxTimeMS=J;break;case"min":this[n].min=J;break;case"orderby":this[n].sort=lY.formatSort(J);break;case"query":this[D4]=J;break;case"returnKey":this[n].returnKey=J;break;case"showDiskLoc":this[n].showRecordId=J;break;default:throw new H8.MongoInvalidArgumentError(`Invalid query modifier: ${Z}`)}return this}comment(Z){return p1.assertUninitialized(this),this[n].comment=Z,this}maxAwaitTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[n].maxAwaitTimeMS=Z,this}maxTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[n].maxTimeMS=Z,this}project(Z){return p1.assertUninitialized(this),this[n].projection=Z,this}sort(Z,J){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support sorting");return this[n].sort=lY.formatSort(Z,J),this}allowDiskUse(Z=!0){if(p1.assertUninitialized(this),!this[n].sort)throw new H8.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!Z)return this[n].allowDiskUse=!1,this;return this[n].allowDiskUse=!0,this}collation(Z){return p1.assertUninitialized(this),this[n].collation=Z,this}limit(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[n].limit=Z,this}skip(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[n].skip=Z,this}}tj.FindCursor=aY});var b5=z((JA)=>{var rv=function(Z){return typeof Z==="number"||Z==="2d"||Z==="2dsphere"||Z==="text"||Z==="geoHaystack"},ov=function(Z){return Array.isArray(Z)&&Z.length===2&&rv(Z[1])},ev=function(Z,J){const $=new Map,X=!Array.isArray(Z)||ov(Z)?[Z]:Z;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(nY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...J,key:$}};Object.defineProperty(JA,"__esModule",{value:!0});JA.IndexInformationOperation=JA.IndexExistsOperation=JA.ListIndexesOperation=JA.DropIndexesOperation=JA.DropIndexOperation=JA.EnsureIndexOperation=JA.CreateIndexOperation=JA.CreateIndexesOperation=JA.IndexesOperation=void 0;var sY=h(),nv=y1(),nY=_(),tY=T1(),rY=$Y(),c1=J1(),tv=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class oj extends c1.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection,Y=this.options;rY.indexInformation(X.s.db,X.collectionName,{full:!0,...Y,readPreference:this.readPreference,session:J},$)}}JA.IndexesOperation=oj;class xZ extends tY.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collectionName=J,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([q])=>tv.has(q))),name:K,key:Q}})}executeCallback(Z,J,$){const X=this.options,Y=this.indexes,Q=nY.maxWireVersion(Z),K={createIndexes:this.collectionName,indexes:Y};if(X.commitQuorum!=null){if(Q<9){$(new sY.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));return}K.commitQuorum=X.commitQuorum}this.options.collation=void 0,super.executeCommandCallback(Z,J,K,(G)=>{if(G){$(G);return}const q=Y.map((F)=>F.name||"");$(void 0,q)})}}JA.CreateIndexesOperation=xZ;class vZ extends xZ{constructor(Z,J,$,X){super(Z,J,[ev($,X)],X)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);return $(void 0,Y[0])})}}JA.CreateIndexOperation=vZ;class oY extends vZ{constructor(Z,J,$,X){super(Z,J,$,X);this.readPreference=nv.ReadPreference.primary,this.db=Z,this.collectionName=J}executeCallback(Z,J,$){const X=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:J}).toArray().then((Q)=>{if(Q=Array.isArray(Q)?Q:[Q],Q.some((K)=>K.name===X)){$(void 0,X);return}super.executeCallback(Z,J,$)},(Q)=>{if(Q instanceof sY.MongoError&&Q.code===sY.MONGODB_ERROR_CODES.NamespaceNotFound)return super.executeCallback(Z,J,$);return $(Q)})}}JA.EnsureIndexOperation=oY;class fZ extends tY.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.collection=Z,this.indexName=J}executeCallback(Z,J,$){const X={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommandCallback(Z,J,X,$)}}JA.DropIndexOperation=fZ;class eY extends fZ{constructor(Z,J){super(Z,"*",J)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X)=>{if(X)return $(X,!1);$(void 0,!0)})}}JA.DropIndexesOperation=eY;class Z3 extends tY.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options={...J},delete this.options.writeConcern,this.collectionNamespace=Z.s.namespace}executeCallback(Z,J,$){const X=nY.maxWireVersion(Z),Y=this.options.batchSize?{batchSize:this.options.batchSize}:{},Q={listIndexes:this.collectionNamespace.collection,cursor:Y};if(X>=9&&this.options.comment!==void 0)Q.comment=this.options.comment;super.executeCommandCallback(Z,J,Q,$)}}JA.ListIndexesOperation=Z3;class ej extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.indexes=J}executeCallback(Z,J,$){const X=this.collection,Y=this.indexes;rY.indexInformation(X.s.db,X.collectionName,{...this.options,readPreference:this.readPreference,session:J},(Q,K)=>{if(Q!=null)return $(Q);if(!Array.isArray(Y))return $(void 0,K[Y]!=null);for(let G=0;G<Y.length;G++)if(K[Y[G]]==null)return $(void 0,!1);return $(void 0,!0)})}}JA.IndexExistsOperation=ej;class ZA extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$??{},this.db=Z,this.name=J}executeCallback(Z,J,$){const X=this.db,Y=this.name;rY.indexInformation(X,Y,{...this.options,readPreference:this.readPreference,session:J},$)}}JA.IndexInformationOperation=ZA;c1.defineAspects(Z3,[c1.Aspect.READ_OPERATION,c1.Aspect.RETRYABLE,c1.Aspect.CURSOR_CREATING]);c1.defineAspects(xZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(vZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(oY,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(fZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(eY,[c1.Aspect.WRITE_OPERATION])});var $3=z((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.ListIndexesCursor=void 0;var qf=B0(),Ff=b5(),Wf=Q6();class J3 extends Wf.AbstractCursor{constructor(Z,J){super(Z.client,Z.s.namespace,J);this.parent=Z,this.options=J}clone(){return new J3(this.parent,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Ff.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:Z});qf.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}XA.ListIndexesCursor=J3});var qA=z((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.ListSearchIndexesCursor=void 0;var Hf=v5();class QA extends Hf.AggregationCursor{constructor({fullNamespace:Z,client:J},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(J,Z,Y,X)}}KA.ListSearchIndexesCursor=QA});var zA=z((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.CountDocumentsOperation=void 0;var zf=RZ();class FA extends zf.AggregateOperation{constructor(Z,J,$){const X=[];if(X.push({$match:J}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(Z.s.namespace,X,$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y){$(X);return}const Q=Y;if(Q.cursor==null||Q.cursor.firstBatch==null){$(void 0,0);return}const K=Q.cursor.firstBatch;$(void 0,K.length?K[0].n:0)})}}WA.CountDocumentsOperation=FA});var jA=z((UA)=>{Object.defineProperty(UA,"__esModule",{value:!0});UA.DistinctOperation=void 0;var VA=_(),Vf=T1(),gZ=J1();class X3 extends Vf.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collection=Z,this.key=J,this.query=$}executeCallback(Z,J,$){const X=this.collection,Y=this.key,Q=this.query,K=this.options,G={distinct:X.collectionName,key:Y,query:Q};if(typeof K.maxTimeMS==="number")G.maxTimeMS=K.maxTimeMS;if(typeof K.comment!=="undefined")G.comment=K.comment;VA.decorateWithReadConcern(G,X,K);try{VA.decorateWithCollation(G,X,K)}catch(q){return $(q)}super.executeCommandCallback(Z,J,G,(q,F)=>{if(q){$(q);return}$(void 0,this.explain?F:F.values)})}}UA.DistinctOperation=X3;gZ.defineAspects(X3,[gZ.Aspect.READ_OPERATION,gZ.Aspect.RETRYABLE,gZ.Aspect.EXPLAINABLE])});var Q3=z((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.DropDatabaseOperation=wA.DropCollectionOperation=void 0;var AA=h(),LA=T1(),bZ=J1();class mZ extends LA.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.db=Z,this.options=$,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.options,Q=this.name,K=X.client.options.autoEncryption?.encryptedFieldsMap;let G=Y.encryptedFields??K?.[`${X.databaseName}.${Q}`];if(!G&&K)G=(await X.listCollections({name:Q},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(G){const q=G.escCollection||`enxcol_.${Q}.esc`,F=G.ecocCollection||`enxcol_.${Q}.ecoc`;for(let W of[q,F]){const H=new mZ(X,W);try{await H.executeWithoutEncryptedFieldsCheck(Z,J)}catch(V){if(!(V instanceof AA.MongoServerError)||V.code!==AA.MONGODB_ERROR_CODES.NamespaceNotFound)throw V}}}return this.executeWithoutEncryptedFieldsCheck(Z,J)})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{super.executeCommandCallback(Z,J,{drop:this.name},(Y,Q)=>{if(Y)return X(Y);$(!!Q.ok)})})}}wA.DropCollectionOperation=mZ;class Y3 extends LA.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropDatabase:1},(X,Y)=>{if(X)return $(X);if(Y.ok)return $(void 0,!0);$(void 0,!1)})}}wA.DropDatabaseOperation=Y3;bZ.defineAspects(mZ,[bZ.Aspect.WRITE_OPERATION]);bZ.defineAspects(Y3,[bZ.Aspect.WRITE_OPERATION])});var TA=z((PA)=>{Object.defineProperty(PA,"__esModule",{value:!0});PA.EstimatedDocumentCountOperation=void 0;var Mf=T1(),uZ=J1();class K3 extends Mf.CommandCallbackOperation{constructor(Z,J={}){super(Z,J);this.options=J,this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")X.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,(Y,Q)=>{if(Y){$(Y);return}$(void 0,Q?.n||0)})}}PA.EstimatedDocumentCountOperation=K3;uZ.defineAspects(K3,[uZ.Aspect.READ_OPERATION,uZ.Aspect.RETRYABLE,uZ.Aspect.CURSOR_CREATING])});var G3=z((CA)=>{var IA=function(Z,J){if(Z.new=J.returnDocument===CA.ReturnDocument.AFTER,Z.upsert=J.upsert===!0,J.bypassDocumentValidation===!0)Z.bypassDocumentValidation=J.bypassDocumentValidation;return Z};Object.defineProperty(CA,"__esModule",{value:!0});CA.FindOneAndUpdateOperation=CA.FindOneAndReplaceOperation=CA.FindOneAndDeleteOperation=CA.ReturnDocument=void 0;var v6=h(),jf=y1(),Af=_Z(),pZ=_(),Lf=T1(),dZ=J1();CA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class m5 extends Lf.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??($.includeResultMetadata=!0);const X=Af.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=jf.ReadPreference.primary,this.collection=Z,this.query=J}executeCallback(Z,J,$){const X=this.collection,Y=this.query,Q={...this.options,...this.bsonOptions},K={findAndModify:X.collectionName,query:Y,...this.cmdBase};try{pZ.decorateWithCollation(K,X,Q)}catch(G){return $(G)}if(Q.hint){if(this.writeConcern?.w===0||pZ.maxWireVersion(Z)<8){$(new v6.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));return}K.hint=Q.hint}super.executeCommandCallback(Z,J,K,(G,q)=>{if(G)return $(G);return $(void 0,Q.includeResultMetadata?q:q.value??null)})}}class EA extends m5{constructor(Z,J,$){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');super(Z,J,$);this.cmdBase.remove=!0}}CA.FindOneAndDeleteOperation=EA;class NA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "replacement" must be an object');if(pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(Z,J,X);this.cmdBase.update=$,IA(this.cmdBase,X)}}CA.FindOneAndReplaceOperation=NA;class BA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "update" must be an object');if(!pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Update document requires atomic operators");super(Z,J,X);if(this.cmdBase.update=$,IA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}CA.FindOneAndUpdateOperation=BA;dZ.defineAspects(m5,[dZ.Aspect.WRITE_OPERATION,dZ.Aspect.RETRYABLE,dZ.Aspect.EXPLAINABLE])});var _A=z((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.IsCappedOperation=void 0;var Pf=h(),Df=J1();class SA extends Df.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Pf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,!!Y[0].options?.capped)},(Y)=>$(Y))}}yA.IsCappedOperation=SA});var gA=z((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.OptionsOperation=void 0;var Tf=h(),If=J1();class xA extends If.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Tf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,Y[0].options)},(Y)=>$(Y))}}vA.OptionsOperation=xA});var F3=z((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.RenameOperation=void 0;var Ef=T4(),Nf=h(),Bf=_(),bA=J1(),Cf=Z7();class q3 extends Cf.RunAdminCommandOperation{constructor(Z,J,$){Bf.checkCollectionName(J);const X=Z.namespace,Y=Z.s.namespace.withCollection(J).toString(),Q=typeof $.dropTarget==="boolean"?$.dropTarget:!1,K={renameCollection:X,to:Y,dropTarget:Q};super(Z,K,$);this.options=$,this.collection=Z,this.newName=J}executeCallback(Z,J,$){const X=this.collection;super.executeCallback(Z,J,(Y,Q)=>{if(Y)return $(Y);if(Q?.errmsg)return $(new Nf.MongoServerError(Q));let K;try{K=new Ef.Collection(X.s.db,this.newName,X.s.options)}catch(G){return $(G)}return $(void 0,K)})}}mA.RenameOperation=q3;bA.defineAspects(q3,[bA.Aspect.WRITE_OPERATION])});var lA=z((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.CreateSearchIndexesOperation=void 0;var hf=J1();class dA extends hf.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.descriptions=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={createSearchIndexes:X.collection,indexes:this.descriptions};Z.command(X,Y,{session:J},(Q,K)=>{if(Q||!K){$(Q);return}const G=K?.indexesCreated??[];$(void 0,G.map(({name:q})=>q))})}}pA.CreateSearchIndexesOperation=dA});var nA=z((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.DropSearchIndexOperation=void 0;var Of=J1();class aA extends Of.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.name=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={dropSearchIndex:X.collection};if(typeof this.name==="string")Y.name=this.name;Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}iA.DropSearchIndexOperation=aA});var eA=z((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.UpdateSearchIndexOperation=void 0;var Sf=J1();class tA extends Sf.AbstractCallbackOperation{constructor(Z,J,$){super();this.collection=Z,this.name=J,this.definition=$}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={updateSearchIndex:X.collection,name:this.name,definition:this.definition};Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}rA.UpdateSearchIndexOperation=tA});var z3=z((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.DbStatsOperation=JL.CollStatsOperation=void 0;var ZL=T1(),cZ=J1();class W3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={collStats:this.collectionName};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.CollStatsOperation=W3;class H3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){const X={dbStats:!0};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.DbStatsOperation=H3;cZ.defineAspects(W3,[cZ.Aspect.READ_OPERATION]);cZ.defineAspects(H3,[cZ.Aspect.READ_OPERATION])});var T4=z((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.Collection=void 0;var kf=D1(),_f=MY(),xf=jY(),vf=H7(),ff=v5(),gf=iY(),bf=$3(),mf=qA(),XL=h(),uf=JY(),df=dY(),pf=zA(),YL=oX(),cf=jA(),lf=Q3(),af=TA(),X1=B0(),V3=G3(),I4=b5(),QL=QY(),sf=_A(),nf=gA(),tf=F3(),rf=lA(),of=nA(),ef=eA(),Zg=z3(),U3=WY(),Jg=d0(),M3=y1(),o=_(),$g=A0();class KL{constructor(Z,J,$){o.checkCollectionName(J),this.s={db:Z,options:$,namespace:new o.MongoDBCollectionNamespace(Z.databaseName,J),pkFactory:Z.options?.pkFactory??o.DEFAULT_PK_FACTORY,readPreference:M3.ReadPreference.fromOptions($),bsonOptions:kf.resolveBSONOptions($,Z),readConcern:Jg.ReadConcern.fromOptions($),writeConcern:$g.WriteConcern.fromOptions($)},this.client=Z.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(Z){this.s.collectionHint=o.normalizeHintField(Z)}async insertOne(Z,J){return X1.executeOperation(this.client,new QL.InsertOneOperation(this,Z,o.resolveOptions(this,J)))}async insertMany(Z,J){return X1.executeOperation(this.client,new QL.InsertManyOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async bulkWrite(Z,J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return X1.executeOperation(this.client,new uf.BulkWriteOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async updateOne(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateOneOperation(this,Z,J,o.resolveOptions(this,$)))}async replaceOne(Z,J,$){return X1.executeOperation(this.client,new U3.ReplaceOneOperation(this,Z,J,o.resolveOptions(this,$)))}async updateMany(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateManyOperation(this,Z,J,o.resolveOptions(this,$)))}async deleteOne(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteOneOperation(this,Z,o.resolveOptions(this,J)))}async deleteMany(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteManyOperation(this,Z,o.resolveOptions(this,J)))}async rename(Z,J){return X1.executeOperation(this.client,new tf.RenameOperation(this,Z,{...J,readPreference:M3.ReadPreference.PRIMARY}))}async drop(Z){return X1.executeOperation(this.client,new lf.DropCollectionOperation(this.s.db,this.collectionName,Z))}async findOne(Z={},J={}){const $=this.find(Z,J).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(Z={},J={}){return new gf.FindCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}async options(Z){return X1.executeOperation(this.client,new nf.OptionsOperation(this,o.resolveOptions(this,Z)))}async isCapped(Z){return X1.executeOperation(this.client,new sf.IsCappedOperation(this,o.resolveOptions(this,Z)))}async createIndex(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexOperation(this,this.collectionName,Z,o.resolveOptions(this,J)))}async createIndexes(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexesOperation(this,this.collectionName,Z,o.resolveOptions(this,{...J,maxTimeMS:void 0})))}async dropIndex(Z,J){return X1.executeOperation(this.client,new I4.DropIndexOperation(this,Z,{...o.resolveOptions(this,J),readPreference:M3.ReadPreference.primary}))}async dropIndexes(Z){return X1.executeOperation(this.client,new I4.DropIndexesOperation(this,o.resolveOptions(this,Z)))}listIndexes(Z){return new bf.ListIndexesCursor(this,o.resolveOptions(this,Z))}async indexExists(Z,J){return X1.executeOperation(this.client,new I4.IndexExistsOperation(this,Z,o.resolveOptions(this,J)))}async indexInformation(Z){return X1.executeOperation(this.client,new I4.IndexInformationOperation(this.s.db,this.collectionName,o.resolveOptions(this,Z)))}async estimatedDocumentCount(Z){return X1.executeOperation(this.client,new af.EstimatedDocumentCountOperation(this,o.resolveOptions(this,Z)))}async countDocuments(Z={},J={}){return X1.executeOperation(this.client,new pf.CountDocumentsOperation(this,Z,o.resolveOptions(this,J)))}async distinct(Z,J={},$={}){return X1.executeOperation(this.client,new cf.DistinctOperation(this,Z,J,o.resolveOptions(this,$)))}async indexes(Z){return X1.executeOperation(this.client,new I4.IndexesOperation(this,o.resolveOptions(this,Z)))}async stats(Z){return X1.executeOperation(this.client,new Zg.CollStatsOperation(this,Z))}async findOneAndDelete(Z,J){return X1.executeOperation(this.client,new V3.FindOneAndDeleteOperation(this,Z,o.resolveOptions(this,J)))}async findOneAndReplace(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndReplaceOperation(this,Z,J,o.resolveOptions(this,$)))}async findOneAndUpdate(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndUpdateOperation(this,Z,J,o.resolveOptions(this,$)))}aggregate(Z=[],J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new ff.AggregationCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new vf.ChangeStream(this,Z,o.resolveOptions(this,J))}initializeUnorderedBulkOp(Z){return new xf.UnorderedBulkOperation(this,o.resolveOptions(this,Z))}initializeOrderedBulkOp(Z){return new _f.OrderedBulkOperation(this,o.resolveOptions(this,Z))}async count(Z={},J={}){return X1.executeOperation(this.client,new df.CountOperation(this.fullNamespace,Z,o.resolveOptions(this,J)))}listSearchIndexes(Z,J){J=typeof Z==="object"?Z:J==null?{}:J;const $=Z==null?null:typeof Z==="object"?null:Z;return new mf.ListSearchIndexesCursor(this,$,J)}async createSearchIndex(Z){const[J]=await this.createSearchIndexes([Z]);return J}async createSearchIndexes(Z){return X1.executeOperation(this.client,new rf.CreateSearchIndexesOperation(this,Z))}async dropSearchIndex(Z){return X1.executeOperation(this.client,new of.DropSearchIndexOperation(this,Z))}async updateSearchIndex(Z,J){return X1.executeOperation(this.client,new ef.UpdateSearchIndexOperation(this,Z,J))}}GL.Collection=KL});var w3=z((WL)=>{Object.defineProperty(WL,"__esModule",{value:!0});WL.ChangeStreamCursor=void 0;var j3=H7(),FL=f1(),Xg=RZ(),Yg=B0(),A3=_(),Qg=Q6();class L3 extends Qg.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(Z){this._resumeToken=Z,this.emit(j3.ChangeStream.RESUME_TOKEN_CHANGED,Z)}get resumeToken(){return this._resumeToken}get resumeOptions(){const Z={...this.options};for(let J of["resumeAfter","startAfter","startAtOperationTime"])delete Z[J];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)Z.startAfter=this.resumeToken;else Z.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&A3.maxWireVersion(this.server)>=7)Z.startAtOperationTime=this.startAtOperationTime;return Z}cacheResumeToken(Z){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=Z;this.hasReceived=!0}_processBatch(Z){const J=Z.cursor;if(J.postBatchResumeToken){if(this.postBatchResumeToken=Z.cursor.postBatchResumeToken,("firstBatch"in Z.cursor?Z.cursor.firstBatch:Z.cursor.nextBatch).length===0)this.resumeToken=J.postBatchResumeToken}}clone(){return new L3(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(Z,J){const $=new Xg.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:Z});Yg.executeOperation(Z.client,$,(X,Y)=>{if(X||Y==null)return J(X);const Q=$.server;if(this.maxWireVersion=A3.maxWireVersion(Q),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=Y.operationTime;this._processBatch(Y),this.emit(FL.INIT,Y),this.emit(FL.RESPONSE),J(void 0,{server:Q,session:Z,response:Y})})}_getMore(Z,J){super._getMore(Z,($,X)=>{if($)return J($);this.maxWireVersion=A3.maxWireVersion(this.server),this._processBatch(X),this.emit(j3.ChangeStream.MORE,X),this.emit(j3.ChangeStream.RESPONSE),J($,X)})}}WL.ChangeStreamCursor=L3});var UL=z((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.ListCollectionsOperation=void 0;var Kg=_(),Gg=T1(),lZ=J1();class R3 extends Gg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);if(this.options={...$},delete this.options.writeConcern,this.db=Z,this.filter=J,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}executeCallback(Z,J,$){return super.executeCommandCallback(Z,J,this.generateCommand(Kg.maxWireVersion(Z)),$)}generateCommand(Z){const J={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(Z>=9&&this.options.comment!==void 0)J.comment=this.options.comment;return J}}zL.ListCollectionsOperation=R3;lZ.defineAspects(R3,[lZ.Aspect.READ_OPERATION,lZ.Aspect.RETRYABLE,lZ.Aspect.CURSOR_CREATING])});var D3=z((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.ListCollectionsCursor=void 0;var qg=B0(),Fg=UL(),Wg=Q6();class P3 extends Wg.AbstractCursor{constructor(Z,J,$){super(Z.client,Z.s.namespace,$);this.parent=Z,this.filter=J,this.options=$}clone(){return new P3(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Fg.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:Z});qg.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}ML.ListCollectionsCursor=P3});var PL=z((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.RunCommandCursor=void 0;var z7=h(),AL=B0(),Hg=PY(),zg=Z7(),Vg=_(),Ug=Q6();class LL extends Ug.AbstractCursor{setComment(Z){return this.getMoreOptions.comment=Z,this}setMaxTimeMS(Z){return this.getMoreOptions.maxAwaitTimeMS=Z,this}setBatchSize(Z){return this.getMoreOptions.batchSize=Z,this}clone(){throw new z7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(Z){throw new z7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(Z,J){throw new z7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(Z){throw new z7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(Z){throw new z7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(Z,J,$={}){super(Z.client,Vg.ns(Z.namespace),$);this.getMoreOptions={},this.db=Z,this.command=Object.freeze({...J})}_initialize(Z,J){const $=new zg.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:Z,readPreference:this.cursorOptions.readPreference});AL.executeOperation(this.client,$).then((X)=>{if(X.cursor==null){J(new z7.MongoUnexpectedServerResponseError("Expected server to respond with cursor"));return}J(void 0,{server:$.server,session:Z,response:X})},(X)=>J(X))}_getMore(Z,J){const $=new Hg.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});AL.executeOperation(this.client,$,J)}}wL.RunCommandCursor=LL});var EL=z((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.CollectionsOperation=void 0;var Mg=T4(),jg=J1();class DL extends jg.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.db=Z}executeCallback(Z,J,$){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:J}).toArray().then((X)=>{const Y=[];for(let{name:Q}of X)if(!Q.includes("$"))Y.push(new Mg.Collection(this.db,Q,this.db.s.options));$(void 0,Y)},(X)=>$(X))}}TL.CollectionsOperation=DL});var OL=z((CL)=>{Object.defineProperty(CL,"__esModule",{value:!0});CL.CreateCollectionOperation=void 0;var NL=j4(),Ag=T4(),Lg=h(),wg=T1(),Rg=b5(),BL=J1(),Pg=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),Dg="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class aZ extends wg.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.options=$,this.db=Z,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.name,Q=this.options,K=Q.encryptedFields??X.client.options.autoEncryption?.encryptedFieldsMap?.[`${X.databaseName}.${Y}`];if(K){if(!Z.loadBalanced&&Z.description.maxWireVersion<NL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new Lg.MongoCompatibilityError(`${Dg} The minimum server version required is ${NL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const q=K.escCollection??`enxcol_.${Y}.esc`,F=K.ecocCollection??`enxcol_.${Y}.ecoc`;for(let W of[q,F])await new aZ(X,W,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(Z,J);if(!Q.encryptedFields)this.options={...this.options,encryptedFields:K}}const G=await this.executeWithoutEncryptedFieldsCheck(Z,J);if(K)await new Rg.CreateIndexOperation(X,Y,{__safeContent__:1},{}).execute(Z,J);return G})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{const Y=this.db,Q=this.name,K=this.options,G=(F)=>{if(F)return X(F);$(new Ag.Collection(Y,Q,K))},q={create:Q};for(let F in K)if(K[F]!=null&&typeof K[F]!=="function"&&!Pg.has(F))q[F]=K[F];super.executeCommandCallback(Z,J,q,G)})}}CL.CreateCollectionOperation=aZ;BL.defineAspects(aZ,[BL.Aspect.WRITE_OPERATION])});var xL=z((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.ProfilingLevelOperation=void 0;var SL=h(),Tg=T1();class yL extends Tg.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{profile:-1},(X,Y)=>{if(X==null&&Y.ok===1){const Q=Y.was;if(Q===0)return $(void 0,"off");if(Q===1)return $(void 0,"slow_only");if(Q===2)return $(void 0,"all");return $(new SL.MongoRuntimeError(`Illegal profiling level value ${Q}`))}else X!=null?$(X):$(new SL.MongoRuntimeError("Error with profile command"))})}}kL.ProfilingLevelOperation=yL});var T3=z((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.SetProfilingLevelOperation=gL.ProfilingLevel=void 0;var vL=h(),Ig=_(),Eg=T1(),Ng=new Set(["off","slow_only","all"]);gL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class fL extends Eg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);switch(this.options=$,J){case gL.ProfilingLevel.off:this.profile=0;break;case gL.ProfilingLevel.slowOnly:this.profile=1;break;case gL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=J}executeCallback(Z,J,$){const X=this.level;if(!Ng.has(X))return $(new vL.MongoInvalidArgumentError(`Profiling level must be one of "${Ig.enumToString(gL.ProfilingLevel)}"`));super.executeCommandCallback(Z,J,{profile:this.profile},(Y,Q)=>{if(Y==null&&Q.ok===1)return $(void 0,X);return Y!=null?$(Y):$(new vL.MongoRuntimeError("Error with profile command"))})}}gL.SetProfilingLevelOperation=fL});var sZ=z((pL)=>{var ag=function(Z){if(typeof Z!=="string")throw new iZ.MongoInvalidArgumentError("Database name must be a string");if(Z.length===0)throw new iZ.MongoInvalidArgumentError("Database name cannot be the empty string");if(Z==="$external")return;const J=[" ",".","$","/","\\"];for(let $=0;$<J.length;$++)if(Z.indexOf(J[$])!==-1)throw new iZ.MongoAPIError(`database names cannot contain the character '${J[$]}'`)};Object.defineProperty(pL,"__esModule",{value:!0});pL.Db=void 0;var Bg=sX(),Cg=D1(),hg=H7(),Og=T4(),V7=f1(),Sg=v5(),yg=D3(),kg=PL(),iZ=h(),_g=uX(),xg=EL(),vg=OL(),mL=Q3(),O0=B0(),uL=b5(),fg=xL(),gg=aX(),bg=F3(),mg=Z7(),ug=T3(),dg=z3(),pg=d0(),dL=y1(),b1=_(),cg=A0(),lg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class f6{constructor(Z,J,$){$=$??{},$=b1.filterOptions($,lg),ag(J),this.s={options:$,readPreference:dL.ReadPreference.fromOptions($),bsonOptions:Cg.resolveBSONOptions($,Z),pkFactory:$?.pkFactory??b1.DEFAULT_PK_FACTORY,readConcern:pg.ReadConcern.fromOptions($),writeConcern:cg.WriteConcern.fromOptions($),namespace:new b1.MongoDBNamespace(J)},this.client=Z}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(Z,J){return O0.executeOperation(this.client,new vg.CreateCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async command(Z,J){return O0.executeOperation(this.client,new mg.RunCommandOperation(this,Z,J))}aggregate(Z=[],J){return new Sg.AggregationCursor(this.client,this.s.namespace,Z,b1.resolveOptions(this,J))}admin(){return new Bg.Admin(this)}collection(Z,J={}){if(typeof J==="function")throw new iZ.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Og.Collection(this,Z,b1.resolveOptions(this,J))}async stats(Z){return O0.executeOperation(this.client,new dg.DbStatsOperation(this,b1.resolveOptions(this,Z)))}listCollections(Z={},J={}){return new yg.ListCollectionsCursor(this,Z,b1.resolveOptions(this,J))}async renameCollection(Z,J,$){return O0.executeOperation(this.client,new bg.RenameOperation(this.collection(Z),J,{...$,new_collection:!0,readPreference:dL.ReadPreference.primary}))}async dropCollection(Z,J){return O0.executeOperation(this.client,new mL.DropCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async dropDatabase(Z){return O0.executeOperation(this.client,new mL.DropDatabaseOperation(this,b1.resolveOptions(this,Z)))}async collections(Z){return O0.executeOperation(this.client,new xg.CollectionsOperation(this,b1.resolveOptions(this,Z)))}async createIndex(Z,J,$){return O0.executeOperation(this.client,new uL.CreateIndexOperation(this,Z,J,b1.resolveOptions(this,$)))}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return O0.executeOperation(this.client,new _g.AddUserOperation(this,Z,X,b1.resolveOptions(this,$)))}async removeUser(Z,J){return O0.executeOperation(this.client,new gg.RemoveUserOperation(this,Z,b1.resolveOptions(this,J)))}async setProfilingLevel(Z,J){return O0.executeOperation(this.client,new ug.SetProfilingLevelOperation(this,Z,b1.resolveOptions(this,J)))}async profilingLevel(Z){return O0.executeOperation(this.client,new fg.ProfilingLevelOperation(this,b1.resolveOptions(this,Z)))}async indexInformation(Z,J){return O0.executeOperation(this.client,new uL.IndexInformationOperation(this,Z,b1.resolveOptions(this,J)))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new hg.ChangeStream(this,Z,b1.resolveOptions(this,J))}runCursorCommand(Z,J){return new kg.RunCommandCursor(this,Z,J)}}f6.SYSTEM_NAMESPACE_COLLECTION=V7.SYSTEM_NAMESPACE_COLLECTION;f6.SYSTEM_INDEX_COLLECTION=V7.SYSTEM_INDEX_COLLECTION;f6.SYSTEM_PROFILE_COLLECTION=V7.SYSTEM_PROFILE_COLLECTION;f6.SYSTEM_USER_COLLECTION=V7.SYSTEM_USER_COLLECTION;f6.SYSTEM_COMMAND_COLLECTION=V7.SYSTEM_COMMAND_COLLECTION;f6.SYSTEM_JS_COLLECTION=V7.SYSTEM_JS_COLLECTION;pL.Db=f6});var iL=z((H11,aL)=>{var K6=function(Z,J){if(!(this instanceof K6))return new K6(Z,J);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=Z||1024,this.deduplicate=J?J.deduplicate:null,this.zeros=this.deduplicate?nZ(this.deduplicate.length):null},ig=function(Z,J){while(Z.maxPages<J){var $=Z.pages;Z.pages=new Array(32768),Z.pages[0]=$,Z.level++,Z.maxPages*=32768}},sg=function(Z,J){if(Z.length===J)return Z;if(Z.length>J)return Z.slice(0,J);var $=nZ(J);return Z.copy($),$},nZ=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},ng=function(Z){var J=Buffer.allocUnsafe?Buffer.allocUnsafe(Z.length):new Buffer(Z.length);return Z.copy(J),J},lL=function(Z,J){this.offset=Z*J.length,this.buffer=J,this.updated=!1,this.deduplicate=0},tg=function(Z,J){Z=(Z-(J[0]=Z&32767))/32768,Z=(Z-(J[1]=Z&32767))/32768,J[3]=(Z-(J[2]=Z&32767))/32768&32767};aL.exports=K6;K6.prototype.updated=function(Z){while(this.deduplicate&&Z.buffer[Z.deduplicate]===this.deduplicate[Z.deduplicate])if(Z.deduplicate++,Z.deduplicate===this.deduplicate.length){if(Z.deduplicate=0,Z.buffer.equals&&Z.buffer.equals(this.deduplicate))Z.buffer=this.deduplicate;break}if(Z.updated||!this.updates)return;Z.updated=!0,this.updates.push(Z)};K6.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var Z=this.updates.pop();return Z.updated=!1,Z};K6.prototype._array=function(Z,J){if(Z>=this.maxPages){if(J)return;ig(this,Z)}tg(Z,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(J)return;Q=$[Y]=new Array(32768)}$=Q}return $};K6.prototype.get=function(Z,J){var $=this._array(Z,J),X=this.path[0],Y=$&&$[X];if(!Y&&!J){if(Y=$[X]=new lL(Z,nZ(this.pageSize)),Z>=this.length)this.length=Z+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!J)Y.buffer=ng(Y.buffer),Y.deduplicate=0;return Y};K6.prototype.set=function(Z,J){var $=this._array(Z,!1),X=this.path[0];if(Z>=this.length)this.length=Z+1;if(!J||this.zeros&&J.equals&&J.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&J.equals&&J.equals(this.deduplicate))J=this.deduplicate;var Y=$[X],Q=sg(J,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new lL(Z,Q)};K6.prototype.toBuffer=function(){var Z=new Array(this.length),J=nZ(this.pageSize),$=0;while($<Z.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<Z.length;Y++)Z[$++]=X&&X[Y]?X[Y].buffer:J}return Buffer.concat(Z)}});var nL=z((z11,sL)=>{var g6=function(Z){if(!(this instanceof g6))return new g6(Z);if(!Z)Z={};if(Buffer.isBuffer(Z))Z={buffer:Z};if(this.pageOffset=Z.pageOffset||0,this.pageSize=Z.pageSize||1024,this.pages=Z.pages||rg(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!eg(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!Z.trackUpdates,this._pageMask=this.pageSize-1,Z.buffer){for(var J=0;J<Z.buffer.length;J+=this.pageSize)this.pages.set(J/this.pageSize,Z.buffer.slice(J,J+this.pageSize));this.byteLength=Z.buffer.length,this.length=8*this.byteLength}},og=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},eg=function(Z){return!(Z&Z-1)},rg=iL();sL.exports=g6;g6.prototype.get=function(Z){var J=Z&7,$=(Z-J)/8;return!!(this.getByte($)&128>>J)};g6.prototype.getByte=function(Z){var J=Z&this._pageMask,$=(Z-J)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[J+this.pageOffset]:0};g6.prototype.set=function(Z,J){var $=Z&7,X=(Z-$)/8,Y=this.getByte(X);return this.setByte(X,J?Y|128>>$:Y&(255^128>>$))};g6.prototype.toBuffer=function(){var Z=og(this.pages.length*this.pageSize);for(var J=0;J<this.pages.length;J++){var $=this.pages.get(J,!0),X=J*this.pageSize;if($)$.buffer.copy(Z,X,this.pageOffset,this.pageOffset+this.pageSize)}return Z};g6.prototype.setByte=function(Z,J){var $=Z&this._pageMask,X=(Z-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===J)return!1;if(Y.buffer[$]=J,Z>=this.byteLength)this.byteLength=Z+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var rL=z((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});var Zb=import.meta.require("zlib");tL.default=Zb.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"))});var Zw=z((Q0)=>{var U7=function(){const Z=oL.default.readUInt32BE(d5);d5+=4;const J=oL.default.slice(d5,d5+Z);return d5+=Z,$b.default({buffer:J})},eL=Q0&&Q0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.bidirectional_l=Q0.bidirectional_r_al=Q0.prohibited_characters=Q0.non_ASCII_space_characters=Q0.commonly_mapped_to_nothing=Q0.unassigned_code_points=void 0;var $b=eL(nL()),oL=eL(rL()),d5=0;Q0.unassigned_code_points=U7();Q0.commonly_mapped_to_nothing=U7();Q0.non_ASCII_space_characters=U7();Q0.prohibited_characters=U7();Q0.bidirectional_r_al=U7();Q0.bidirectional_l=U7()});var Yw=z((M11,Xw)=>{var $w=function(Z){const J=[],$=Z.length;for(let X=0;X<$;X+=1){const Y=Z.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=Z.charCodeAt(X+1);if(Q>=56320&&Q<=57343){J.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}J.push(Y)}return J},p5=function(Z,J={}){if(typeof Z!=="string")throw new TypeError("Expected string.");if(Z.length===0)return"";const $=$w(Z).map((W)=>Xb.get(W)?32:W).filter((W)=>!Yb.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=$w(X);if(Y.some((W)=>b6.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(J.allowUnassigned!==!0){if(Y.some((H)=>b6.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((W)=>b6.bidirectional_r_al.get(W)),G=Y.some((W)=>b6.bidirectional_l.get(W));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const q=b6.bidirectional_r_al.get(Jw(Qb(X))),F=b6.bidirectional_r_al.get(Jw(Kb(X)));if(K&&!(q&&F))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 X},b6=Zw(),Xb=b6.non_ASCII_space_characters,Yb=b6.commonly_mapped_to_nothing,Jw=(Z)=>Z.codePointAt(0),Qb=(Z)=>Z[0],Kb=(Z)=>Z[Z.length-1];p5.saslprep=p5;p5.default=p5;Xw.exports=p5});var j7=z((Qw)=>{var c5=function(Z){return new Proxy(Z?{kModuleError:Z}:{},{get:($,X)=>{if(X==="kModuleError")return Z;throw Z},set:()=>{throw Z}})},Gb=function(){try{return Qw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Qw.Kerberos}catch{return Qw.Kerberos}},qb=function(){try{return Qw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Qw.ZStandard}catch{return Qw.ZStandard}},Fb=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return c5(new M7.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Wb=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(Z){return{kModuleError:new M7.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:Z})}}};Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AutoEncryptionLoggerLevel=Qw.aws4=Qw.saslprep=Qw.getSnappy=Qw.getAwsCredentialProvider=Qw.getZstdLibrary=Qw.ZStandard=Qw.getKerberos=Qw.Kerberos=void 0;var M7=h();Qw.Kerberos=c5(new M7.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Qw.getKerberos=Gb;Qw.ZStandard=c5(new M7.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Qw.getZstdLibrary=qb;Qw.getAwsCredentialProvider=Fb;Qw.getSnappy=Wb;Qw.saslprep=c5(new M7.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{Qw.saslprep=Yw()}catch{}Qw.aws4=c5(new M7.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Qw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Qw.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})});var G6=z((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.AuthProvider=Hw.AuthContext=void 0;var Mb=h();class Fw{constructor(Z,J,$){this.reauthenticating=!1,this.connection=Z,this.credentials=J,this.options=$}}Hw.AuthContext=Fw;class Ww{async prepare(Z,J){return Z}async reauth(Z){if(Z.reauthenticating)throw new Mb.MongoRuntimeError("Reauthentication already in progress.");try{Z.reauthenticating=!0,await this.auth(Z)}finally{Z.reauthenticating=!1}}}Hw.AuthProvider=Ww});var eZ=z((Aw)=>{async function I3(Z,J){return Z.commandAsync(Lb.ns("$external.$cmd"),J,void 0)}async function Rb(Z){const{hostAddress:J}=Z.options,{credentials:$}=Z;if(!J||typeof J.host!=="string"||!$)throw new Vw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(Ib(),"kModuleError"in l5)throw l5.kModuleError;const{initializeClient:X}=l5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",q=await jw(J.host,K),F={};if(Q!=null)Object.assign(F,{user:Y,password:Q});const W=K.SERVICE_HOST??q;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,F)}var Pb=function(Z){return{saslStart:1,mechanism:"GSSAPI",payload:Z,autoAuthorize:1}},Db=function(Z,J){return{saslContinue:1,conversationId:J,payload:Z}};async function Mw(Z,J,$){try{return await Z.step($)||""}catch(X){if(J===0)throw X;return Mw(Z,J-1,$)}}async function Tb(Z,J,$){const X=await Z.unwrap($);return Z.wrap(X||"",{user:J})}async function jw(Z,J){const $=J.CANONICALIZE_HOST_NAME;if(!$||$===Aw.GSSAPICanonicalizationValue.none)return Z;if($===Aw.GSSAPICanonicalizationValue.on||$===Aw.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await E3.promises.lookup(Z);try{const Y=await E3.promises.resolvePtr(X);return Y.length>0?Y[0]:Z}catch(Y){return N3(Z)}}else return N3(Z)}async function N3(Z){try{const J=await E3.promises.resolveCname(Z);return J.length>0?J[0]:Z}catch{return Z}}var Ib=function(){if(!l5)l5=Ab.getKerberos()};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.resolveCname=Aw.performGSSAPICanonicalizeHostName=Aw.GSSAPI=Aw.GSSAPICanonicalizationValue=void 0;var E3=import.meta.require("dns"),Ab=j7(),Vw=h(),Lb=_(),wb=G6();Aw.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var l5;class Uw extends wb.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if($==null)throw new Vw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await Rb(Z),Q=await Y.step(""),K=await I3(J,Pb(Q)),G=await Mw(Y,10,K.payload),q=await I3(J,Db(G,K.conversationId)),F=await Tb(Y,X,q.payload);await I3(J,{saslContinue:1,conversationId:q.conversationId,payload:F})}}Aw.GSSAPI=Uw;Aw.performGSSAPICanonicalizeHostName=jw;Aw.resolveCname=N3});var k8=z((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=ww.AuthMechanism=void 0;ww.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",MONGODB_OIDC:"MONGODB-OIDC"});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([ww.AuthMechanism.MONGODB_GSSAPI,ww.AuthMechanism.MONGODB_AWS,ww.AuthMechanism.MONGODB_OIDC,ww.AuthMechanism.MONGODB_X509])});var JJ=z((Tw)=>{var Cb=function(Z){if(Z){if(Array.isArray(Z.saslSupportedMechs))return Z.saslSupportedMechs.includes(l1.AuthMechanism.MONGODB_SCRAM_SHA256)?l1.AuthMechanism.MONGODB_SCRAM_SHA256:l1.AuthMechanism.MONGODB_SCRAM_SHA1;if(Z.maxWireVersion>=3)return l1.AuthMechanism.MONGODB_SCRAM_SHA1}return l1.AuthMechanism.MONGODB_CR};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.MongoCredentials=Tw.DEFAULT_ALLOWED_HOSTS=void 0;var i0=h(),Bb=eZ(),l1=k8(),Pw=["aws","azure"],Dw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Tw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var hb="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class ZJ{constructor(Z){if(this.username=Z.username??"",this.password=Z.password,this.source=Z.source,!this.source&&Z.db)this.source=Z.db;if(this.mechanism=Z.mechanism||l1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=Z.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Tw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(Z){return this.mechanism===Z.mechanism&&this.username===Z.username&&this.password===Z.password&&this.source===Z.source}resolveAuthMechanism(Z){if(this.mechanism.match(/DEFAULT/i))return new ZJ({username:this.username,password:this.password,source:this.source,mechanism:Cb(Z),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===l1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===l1.AuthMechanism.MONGODB_CR||this.mechanism===l1.AuthMechanism.MONGODB_PLAIN||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new i0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new i0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new i0.MongoAzureError(hb);if(this.mechanismProperties.PROVIDER_NAME&&!Pw.includes(this.mechanismProperties.PROVIDER_NAME))throw new i0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${Pw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const J=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(J))throw new i0.MongoInvalidArgumentError(Dw);for(let $ of J)if(typeof $!=="string")throw new i0.MongoInvalidArgumentError(Dw)}}if(l1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new i0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===l1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new i0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===l1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new i0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const Z=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(Bb.GSSAPICanonicalizationValue).includes(Z))throw new i0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${Z}`)}static merge(Z,J){return new ZJ({username:J.username??Z?.username??"",password:J.password??Z?.password??"",mechanism:J.mechanism??Z?.mechanism??l1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:J.mechanismProperties??Z?.mechanismProperties??{},source:J.source??J.db??Z?.source??"admin"})}}Tw.MongoCredentials=ZJ});var XJ=z((hw)=>{var q1=function(Z,J,$){if($.globals)Z=$.globals[Z.name];return new Z(`${$.context?$.context:"Value"} ${J}.`)},w7=function(Z,J){if(typeof Z==="bigint")throw q1(TypeError,"is a BigInt which cannot be converted to a number",J);if(!J.globals)return Number(Z);return J.globals.Number(Z)},Bw=function(Z){if(Z>0&&Z%1===0.5&&(Z&1)===0||Z<0&&Z%1===-0.5&&(Z&1)===1)return i5(Math.floor(Z));return i5(Math.round(Z))},$J=function(Z){return i5(Math.trunc(Z))},Nw=function(Z){return Z<0?-1:1},Ob=function(Z,J){const $=Z%J;if(Nw(J)!==Nw($))return $+J;return $},i5=function(Z){return Z===0?0:Z},R7=function(Z,{unsigned:J}){let $,X;if(J)$=0,X=2**Z-1;else $=-(2**(Z-1)),X=2**(Z-1)-1;const Y=2**Z,Q=2**(Z-1);return(K,G={})=>{let q=w7(K,G);if(q=i5(q),G.enforceRange){if(!Number.isFinite(q))throw q1(TypeError,"is not a finite number",G);if(q=$J(q),q<$||q>X)throw q1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return q}if(!Number.isNaN(q)&&G.clamp)return q=Math.min(Math.max(q,$),X),q=Bw(q),q;if(!Number.isFinite(q)||q===0)return 0;if(q=$J(q),q>=$&&q<=X)return q;if(q=Ob(q,Y),!J&&q>=Q)return q-Y;return q}},Cw=function(Z,{unsigned:J}){const $=Number.MAX_SAFE_INTEGER,X=J?0:Number.MIN_SAFE_INTEGER,Y=J?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=i5(G),K.enforceRange){if(!Number.isFinite(G))throw q1(TypeError,"is not a finite number",K);if(G=$J(G),G<X||G>$)throw q1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=Bw(G),G;if(!Number.isFinite(G)||G===0)return 0;let q=BigInt($J(G));return q=Y(Z,q),Number(q)}},B3=function(Z){try{return Sb.call(Z),!0}catch{return!1}},A7=function(Z){try{return yb.call(Z),!0}catch{return!1}},L7=function(Z){try{return new Uint8Array(Z),!1}catch{return!0}};hw.any=(Z)=>{return Z};hw.undefined=()=>{return};hw.boolean=(Z)=>{return Boolean(Z)};hw.byte=R7(8,{unsigned:!1});hw.octet=R7(8,{unsigned:!0});hw.short=R7(16,{unsigned:!1});hw["unsigned short"]=R7(16,{unsigned:!0});hw.long=R7(32,{unsigned:!1});hw["unsigned long"]=R7(32,{unsigned:!0});hw["long long"]=Cw(64,{unsigned:!1});hw["unsigned long long"]=Cw(64,{unsigned:!0});hw.double=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);return $};hw["unrestricted double"]=(Z,J={})=>{return w7(Z,J)};hw.float=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw q1(TypeError,"is outside the range of a single-precision floating-point value",J);return X};hw["unrestricted float"]=(Z,J={})=>{const $=w7(Z,J);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};hw.DOMString=(Z,J={})=>{if(J.treatNullAsEmptyString&&Z===null)return"";if(typeof Z==="symbol")throw q1(TypeError,"is a symbol, which cannot be converted to a string",J);return(J.globals?J.globals.String:String)(Z)};hw.ByteString=(Z,J={})=>{const $=hw.DOMString(Z,J);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw q1(TypeError,"is not a valid ByteString",J);return $};hw.USVString=(Z,J={})=>{const $=hw.DOMString(Z,J),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const q=K&1023,F=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*q+F)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};hw.object=(Z,J={})=>{if(Z===null||typeof Z!=="object"&&typeof Z!=="function")throw q1(TypeError,"is not an object",J);return Z};var Sb=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,yb=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;hw.ArrayBuffer=(Z,J={})=>{if(!B3(Z)){if(J.allowShared&&!A7(Z))throw q1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",J);throw q1(TypeError,"is not an ArrayBuffer",J)}if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};var kb=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;hw.DataView=(Z,J={})=>{try{kb.call(Z)}catch($){throw q1(TypeError,"is not a DataView",J)}if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is backed by a detached ArrayBuffer",J);return Z};var _b=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((Z)=>{const{name:J}=Z,$=/^[AEIOU]/u.test(J)?"an":"a";hw[J]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||_b.call(X)!==J)throw q1(TypeError,`is not ${$} ${J} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});hw.ArrayBufferView=(Z,J={})=>{if(!ArrayBuffer.isView(Z))throw q1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",J);if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z};hw.BufferSource=(Z,J={})=>{if(ArrayBuffer.isView(Z)){if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z}if(!J.allowShared&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer or a view on one",J);if(J.allowShared&&!A7(Z)&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",J);if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};hw.DOMTimeStamp=hw["unsigned long long"]});var QJ=z((fw,gw)=>{var Xm=function(Z){return typeof Z==="object"&&Z!==null||typeof Z==="function"},Ym=function(Z,J){for(let $ of Reflect.ownKeys(J)){const X=Reflect.getOwnPropertyDescriptor(J,$);if(X&&!Reflect.defineProperty(Z,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Qm=function(Z,J){const $=_w(Z);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(J))},_w=function(Z){if(Sw(Z,YJ))return Z[YJ];const J=Object.create(null);J["%Object.prototype%"]=Z.Object.prototype,J["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new Z.Array()[Symbol.iterator]()));try{J["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(Z.eval("(async function* () {})").prototype))}catch{J["%AsyncIteratorPrototype%"]=Km}return Z[YJ]=J,J},Gm=function(Z,J,$){if(!Z[P7])Z[P7]=Object.create(null);if(J in Z[P7])return Z[P7][J];return Z[P7][J]=$(),Z[P7][J]},xw=function(Z){return Z?Z[yw]:null},vw=function(Z){return Z?Z[kw]:null},qm=function(Z){const J=xw(Z);return J?J:Z},Fm=function(Z){const J=vw(Z);return J?J:Z},Hm=function(Z){if(typeof Z!=="string")return!1;const J=Z>>>0;if(J===4294967295)return!1;const $=`${J}`;if(Z!==$)return!1;return!0},Vm=function(Z){try{return zm.call(Z),!0}catch(J){return!1}},Um=function([Z,J],$){let X;switch($){case"key":X=Z;break;case"value":X=J;break;case"key+value":X=[Z,J];break}return{value:X,done:!1}},Sw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),yw=Symbol("wrapper"),kw=Symbol("impl"),P7=Symbol("SameObject caches"),YJ=Symbol.for("[webidl2js] constructor registry"),Km=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Wm=Symbol("internal"),zm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,Mm=Symbol("supports property index"),jm=Symbol("supported property indices"),Am=Symbol("supports property name"),Lm=Symbol("supported property names"),wm=Symbol("indexed property get"),Rm=Symbol("indexed property set new"),Pm=Symbol("indexed property set existing"),Dm=Symbol("named property get"),Tm=Symbol("named property set new"),Im=Symbol("named property set existing"),Em=Symbol("named property delete"),Nm=Symbol("async iterator get the next iteration result"),Bm=Symbol("async iterator return steps"),Cm=Symbol("async iterator initialization steps"),hm=Symbol("async iterator end of iteration");gw.exports=fw={isObject:Xm,hasOwn:Sw,define:Ym,newObjectInRealm:Qm,wrapperSymbol:yw,implSymbol:kw,getSameObject:Gm,ctorRegistrySymbol:YJ,initCtorRegistry:_w,wrapperForImpl:xw,implForWrapper:vw,tryWrapperForImpl:qm,tryImplForWrapper:Fm,iterInternalSymbol:Wm,isArrayBuffer:Vm,isArrayIndexPropName:Hm,supportsPropertyIndex:Mm,supportedPropertyIndices:jm,supportsPropertyName:Am,supportedPropertyNames:Lm,indexedGet:wm,indexedSetNew:Rm,indexedSetExisting:Pm,namedGet:Dm,namedSetNew:Tm,namedSetExisting:Im,namedDelete:Em,asyncIteratorNext:Nm,asyncIteratorReturn:Bm,asyncIteratorInit:Cm,asyncIteratorEOI:hm,iteratorResult:Um}});var mw=z((D11,bw)=>{var Om=/[\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,Sm=/[\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,ym=/[\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,km=/[\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,_m=/[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,xm=/[\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,vm=/^[\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,fm=/[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,gm=/[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,bm=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,mm=/^[\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,um=/[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;bw.exports={combiningMarks:Om,combiningClassVirama:Sm,validZWNJ:ym,bidiDomain:km,bidiS1LTR:_m,bidiS1RTL:xm,bidiS2:vm,bidiS3:fm,bidiS4EN:gm,bidiS4AN:bm,bidiS5:mm,bidiS6:um}});var uw=z((T11,dm)=>{dm.exports=[[[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," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[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,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[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,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[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,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[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,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[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,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[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,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[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,"\u0E4D\u0E32"],[[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,"\u0ECD\u0EB2"],[[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,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[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,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[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,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[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,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[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,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[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,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[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,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[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,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[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,"\u2212"],[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,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[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,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[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,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[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,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[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\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[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\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[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,"\u3008"],[9002,1,"\u3009"],[[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,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[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,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[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,"\u2D61"],[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,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[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,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[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," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[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,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[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\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[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,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[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,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[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\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[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\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[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,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[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,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[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,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[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,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[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,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[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," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[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,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[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,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[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,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[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,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[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,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[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,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[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,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[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,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[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,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[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,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[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,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[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,"\u3014s\u3015"],[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,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[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,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[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]]});var pw=z((pm,dw)=>{pm.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var sw=z((I11,iw)=>{var lm=function(Z){return/[^\x00-\x7F]/u.test(Z)},lw=function(Z,{useSTD3ASCIIRules:J}){let $=0,X=cw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=cw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=Z&&G>=Z){if(J&&(Q[1]===W0.disallowed_STD3_valid||Q[1]===W0.disallowed_STD3_mapped))return[W0.disallowed,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_valid)return[W0.valid,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_mapped)return[W0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>Z)X=Y-1;else $=Y+1}return null},am=function(Z,{useSTD3ASCIIRules:J,processingOption:$}){let X=!1,Y="";for(let Q of Z){const[K,G]=lw(Q.codePointAt(0),{useSTD3ASCIIRules:J});switch(K){case W0.disallowed:X=!0,Y+=Q;break;case W0.ignored:break;case W0.mapped:Y+=G;break;case W0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case W0.valid:Y+=Q;break}}return{string:Y,error:X}},im=function(Z,{checkHyphens:J,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(Z.normalize("NFC")!==Z)return!1;const K=Array.from(Z);if(J){if(K[2]==="-"&&K[3]==="-"||(Z.startsWith("-")||Z.endsWith("-")))return!1}if(Z.includes(".")||K.length>0&&s0.combiningMarks.test(K[0]))return!1;for(let G of K){const[q]=lw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&q!==W0.valid||Y==="nontransitional"&&q!==W0.valid&&q!==W0.deviation)return!1}if(X){let G=0;for(let[q,F]of K.entries())if(F==="\u200C"||F==="\u200D"){if(q>0){if(s0.combiningClassVirama.test(K[q-1]))continue;if(F==="\u200C"){const W=K.indexOf("\u200C",q+1),H=W<0?K.slice(G):K.slice(G,W);if(s0.validZWNJ.test(H.join(""))){G=q+1;continue}}}return!1}}if($){let G;if(s0.bidiS1LTR.test(K[0]))G=!1;else if(s0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!s0.bidiS2.test(Z)||!s0.bidiS3.test(Z)||s0.bidiS4EN.test(Z)&&s0.bidiS4AN.test(Z))return!1}else if(!s0.bidiS5.test(Z)||!s0.bidiS6.test(Z))return!1}return!0},sm=function(Z){const J=Z.map(($)=>{if($.startsWith("xn--"))try{return h3.decode($.substring(4))}catch(X){return""}return $}).join(".");return s0.bidiDomain.test(J)},aw=function(Z,J){const{processingOption:$}=J;let{string:X,error:Y}=am(Z,J);X=X.normalize("NFC");const Q=X.split("."),K=sm(Q);for(let[G,q]of Q.entries()){let F=q,W=$;if(F.startsWith("xn--")){try{F=h3.decode(F.substring(4)),Q[G]=F}catch(V){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!im(F,{...J,processingOption:W,checkBidi:J.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},nm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let q=G.string.split(".");if(q=q.map((F)=>{if(lm(F))try{return`xn--${h3.encode(F)}`}catch(W){G.error=!0}return F}),K){const F=q.join(".").length;if(F>253||F===0)G.error=!0;for(let W=0;W<q.length;++W)if(q[W].length>63||q[W].length===0){G.error=!0;break}}if(G.error)return null;return q.join(".")},tm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},h3=import.meta.require("punycode"),s0=mw(),cw=uw(),{STATUS_MAPPING:W0}=pw();iw.exports={toASCII:nm,toUnicode:tm}});var S3=z((E11,tw)=>{var O3=function(Z){return Z>=48&&Z<=57},nw=function(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122},rm=function(Z){return nw(Z)||O3(Z)},om=function(Z){return O3(Z)||Z>=65&&Z<=70||Z>=97&&Z<=102};tw.exports={isASCIIDigit:O3,isASCIIAlpha:nw,isASCIIAlphanumeric:rm,isASCIIHex:om}});var KJ=z((N11,rw)=>{var Ju=function(Z){return em.encode(Z)},$u=function(Z){return Zu.decode(Z)},em=new TextEncoder,Zu=new TextDecoder("utf-8",{ignoreBOM:!0});rw.exports={utf8Encode:Ju,utf8DecodeWithoutBOM:$u}});var GJ=z((B11,YR)=>{var t=function(Z){return Z.codePointAt(0)},Xu=function(Z){let J=Z.toString(16).toUpperCase();if(J.length===1)J=`0${J}`;return`%${J}`},ZR=function(Z){const J=new Uint8Array(Z.byteLength);let $=0;for(let X=0;X<Z.byteLength;++X){const Y=Z[X];if(Y!==37)J[$++]=Y;else if(Y===37&&(!ow(Z[X+1])||!ow(Z[X+2])))J[$++]=Y;else{const Q=parseInt(String.fromCodePoint(Z[X+1],Z[X+2]),16);J[$++]=Q,X+=2}}return J.slice(0,$)},Yu=function(Z){const J=ew(Z);return ZR(J)},y3=function(Z){return Z<=31||Z>126},Ku=function(Z){return y3(Z)||Qu.has(Z)},k3=function(Z){return y3(Z)||Gu.has(Z)},qu=function(Z){return k3(Z)||Z===t("'")},JR=function(Z){return k3(Z)||Fu.has(Z)},$R=function(Z){return JR(Z)||Wu.has(Z)},zu=function(Z){return $R(Z)||Hu.has(Z)},Uu=function(Z){return zu(Z)||Vu.has(Z)},XR=function(Z,J){const $=ew(Z);let X="";for(let Y of $)if(!J(Y))X+=String.fromCharCode(Y);else X+=Xu(Y);return X},Mu=function(Z,J){return XR(String.fromCodePoint(Z),J)},ju=function(Z,J,$=!1){let X="";for(let Y of Z)if($&&Y===" ")X+="+";else X+=XR(Y,J);return X},{isASCIIHex:ow}=S3(),{utf8Encode:ew}=KJ(),Qu=new Set([t(" "),t("\""),t("<"),t(">"),t("`")]),Gu=new Set([t(" "),t("\""),t("#"),t("<"),t(">")]),Fu=new Set([t("?"),t("`"),t("{"),t("}")]),Wu=new Set([t("/"),t(":"),t(";"),t("="),t("@"),t("["),t("\\"),t("]"),t("^"),t("|")]),Hu=new Set([t("$"),t("%"),t("&"),t("+"),t(",")]),Vu=new Set([t("!"),t("'"),t("("),t(")"),t("~")]);YR.exports={isC0ControlPercentEncode:y3,isFragmentPercentEncode:Ku,isQueryPercentEncode:k3,isSpecialQueryPercentEncode:qu,isPathPercentEncode:JR,isUserinfoPercentEncode:$R,isURLEncodedPercentEncode:Uu,percentDecodeString:Yu,percentDecodeBytes:ZR,utf8PercentEncodeString:ju,utf8PercentEncodeCodePoint:Mu}});var b3=z((cu,H0)=>{var E=function(Z){return Z.codePointAt(0)},QR=function(Z){return[...Z].length},KR=function(Z,J){const $=Z[J];return isNaN($)?void 0:String.fromCodePoint($)},GR=function(Z){return Z==="."||Z.toLowerCase()==="%2e"},Iu=function(Z){return Z=Z.toLowerCase(),Z===".."||Z==="%2e."||Z===".%2e"||Z==="%2e%2e"},Eu=function(Z,J){return i1.isASCIIAlpha(Z)&&(J===E(":")||J===E("|"))},HR=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&(Z[1]===":"||Z[1]==="|")},Nu=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&Z[1]===":"},Bu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Cu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},qJ=function(Z){return WR[Z]!==void 0},a1=function(Z){return qJ(Z.scheme)},_3=function(Z){return!qJ(Z.scheme)},zR=function(Z){return WR[Z]},VR=function(Z){if(Z==="")return m;let J=10;if(Z.length>=2&&Z.charAt(0)==="0"&&Z.charAt(1).toLowerCase()==="x")Z=Z.substring(2),J=16;else if(Z.length>=2&&Z.charAt(0)==="0")Z=Z.substring(1),J=8;if(Z==="")return 0;let $=/[^0-7]/u;if(J===10)$=/[^0-9]/u;if(J===16)$=/[^0-9A-Fa-f]/u;if($.test(Z))return m;return parseInt(Z,J)},hu=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length>1)J.pop()}if(J.length>4)return m;const $=[];for(let Q of J){const K=VR(Q);if(K===m)return m;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return m;if($[$.length-1]>=256**(5-$.length))return m;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Ou=function(Z){let J="",$=Z;for(let X=1;X<=4;++X){if(J=String($%256)+J,X!==4)J=`.${J}`;$=Math.floor($/256)}return J},Su=function(Z){const J=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(Z=Array.from(Z,(Q)=>Q.codePointAt(0)),Z[Y]===E(":")){if(Z[Y+1]!==E(":"))return m;Y+=2,++$,X=$}while(Y<Z.length){if($===8)return m;if(Z[Y]===E(":")){if(X!==null)return m;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&i1.isASCIIHex(Z[Y]))Q=Q*16+parseInt(KR(Z,Y),16),++Y,++K;if(Z[Y]===E(".")){if(K===0)return m;if(Y-=K,$>6)return m;let G=0;while(Z[Y]!==void 0){let q=null;if(G>0)if(Z[Y]===E(".")&&G<4)++Y;else return m;if(!i1.isASCIIDigit(Z[Y]))return m;while(i1.isASCIIDigit(Z[Y])){const F=parseInt(KR(Z,Y));if(q===null)q=F;else if(q===0)return m;else q=q*10+F;if(q>255)return m;++Y}if(J[$]=J[$]*256+q,++G,G===2||G===4)++$}if(G!==4)return m;break}else if(Z[Y]===E(":")){if(++Y,Z[Y]===void 0)return m}else if(Z[Y]!==void 0)return m;J[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=J[X+Q-1];J[X+Q-1]=J[$],J[$]=K,--$,--Q}}else if(X===null&&$!==8)return m;return J},yu=function(Z){let J="";const $=xu(Z);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&Z[Y]===0)continue;else if(X)X=!1;if($===Y){J+=Y===0?"::":":",X=!0;continue}if(J+=Z[Y].toString(16),Y!==7)J+=":"}return J},x3=function(Z,J=!1){if(Z[0]==="["){if(Z[Z.length-1]!=="]")return m;return Su(Z.substring(1,Z.length-1))}if(J)return _u(Z);const $=Lu(wu(Z)),X=vu($);if(X===m)return m;if(Bu(X))return m;if(ku(X))return hu(X);return X},ku=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length===1)return!1;J.pop()}const $=J[J.length-1];if(VR($)!==m)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},_u=function(Z){if(Cu(Z))return m;return WJ(Z,FR)},xu=function(Z){let J=null,$=1,X=null,Y=0;for(let Q=0;Q<Z.length;++Q)if(Z[Q]!==0){if(Y>$)J=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return J},f3=function(Z){if(typeof Z==="number")return Ou(Z);if(Z instanceof Array)return`[${yu(Z)}]`;return Z},vu=function(Z,J=!1){const $=Au.toASCII(Z,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:J,verifyDNSLength:J});if($===null||$==="")return m;return $},fu=function(Z){return Z.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},gu=function(Z){return Z.replace(/\u0009|\u000A|\u000D/ug,"")},UR=function(Z){const{path:J}=Z;if(J.length===0)return;if(Z.scheme==="file"&&J.length===1&&mu(J[0]))return;J.pop()},MR=function(Z){return Z.username!==""||Z.password!==""},bu=function(Z){return Z.host===null||Z.host===""||D7(Z)||Z.scheme==="file"},D7=function(Z){return typeof Z.path==="string"},mu=function(Z){return/^[A-Za-z]:$/u.test(Z)},I1=function(Z,J,$,X,Y){if(this.pointer=0,this.input=Z,this.base=J||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=fu(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=gu(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),q=this[`parse ${this.state}`](K,G);if(!q)break;else if(q===m){this.failure=!0;break}}},jR=function(Z,J){const $=Z.length-J;return $>=2&&Eu(Z[J],Z[J+1])&&($===2||uu.has(Z[J+2]))},du=function(Z,J){let $=`${Z.scheme}:`;if(Z.host!==null){if($+="//",Z.username!==""||Z.password!==""){if($+=Z.username,Z.password!=="")$+=`:${Z.password}`;$+="@"}if($+=f3(Z.host),Z.port!==null)$+=`:${Z.port}`}if(Z.host===null&&!D7(Z)&&Z.path.length>1&&Z.path[0]==="")$+="/.";if($+=g3(Z),Z.query!==null)$+=`?${Z.query}`;if(!J&&Z.fragment!==null)$+=`#${Z.fragment}`;return $},pu=function(Z){let J=`${Z.scheme}://`;if(J+=f3(Z.host),Z.port!==null)J+=`:${Z.port}`;return J},g3=function(Z){if(D7(Z))return Z.path;let J="";for(let $ of Z.path)J+=`/${$}`;return J},Au=sw(),i1=S3(),{utf8DecodeWithoutBOM:Lu}=KJ(),{percentDecodeString:wu,utf8PercentEncodeCodePoint:FJ,utf8PercentEncodeString:WJ,isC0ControlPercentEncode:FR,isFragmentPercentEncode:Ru,isQueryPercentEncode:Pu,isSpecialQueryPercentEncode:Du,isPathPercentEncode:Tu,isUserinfoPercentEncode:v3}=GJ(),WR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},m=Symbol("failure");I1.prototype["parse scheme start"]=function Z(J,$){if(i1.isASCIIAlpha(J))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,m;return!0};I1.prototype["parse scheme"]=function Z(J,$){if(i1.isASCIIAlphanumeric(J)||J===E("+")||J===E("-")||J===E("."))this.buffer+=$.toLowerCase();else if(J===E(":")){if(this.stateOverride){if(a1(this.url)&&!qJ(this.buffer))return!1;if(!a1(this.url)&&qJ(this.buffer))return!1;if((MR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===zR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==E("/")||this.input[this.pointer+2]!==E("/"))this.parseError=!0;this.state="file"}else if(a1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(a1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===E("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,m;return!0};I1.prototype["parse no scheme"]=function Z(J){if(this.base===null||D7(this.base)&&J!==E("#"))return m;else if(D7(this.base)&&J===E("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};I1.prototype["parse special relative or authority"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};I1.prototype["parse path or authority"]=function Z(J){if(J===E("/"))this.state="authority";else this.state="path",--this.pointer;return!0};I1.prototype["parse relative"]=function Z(J){if(this.url.scheme=this.base.scheme,J===E("/"))this.state="relative slash";else if(a1(this.url)&&J===E("\\"))this.parseError=!0,this.state="relative slash";else if(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,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};I1.prototype["parse relative slash"]=function Z(J){if(a1(this.url)&&(J===E("/")||J===E("\\"))){if(J===E("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(J===E("/"))this.state="authority";else 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;return!0};I1.prototype["parse special authority slashes"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};I1.prototype["parse special authority ignore slashes"]=function Z(J){if(J!==E("/")&&J!==E("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};I1.prototype["parse authority"]=function Z(J,$){if(J===E("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=QR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===E(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=FJ(Q,v3);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,m;this.pointer-=QR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};I1.prototype["parse hostname"]=I1.prototype["parse host"]=function Z(J,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(J===E(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,m;if(this.stateOverride==="hostname")return!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(--this.pointer,a1(this.url)&&this.buffer==="")return this.parseError=!0,m;else if(this.stateOverride&&this.buffer===""&&(MR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(J===E("["))this.arrFlag=!0;else if(J===E("]"))this.arrFlag=!1;this.buffer+=$}return!0};I1.prototype["parse port"]=function Z(J,$){if(i1.isASCIIDigit(J))this.buffer+=$;else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,m;this.url.port=X===zR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,m;return!0};var uu=new Set([E("/"),E("\\"),E("?"),E("#")]);I1.prototype["parse file"]=function Z(J){if(this.url.scheme="file",this.url.host="",J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J)){if(this.url.query=null,!jR(this.input,this.pointer))UR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};I1.prototype["parse file slash"]=function Z(J){if(J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!jR(this.input,this.pointer)&&Nu(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};I1.prototype["parse file host"]=function Z(J,$){if(isNaN(J)||J===E("/")||J===E("\\")||J===E("?")||J===E("#"))if(--this.pointer,!this.stateOverride&&HR(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 X=x3(this.buffer,_3(this.url));if(X===m)return m;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};I1.prototype["parse path start"]=function Z(J){if(a1(this.url)){if(J===E("\\"))this.parseError=!0;if(this.state="path",J!==E("/")&&J!==E("\\"))--this.pointer}else if(!this.stateOverride&&J===E("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&J===E("#"))this.url.fragment="",this.state="fragment";else if(J!==void 0){if(this.state="path",J!==E("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};I1.prototype["parse path"]=function Z(J){if(isNaN(J)||J===E("/")||a1(this.url)&&J===E("\\")||!this.stateOverride&&(J===E("?")||J===E("#"))){if(a1(this.url)&&J===E("\\"))this.parseError=!0;if(Iu(this.buffer)){if(UR(this.url),J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("")}else if(GR(this.buffer)&&J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("");else if(!GR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&HR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",J===E("?"))this.url.query="",this.state="query";if(J===E("#"))this.url.fragment="",this.state="fragment"}else{if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=FJ(J,Tu)}return!0};I1.prototype["parse opaque path"]=function Z(J){if(J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(J)&&J!==E("%"))this.parseError=!0;if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(J))this.url.path+=FJ(J,FR)}return!0};I1.prototype["parse query"]=function Z(J,$){if(!a1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&J===E("#")||isNaN(J)){const X=a1(this.url)?Du:Pu;if(this.url.query+=WJ(this.buffer,X),this.buffer="",J===E("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};I1.prototype["parse fragment"]=function Z(J){if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=FJ(J,Ru)}return!0};cu.serializeURL=du;cu.serializePath=g3;cu.serializeURLOrigin=function(Z){switch(Z.scheme){case"blob":try{return cu.serializeURLOrigin(cu.parseURL(g3(Z)))}catch(J){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return pu({scheme:Z.scheme,host:Z.host,port:Z.port});case"file":return"null";default:return"null"}};cu.basicURLParse=function(Z,J){if(J===void 0)J={};const $=new I1(Z,J.baseURL,J.encodingOverride,J.url,J.stateOverride);if($.failure)return null;return $.url};cu.setTheUsername=function(Z,J){Z.username=WJ(J,v3)};cu.setThePassword=function(Z,J){Z.password=WJ(J,v3)};cu.serializeHost=f3;cu.cannotHaveAUsernamePasswordPort=bu;cu.hasAnOpaquePath=D7;cu.serializeInteger=function(Z){return String(Z)};cu.parseURL=function(Z,J){if(J===void 0)J={};return cu.basicURLParse(Z,{baseURL:J.baseURL,encodingOverride:J.encodingOverride})}});var m3=z((C11,IR)=>{var DR=function(Z){return Z.codePointAt(0)},Jd=function(Z){const J=Yd(Z,DR("&")),$=[];for(let X of J){if(X.length===0)continue;let Y,Q;const K=X.indexOf(DR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=TR(Y,43,32),Q=TR(Q,43,32);const G=LR(wR(Y)),q=LR(wR(Q));$.push([G,q])}return $},$d=function(Z){return Jd(Zd(Z))},Xd=function(Z,J=void 0){let $="utf-8";if(J!==void 0)$=J;let X="";for(let[Y,Q]of Z.entries()){const K=RR(Q[0],PR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=RR(G,PR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},Yd=function(Z,J){const $=[];let X=0,Y=Z.indexOf(J);while(Y>=0)$.push(Z.slice(X,Y)),X=Y+1,Y=Z.indexOf(J,X);if(X!==Z.length)$.push(Z.slice(X));return $},TR=function(Z,J,$){let X=Z.indexOf(J);while(X>=0)Z[X]=$,X=Z.indexOf(J,X+1);return Z},{utf8Encode:Zd,utf8DecodeWithoutBOM:LR}=KJ(),{percentDecodeBytes:wR,utf8PercentEncodeString:RR,isURLEncodedPercentEncode:PR}=GJ();IR.exports={parseUrlencodedString:$d,serializeUrlencoded:Xd}});var NR=z((Qd)=>{var ER=XJ(),HJ=QJ();Qd.convert=(Z,J,{context:$="The provided value"}={})=>{if(typeof J!=="function")throw new Z.TypeError($+" is not a function");function X(...Y){const Q=HJ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=HJ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(J,Q,Y),K=ER.any(K,{context:$,globals:Z}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=HJ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(J,Y);return Q=ER.any(Q,{context:$,globals:Z}),Q},X[HJ.wrapperSymbol]=J,X.objectReference=J,X}});var BR=z((Gd)=>{var u3=m3();Gd.implementation=class Z{constructor(J,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=u3.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let J=u3.serializeUrlencoded(this._list);if(J==="")J=null;this._url._url.query=J}}append(J,$){this._list.push([J,$]),this._updateSteps()}delete(J){let $=0;while($<this._list.length)if(this._list[$][0]===J)this._list.splice($,1);else $++;this._updateSteps()}get(J){for(let $ of this._list)if($[0]===J)return $[1];return null}getAll(J){const $=[];for(let X of this._list)if(X[0]===J)$.push(X[1]);return $}has(J){for(let $ of this._list)if($[0]===J)return!0;return!1}set(J,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===J)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([J,$]);this._updateSteps()}sort(){this._list.sort((J,$)=>{if(J[0]<$[0])return-1;if(J[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return u3.serializeUrlencoded(this._list)}}});var p3=z((Hd)=>{var OR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!F1.isObject($))$=Z[hR].URLSearchParams.prototype;return Object.create($)},n0=XJ(),F1=QJ(),Fd=NR(),CR=F1.newObjectInRealm,h1=F1.implSymbol,hR=F1.ctorRegistrySymbol;Hd.is=(Z)=>{return F1.isObject(Z)&&F1.hasOwn(Z,h1)&&Z[h1]instanceof m6.implementation};Hd.isImpl=(Z)=>{return F1.isObject(Z)&&Z instanceof m6.implementation};Hd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Hd.is(J))return F1.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URLSearchParams'.`)};Hd.createDefaultIterator=(Z,J,$)=>{const Y=Z[hR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,F1.iterInternalSymbol,{value:{target:J,kind:$,index:0},configurable:!0}),Q};Hd.create=(Z,J,$)=>{const X=OR(Z);return Hd.setup(X,Z,J,$)};Hd.createImpl=(Z,J,$)=>{const X=Hd.create(Z,J,$);return F1.implForWrapper(X)};Hd._internalSetup=(Z,J)=>{};Hd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Hd._internalSetup(Z,J),Object.defineProperty(Z,h1,{value:new m6.implementation(J,$,X),configurable:!0}),Z[h1][F1.wrapperSymbol]=Z,m6.init)m6.init(Z[h1]);return Z};Hd.new=(Z,J)=>{const $=OR(Z,J);if(Hd._internalSetup($,Z),Object.defineProperty($,h1,{value:Object.create(m6.implementation.prototype),configurable:!0}),$[h1][F1.wrapperSymbol]=$,m6.init)m6.init($[h1]);return $[h1]};var Wd=new Set(["Window","Worker"]);Hd.install=(Z,J)=>{if(!J.some((Y)=>Wd.has(Y)))return;const $=F1.initCtorRegistry(Z);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(F1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let q of G){if(!F1.isObject(q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const F=[],W=q;for(let H of W)H=n0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:Z}),F.push(H);q=F}K.push(q)}Q=K}else if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const q=Object.getOwnPropertyDescriptor(Q,G);if(q&&q.enumerable){let F=G;F=n0.USVString(F,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:Z});let W=Q[G];W=n0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:Z}),K[F]=W}}Q=K}else Q=n0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:Z});else Q="";Y.push(Q)}return Hd.setup(Object.create(new.target.prototype),Z,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return F1.tryWrapperForImpl(Y[h1].sort())}toString(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[h1].toString()}keys(){if(!Hd.is(this))throw new Z.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key")}values(){if(!Hd.is(this))throw new Z.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"value")}entries(){if(!Hd.is(this))throw new Z.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key+value")}forEach(Y){if(!Hd.is(this))throw new Z.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=Fd.convert(Z,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[h1]),G=0;while(G<K.length){const[q,F]=K[G].map(F1.tryWrapperForImpl);Y.call(Q,F,q,this),K=Array.from(this[h1]),G++}}}Object.defineProperties(X.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:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),F1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[F1.iterInternalSymbol];if(!Y)throw new Z.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,q=Array.from(Q[h1]),F=q.length;if(G>=F)return CR(Z,{value:void 0,done:!0});const W=q[G];return Y.index=G+1,CR(Z,F1.iteratorResult(W.map(F1.tryWrapperForImpl),K))}}),Object.defineProperty(Z,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var m6=BR()});var _R=z((Ld)=>{var U1=b3(),kR=m3(),Ad=p3();Ld.implementation=class Z{constructor(J,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=U1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=U1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=Ad.createImpl(J,[G],{doNotStripQMark:!0}),this._query._url=this}get href(){return U1.serializeURL(this._url)}set href(J){const $=U1.basicURLParse(J);if($===null)throw new TypeError(`Invalid URL: ${J}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=kR.parseUrlencodedString(X)}get origin(){return U1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(J){U1.basicURLParse(`${J}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setTheUsername(this._url,J)}get password(){return this._url.password}set password(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setThePassword(this._url,J)}get host(){const J=this._url;if(J.host===null)return"";if(J.port===null)return U1.serializeHost(J.host);return`${U1.serializeHost(J.host)}:${U1.serializeInteger(J.port)}`}set host(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return U1.serializeHost(this._url.host)}set hostname(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return U1.serializeInteger(this._url.port)}set port(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;if(J==="")this._url.port=null;else U1.basicURLParse(J,{url:this._url,stateOverride:"port"})}get pathname(){return U1.serializePath(this._url)}set pathname(J){if(U1.hasAnOpaquePath(this._url))return;this._url.path=[],U1.basicURLParse(J,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(J){const $=this._url;if(J===""){$.query=null,this._query._list=[];return}const X=J[0]==="?"?J.substring(1):J;$.query="",U1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=kR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(J){if(J===""){this._url.fragment=null;return}const $=J[0]==="#"?J.substring(1):J;this._url.fragment="",U1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var gR=z((Dd)=>{var xR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!S0.isObject($))$=Z[Rd].URL.prototype;return Object.create($)},t0=XJ(),S0=QJ(),e=S0.implSymbol,Rd=S0.ctorRegistrySymbol;Dd.is=(Z)=>{return S0.isObject(Z)&&S0.hasOwn(Z,e)&&Z[e]instanceof u6.implementation};Dd.isImpl=(Z)=>{return S0.isObject(Z)&&Z instanceof u6.implementation};Dd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Dd.is(J))return S0.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URL'.`)};Dd.create=(Z,J,$)=>{const X=xR(Z);return Dd.setup(X,Z,J,$)};Dd.createImpl=(Z,J,$)=>{const X=Dd.create(Z,J,$);return S0.implForWrapper(X)};Dd._internalSetup=(Z,J)=>{};Dd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Dd._internalSetup(Z,J),Object.defineProperty(Z,e,{value:new u6.implementation(J,$,X),configurable:!0}),Z[e][S0.wrapperSymbol]=Z,u6.init)u6.init(Z[e]);return Z};Dd.new=(Z,J)=>{const $=xR(Z,J);if(Dd._internalSetup($,Z),Object.defineProperty($,e,{value:Object.create(u6.implementation.prototype),configurable:!0}),$[e][S0.wrapperSymbol]=$,u6.init)u6.init($[e]);return $[e]};var Pd=new Set(["Window","Worker"]);Dd.install=(Z,J)=>{if(!J.some((Y)=>Pd.has(Y)))return;const $=S0.initCtorRegistry(Z);class X{constructor(Y){if(arguments.length<1)throw new Z.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:Z}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:Z});Q.push(K)}return Dd.setup(Object.create(new.target.prototype),Z,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[e].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[e].href}set href(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:Z}),Q[e].href=Y}toString(){const Y=this;if(!Dd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[e].href}get origin(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[e].origin}get protocol(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[e].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:Z}),Q[e].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[e].username}set username(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:Z}),Q[e].username=Y}get password(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[e].password}set password(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:Z}),Q[e].password=Y}get host(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[e].host}set host(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:Z}),Q[e].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[e].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:Z}),Q[e].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[e].port}set port(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:Z}),Q[e].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[e].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:Z}),Q[e].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[e].search}set search(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:Z}),Q[e].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[e].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[e].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:Z}),Q[e].hash=Y}}if(Object.defineProperties(X.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}}),$["URL"]=X,Object.defineProperty(Z,"URL",{configurable:!0,writable:!0,value:X}),J.includes("Window"))Object.defineProperty(Z,"webkitURL",{configurable:!0,writable:!0,value:X})};var u6=_R()});var bR=z((Od)=>{var Cd=gR(),hd=p3();Od.URL=Cd;Od.URLSearchParams=hd});var uR=z((xd)=>{var{URL:kd,URLSearchParams:_d}=bR(),z8=b3(),mR=GJ(),VJ={Array,Object,Promise,String,TypeError};kd.install(VJ,["Window"]);_d.install(VJ,["Window"]);xd.URL=VJ.URL;xd.URLSearchParams=VJ.URLSearchParams;xd.parseURL=z8.parseURL;xd.basicURLParse=z8.basicURLParse;xd.serializeURL=z8.serializeURL;xd.serializePath=z8.serializePath;xd.serializeHost=z8.serializeHost;xd.serializeInteger=z8.serializeInteger;xd.serializeURLOrigin=z8.serializeURLOrigin;xd.setTheUsername=z8.setTheUsername;xd.setThePassword=z8.setThePassword;xd.cannotHaveAUsernamePasswordPort=z8.cannotHaveAUsernamePasswordPort;xd.hasAnOpaquePath=z8.hasAnOpaquePath;xd.percentDecodeString=mR.percentDecodeString;xd.percentDecodeBytes=mR.percentDecodeBytes});var pR=z((r0)=>{var Zp=function(Z,J){var $,X;const Y=Z.clone(),Q=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new dR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Jp=function(Z,J){var $,X;const Y=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new dR.default(Z)}catch(F){}if(K)return J={...J,replacementString:"___credentials___"},K.redact(J).toString().replace(/___credentials___/g,Y);const G=Y,q=[(F)=>F.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(F)=>F.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(F)=>F.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(F)=>Q?F.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):F,(F)=>F.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let F of q)Z=F(Z);return Z},rd=r0&&r0.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),od=r0&&r0.__setModuleDefault||(Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J}),ed=r0&&r0.__importStar||function(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var $ in Z)if($!=="default"&&Object.prototype.hasOwnProperty.call(Z,$))rd(J,Z,$)}return od(J,Z),J};Object.defineProperty(r0,"__esModule",{value:!0});r0.redactConnectionString=r0.redactValidConnectionString=void 0;var dR=ed(l3());r0.redactValidConnectionString=Zp;r0.redactConnectionString=Jp});var l3=z((i3)=>{var Xp=function(Z){return Z.startsWith("mongodb://")||Z.startsWith("mongodb+srv://")},Qp=function(Z){return class J extends Z{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return a3.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(i3,"__esModule",{value:!0});i3.CommaAndColonSeparatedRecord=i3.ConnectionString=i3.redactConnectionString=void 0;var $p=uR(),cR=pR();Object.defineProperty(i3,"redactConnectionString",{enumerable:!0,get:function(){return cR.redactConnectionString}});var s5="__this_is_a_placeholder__",Yp=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a3 extends Map{delete(Z){return super.delete(this._normalizeKey(Z))}get(Z){return super.get(this._normalizeKey(Z))}has(Z){return super.has(this._normalizeKey(Z))}set(Z,J){return super.set(this._normalizeKey(Z),J)}_normalizeKey(Z){Z=`${Z}`;for(let J of this.keys())if(J.toLowerCase()===Z.toLowerCase()){Z=J;break}return Z}}class lR extends $p.URL{}class _8 extends Error{get name(){return"MongoParseError"}}class n5 extends lR{constructor(Z,J={}){var $;const{looseValidation:X}=J;if(!X&&!Xp(Z))throw new _8('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=Z.match(Yp);if(!Y)throw new _8(`Invalid connection string "${Z}"`);const{protocol:Q,username:K,password:G,hosts:q,rest:F}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!q)throw new _8(`Protocol and host list are required in "${Z}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(V){throw new _8(V.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new _8(`Username contains unescaped characters ${K}`);if(!K||!G){const V=Z.replace(`${Q}://`,"");if(V.startsWith("@")||V.startsWith(":"))throw new _8("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new _8("Password contains unescaped characters")}let W="";if(typeof K==="string")W+=K;if(typeof G==="string")W+=`:${G}`;if(W)W+="@";try{super(`${Q.toLowerCase()}://${W}${s5}${F}`)}catch(H){if(X)new n5(Z,{...J,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(s5,q);throw H}if(this._hosts=q.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new _8("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new _8("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,Qp(this.searchParams.constructor).prototype)}get host(){return s5}set host(Z){throw new Error("No single host for connection string")}get hostname(){return s5}set hostname(Z){throw new Error("No single host for connection string")}get port(){return""}set port(Z){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(Z){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(Z){this._hosts=Z}toString(){return super.toString().replace(s5,this.hosts.join(","))}clone(){return new n5(this.toString(),{looseValidation:!0})}redact(Z){return cR.redactValidConnectionString(this,Z)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}=this;return{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}}}i3.ConnectionString=n5;class aR extends a3{constructor(Z){super();for(let J of(Z!==null&&Z!==void 0?Z:"").split(",")){if(!J)continue;const $=J.indexOf(":");if($===-1)this.set(J,"");else this.set(J.slice(0,$),J.slice($+1))}}toString(){return[...this].map((Z)=>Z.join(":")).join(",")}}i3.CommaAndColonSeparatedRecord=aR;i3.default=n5});var sR=z((b11,qp)=>{qp.exports={name:"mongodb",version:"5.9.2",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{bson:"^5.5.0","mongodb-connection-string-url":"^2.6.0",socks:"^2.7.1"},optionalDependencies:{"@mongodb-js/saslprep":"^1.1.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.0.0",kerberos:"^1.0.0 || ^2.0.0","mongodb-client-encryption":">=2.3.0 <3",snappy:"^7.2.2"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.35.1","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.1.0","@types/semver":"^7.5.0","@types/sinon":"^10.0.14","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.40.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17",express:"^4.18.2","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-legacy":"^5.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.0",sinon:"^15.0.4","sinon-chai":"^3.7.0",snappy:"^7.2.2","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.2.0",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=14.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.spec.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.js","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var ZP=z((oR)=>{var Fp=function(Z){const J=new s3(512),{appName:$=""}=Z;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?Z.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");J.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=Z.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${tR}|${Y}`:tR};if(!J.ifItFitsItSits("driver",K))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=Wp();if(Q.length>0)G=`${G}|${Q}`;if(!J.ifItFitsItSits("platform",G))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const q=(new Map()).set("name",UJ.platform).set("architecture",UJ.arch).set("version",t5.release()).set("type",t5.type());if(!J.ifItFitsItSits("os",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(J.ifItFitsItSits("os",q))break}const F=rR();if(F!=null){if(!J.ifItFitsItSits("env",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(J.ifItFitsItSits("env",F))break}}return J.toObject()},rR=function(){const{AWS_EXECUTION_ENV:Z="",AWS_LAMBDA_RUNTIME_API:J="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:q="",FUNCTION_REGION:F="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=UJ.env,V=Z.startsWith("AWS_Lambda_")||J.length>0,j=$.length>0,U=X.length>0||Y.length>0,L=Q.length>0,D=new Map;if(L&&!(j||U)){if(H.length>0)D.set("region",H);return D.set("name","vercel"),D}if(V&&!(j||U||L)){if(G.length>0)D.set("region",G);if(K.length>0&&Number.isInteger(+K))D.set("memory_mb",new T7.Int32(K));return D.set("name","aws.lambda"),D}if(j&&!(U||V||L))return D.set("name","azure.func"),D;if(U&&!(j||V||L)){if(F.length>0)D.set("region",F);if(q.length>0&&Number.isInteger(+q))D.set("memory_mb",new T7.Int32(q));if(W.length>0&&Number.isInteger(+W))D.set("timeout_sec",new T7.Int32(W));return D.set("name","gcp.func"),D}return null},Wp=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${t5.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${t5.endianness()}`;return`Node.js ${UJ.version}, ${t5.endianness()}`};Object.defineProperty(oR,"__esModule",{value:!0});oR.getFAASEnv=oR.makeClientMetadata=oR.LimitedSizeDocument=void 0;var t5=import.meta.require("os"),UJ=import.meta.require("process"),T7=D1(),nR=h(),tR=sR().version;class s3{constructor(Z){this.maxSize=Z,this.document=new Map,this.documentSize=5}ifItFitsItSits(Z,J){const $=T7.BSON.serialize((new Map()).set(Z,J)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(Z,J),!0}toObject(){return T7.BSON.deserialize(T7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}oR.LimitedSizeDocument=s3;oR.makeClientMetadata=Fp;oR.getFAASEnv=rR});var jJ=z((KP)=>{var YP=function(){if(q6==null){const Z=$P.getSnappy();if("kModuleError"in Z)throw Z.kModuleError;q6=Z}return q6};async function Ap(Z,J){const $={};switch(Z.agreedCompressor){case"snappy":return q6??(q6=YP()),q6.compress(J);case"zstd":{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.compress(J,Up)}case"zlib":{if(Z.zlibCompressionLevel)$.level=Z.zlibCompressionLevel;return jp(J,$)}default:throw new XP.MongoInvalidArgumentError(`Unknown compressor ${Z.agreedCompressor} failed to compress`)}}async function Lp(Z,J){if(Z!==KP.Compressor.snappy&&Z!==KP.Compressor.zstd&&Z!==KP.Compressor.zlib&&Z!==KP.Compressor.none)throw new XP.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${Z})`);switch(Z){case KP.Compressor.snappy:return q6??(q6=YP()),q6.uncompress(J,{asBuffer:!0});case KP.Compressor.zstd:{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.decompress(J)}case KP.Compressor.zlib:return Mp(J);default:return J}}var QP=function(){if(!p6)p6=$P.getZstdLibrary()};Object.defineProperty(KP,"__esModule",{value:!0});KP.decompress=KP.compress=KP.uncompressibleCommands=KP.Compressor=void 0;var JP=import.meta.require("util"),MJ=import.meta.require("zlib"),Vp=f1(),$P=j7(),XP=h();KP.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});KP.uncompressibleCommands=new Set([Vp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var Up=3,Mp=JP.promisify(MJ.inflate.bind(MJ)),jp=JP.promisify(MJ.deflate.bind(MJ)),p6,q6=null;KP.compress=Ap;KP.decompress=Lp});var VP=z((HP)=>{Object.defineProperty(HP,"__esModule",{value:!0});HP.Encrypter=void 0;var Pp=f1(),qP=h(),Dp=I7(),Tp=_(),FP,r5=Symbol("internalClient");class WP{constructor(Z,J,$){if(typeof $.autoEncryption!=="object")throw new qP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[r5]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=Z;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(Z,J,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=Z;else $.autoEncryption.metadataClient=this.getInternalClient(Z,J,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new FP(Z,$.autoEncryption)}getInternalClient(Z,J,$){let X=this[r5];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new Dp.MongoClient(J,Y),this[r5]=X;for(let Q of Pp.MONGO_CLIENT_EVENTS)for(let K of Z.listeners(Q))X.on(Q,K);Z.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const Z=this[r5];if(this.needsConnecting&&Z!=null)this.needsConnecting=!1,await Z.connect()}close(Z,J,$){this.autoEncrypter.teardown(!!J,(X)=>{const Y=this[r5];if(Y!=null&&Z!==Y){Y.close(J).then(()=>$(),(Q)=>$(Q));return}$(X)})}static checkForMongoCrypt(){const Z=Tp.getMongoDBClientEncryption();if(Z==null)throw new qP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");FP=Z.extension(o5()).AutoEncrypter}}HP.Encrypter=WP});var e3=z((jP)=>{var e5=function(Z){const J=Object.values(jP.SeverityLevel),$=Z?.toLowerCase();if($!=null&&J.includes($))return $;return null},E7=function(Z){return{write:(J)=>{Z.write(Ep.inspect(J,{compact:!0,breakLength:Infinity}),"utf-8");return}}},Np=function({MONGODB_LOG_PATH:Z},{mongodbLogPath:J}){if(typeof J==="string"&&/^stderr$/i.test(J))return E7(process.stderr);if(typeof J==="string"&&/^stdout$/i.test(J))return E7(process.stdout);if(typeof J==="object"&&typeof J?.write==="function")return J;if(Z&&/^stderr$/i.test(Z))return E7(process.stderr);if(Z&&/^stdout$/i.test(Z))return E7(process.stdout);return E7(process.stderr)},Bp=function(Z,J){const $=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z),X=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J);return $<X?-1:$>X?1:0},t3=function(Z,J){const $=Ip.EJSON.stringify(Z);return J!==0&&$.length>J?`${$.slice(0,J)}...`:$},Cp=function(Z){const J=Z;return J.toLog!==void 0&&typeof J.toLog==="function"},n3=function(Z,J){Z.commandName=J.commandName,Z.requestId=J.requestId,Z.driverConnectionId=J?.connectionId;const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();if(Z.serverHost=$,Z.serverPort=X,J?.serviceId)Z.serviceId=J.serviceId.toHexString();return Z},V8=function(Z,J){const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();return Z.serverHost=$,Z.serverPort=X,Z},hp=function(Z,J=jP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(Z.name){case w0.COMMAND_STARTED:return $=n3($,Z),$.message="Command started",$.command=t3(Z.command,J),$.databaseName=Z.databaseName,$;case w0.COMMAND_SUCCEEDED:return $=n3($,Z),$.message="Command succeeded",$.durationMS=Z.duration,$.reply=t3(Z.reply,J),$;case w0.COMMAND_FAILED:return $=n3($,Z),$.message="Command failed",$.durationMS=Z.duration,$.failure=Z.failure,$;case w0.CONNECTION_POOL_CREATED:if($=V8($,Z),$.message="Connection pool created",Z.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=Z.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case w0.CONNECTION_POOL_READY:return $=V8($,Z),$.message="Connection pool ready",$;case w0.CONNECTION_POOL_CLEARED:if($=V8($,Z),$.message="Connection pool cleared",Z.serviceId?._bsontype==="ObjectId")$.serviceId=Z.serviceId.toHexString();return $;case w0.CONNECTION_POOL_CLOSED:return $=V8($,Z),$.message="Connection pool closed",$;case w0.CONNECTION_CREATED:return $=V8($,Z),$.message="Connection created",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_READY:return $=V8($,Z),$.message="Connection ready",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CLOSED:switch($=V8($,Z),$.message="Connection closed",$.driverConnectionId=Z.connectionId,Z.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",Z.error)$.error=Z.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECK_OUT_STARTED:return $=V8($,Z),$.message="Connection checkout started",$;case w0.CONNECTION_CHECK_OUT_FAILED:switch($=V8($,Z),$.message="Connection checkout failed",Z.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",Z.error)$.error=Z.error;break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECKED_OUT:return $=V8($,Z),$.message="Connection checked out",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CHECKED_IN:return $=V8($,Z),$.message="Connection checked in",$.driverConnectionId=Z.connectionId,$;default:for(let[X,Y]of Object.entries(Z))if(Y!=null)$[X]=Y}return $};Object.defineProperty(jP,"__esModule",{value:!0});jP.MongoLogger=jP.stringifyWithMaxLen=jP.createStdioLogger=jP.MongoLoggableComponent=jP.SEVERITY_LEVEL_MAP=jP.DEFAULT_MAX_DOCUMENT_LENGTH=jP.SeverityLevel=void 0;var Ip=H5(),Ep=import.meta.require("util"),w0=f1(),o3=_();jP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});jP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class UP extends Map{constructor(Z){const J=[];for(let[$,X]of Z)J.push([X,$]);J.push(...Z);super(J)}getNumericSeverityLevel(Z){return this.get(Z)}getSeverityLevelName(Z){return this.get(Z)}}jP.SEVERITY_LEVEL_MAP=new UP([[jP.SeverityLevel.OFF,(-Infinity)],[jP.SeverityLevel.EMERGENCY,0],[jP.SeverityLevel.ALERT,1],[jP.SeverityLevel.CRITICAL,2],[jP.SeverityLevel.ERROR,3],[jP.SeverityLevel.WARNING,4],[jP.SeverityLevel.NOTICE,5],[jP.SeverityLevel.INFORMATIONAL,6],[jP.SeverityLevel.DEBUG,7],[jP.SeverityLevel.TRACE,8]]);jP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"});jP.createStdioLogger=E7;jP.stringifyWithMaxLen=t3;class MP{constructor(Z){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=Z.componentSeverities,this.maxDocumentLength=Z.maxDocumentLength,this.logDestination=Z.logDestination}log(Z,J,$){if(Bp(Z,this.componentSeverities[J])>0)return;let X={t:new Date,c:J,s:Z};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Cp($))X={...X,...$.toLog()};else X={...X,...hp($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(Z,J){const $={...Z,...J,mongodbLogPath:Np(Z,J)},X=e5($.MONGODB_LOG_ALL)??jP.SeverityLevel.OFF;return{componentSeverities:{command:e5($.MONGODB_LOG_COMMAND)??X,topology:e5($.MONGODB_LOG_TOPOLOGY)??X,serverSelection:e5($.MONGODB_LOG_SERVER_SELECTION)??X,connection:e5($.MONGODB_LOG_CONNECTION)??X,default:X},maxDocumentLength:o3.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}jP.MongoLogger=MP});var KQ=z((IP)=>{async function mp(Z){if(typeof Z.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(Z.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const J=Z.srvHost,$=await wP.promises.resolveSrv(`_${Z.srvServiceName}._tcp.${J}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!s1.matchesParentDomain(W,J))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>s1.HostAddress.fromString(`${W.name}:${W.port??27017}`));$Q(X,Z,!0);let Y;try{Y=await wP.promises.resolveTxt(J)}catch(W){if(W.code!=="ENODATA"&&W.code!=="ENOTFOUND")throw W;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new _p.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!JQ.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${JQ.join(", ")}`);if(JQ.some((W)=>Q.get(W)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,q=Q.get("replicaSet")??void 0,F=Q.get("loadBalanced")??void 0;if(!Z.userSpecifiedAuthSource&&G&&Z.credentials&&!x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(Z.credentials.mechanism))Z.credentials=N7.MongoCredentials.merge(Z.credentials,{source:G});if(!Z.userSpecifiedReplicaSet&&q)Z.replicaSet=q;if(F==="true")Z.loadBalanced=!0;if(Z.replicaSet&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return $Q(X,Z,!0),X}var up=function(Z){if(!Z)return;const J=($,X)=>{if(Z.has($)&&Z.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};J("tlsInsecure","tlsAllowInvalidCertificates"),J("tlsInsecure","tlsAllowInvalidHostnames"),J("tlsInsecure","tlsDisableCertificateRevocationCheck"),J("tlsInsecure","tlsDisableOCSPEndpointCheck"),J("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),J("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),J("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},W6=function(Z,J){if(typeof J==="boolean")return J;const $=String(J).toLowerCase();if(dp.has($)){if($!=="true")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : true instead`);return!0}if(pp.has($)){if($!=="false")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : false instead`);return!1}throw new S.MongoParseError(`Expected ${Z} to be stringified boolean value, got: ${J}`)},YQ=function(Z,J){const $=s1.parseInteger(J);if($!=null)return $;throw new S.MongoParseError(`Expected ${Z} to be stringified int value, got: ${J}`)},Z9=function(Z,J){const $=YQ(Z,J);if($<0)throw new S.MongoParseError(`${Z} can only be a positive int value, got: ${J}`);return $};function*DP(Z){const J=Z.split(",");for(let $ of J){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var cp=function(Z,J=void 0,$={}){if(J!=null&&!(J instanceof AJ.MongoClient))$=J,J=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new kp.default(Z),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(IP.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(s1.HostAddress.fromString);const G=new J9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const T=[...X.searchParams.getAll(w)];if(T.includes(""))throw new S.MongoAPIError("URI cannot contain options with no value");if(!G.has(w))G.set(w,T)}const q=new J9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const F=G.get("authMechanismProperties");if(F){for(let w of F)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(q.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const W=new J9,H=new Set([...G.keys(),...q.keys()]);for(let w of H){const T=[],f=q.get(w);if(f!=null)T.push(f);const N1=G.get(w)??[];T.push(...N1),W.set(w,T)}const V=W.has("tlsCertificateKeyFile")&&!W.has("tlsCertificateFile");if(V)W.set("tlsCertificateFile",W.get("tlsCertificateKeyFile"));if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(W6.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}up(W);const j=s1.setDifference(H,Array.from(Object.keys(IP.OPTIONS)).map((w)=>w.toLowerCase()));if(j.size!==0){const w=j.size>1?"options":"option",T=j.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(j).join(", ")} ${T} not supported`)}for(let[w,T]of Object.entries(IP.OPTIONS)){const f=W.get(w);if(!f||f.length===0){if(IP.DEFAULT_OPTIONS.has(w))TP(K,w,T,[IP.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:N1}=T;if(N1&&!(V&&w==="tlsCertificateFile")){const y=typeof N1==="string"?`: ${N1}`:"";s1.emitWarning(`${w} is a deprecated option${y}`)}TP(K,w,T,f)}}if(K.credentials){const w=K.credentials.mechanism===x8.AuthMechanism.MONGODB_GSSAPI,T=K.credentials.mechanism===x8.AuthMechanism.MONGODB_X509,f=K.credentials.mechanism===x8.AuthMechanism.MONGODB_AWS,N1=K.credentials.mechanism===x8.AuthMechanism.MONGODB_OIDC;if((w||T)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||T||f||N1)&&K.dbName&&!W.has("authSource"))K.credentials=N7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(f&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===x8.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if($Q(Y,K,Q),J&&K.autoEncryption)PP.Encrypter.checkForMongoCrypt(),K.encrypter=new PP.Encrypter(J,Z,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=q.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=q.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!q.has("tls")&&!G.has("tls"),T=!q.has("ssl")&&!G.has("ssl");if(w&&T)K.tls=!0}else if(G.has("srvMaxHosts")||q.has("srvMaxHosts")||G.has("srvServiceName")||q.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const L=Symbol.for("@@mdb.enableMongoLogger");K[L]=K[L]??!1;let D={},B={};if(K[L])D={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},B={mongodbLogPath:K.mongodbLogPath};return K.mongoLoggerOptions=vp.MongoLogger.resolveOptions(D,B),K.metadata=xp.makeClientMetadata(K),K},$Q=function(Z,J,$){if(J.loadBalanced){if(Z.length>1)throw new S.MongoParseError(fp);if(J.replicaSet)throw new S.MongoParseError(gp);if(J.directConnection)throw new S.MongoParseError(bp);if($&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},TP=function(Z,J,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??J;switch(Q){case"boolean":Z[G]=W6(G,X[0]);break;case"int":Z[G]=YQ(G,X[0]);break;case"uint":Z[G]=Z9(G,X[0]);break;case"string":if(X[0]==null)break;Z[G]=String(X[0]);break;case"record":if(!s1.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);Z[G]=X[0];break;case"any":Z[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const q=K({name:G,options:Z,values:X});Z[G]=q;break}}};Object.defineProperty(IP,"__esModule",{value:!0});IP.FEATURE_FLAGS=IP.DEFAULT_OPTIONS=IP.OPTIONS=IP.parseOptions=IP.resolveSRVRecord=void 0;var wP=import.meta.require("dns"),E4=import.meta.require("fs"),kp=l3(),_p=import.meta.require("url"),N7=JJ(),x8=k8(),xp=ZP(),RP=jJ(),PP=VP(),S=h(),AJ=I7(),vp=e3(),ZQ=d0(),c6=y1(),s1=_(),F6=A0(),JQ=["authSource","replicaSet","loadBalanced"],fp="loadBalanced option only supported with a single host in the URI",gp="loadBalanced option not supported with a replicaSet option",bp="loadBalanced option not supported when directConnection is provided";IP.resolveSRVRecord=mp;var dp=new Set(["true","t","1","y","yes"]),pp=new Set(["false","f","0","n","no","-1"]);class J9 extends Map{constructor(Z=[]){super(Z.map(([J,$])=>[J.toLowerCase(),$]))}has(Z){return super.has(Z.toLowerCase())}get(Z){return super.get(Z.toLowerCase())}set(Z,J){return super.set(Z.toLowerCase(),J)}delete(Z){return super.delete(Z.toLowerCase())}}IP.parseOptions=cp;IP.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:Z,options:J,values:[$]}){if(!s1.isRecord($,["username","password"]))throw new S.MongoParseError(`${Z} must be an object with 'username' and 'password' properties`);return N7.MongoCredentials.merge(J.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:Z,values:[J]}){const $=Object.values(x8.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${J}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${J}`);let Y=Z.credentials?.source;if(X===x8.AuthMechanism.MONGODB_PLAIN||x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=Z.credentials?.password;if(X===x8.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return N7.MongoCredentials.merge(Z.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:Z,values:J}){let $=Object.create(null);for(let X of J)if(typeof X==="string")for(let[Y,Q]of DP(X))try{$[Y]=W6(Y,Q)}catch{$[Y]=Q}else{if(!s1.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return N7.MongoCredentials.merge(Z.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:Z,values:[J]}){const $=String(J);return N7.MongoCredentials.merge(Z.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[Z]}){const J=typeof Z==="string"?{version:Z}:Z,$=J&&J.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);if(!Object.values(AJ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);return J}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:Z}){const J=new Set;for(let $ of Z){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(RP.Compressor).includes(String(Y)))J.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(RP.Compressor)}.`)}return[...J]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:Z,values:[J]}){const $=YQ(Z,J);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,fsync:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:120000,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:Z,values:[J]}){const $=Z9(Z,J);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:Z,options:J,values:[$]}){const X=Z9(Z,$);if(J.readPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,maxStalenessSeconds:X}});else return new c6.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[Z],options:J}){return{...J.driverInfo,name:String(Z)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:s1.DEFAULT_PK_FACTORY,transform({values:[Z]}){if(s1.isRecord(Z,["createPk"])&&typeof Z.createPk==="function")return Z;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${Z}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[Z],options:J}){if(Z instanceof ZQ.ReadConcern||s1.isRecord(Z,["level"]))return ZQ.ReadConcern.fromOptions({...J.readConcern,...Z});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(Z)}`)}},readConcernLevel:{target:"readConcern",transform({values:[Z],options:J}){return ZQ.ReadConcern.fromOptions({...J.readConcern,level:Z})}},readPreference:{default:c6.ReadPreference.primary,transform({values:[Z],options:J}){if(Z instanceof c6.ReadPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if(s1.isRecord(Z,["mode"])){const $=c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(Z)}`)}if(typeof Z==="string"){const $={hedge:J.readPreference?.hedge,maxStalenessSeconds:J.readPreference?.maxStalenessSeconds};return new c6.ReadPreference(Z,J.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${Z}`)}},readPreferenceTags:{target:"readPreference",transform({values:Z,options:J}){const $=Array.isArray(Z[0])?Z[0]:Z,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of DP(Y))Q[K]=G;if(s1.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return c6.ReadPreference.fromOptions({readPreference:J.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:30000,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:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version and be replaced by tlsCRLFile in that release.",target:"crl",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:Z,values:[J]}){return!W6(Z,J)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:Z,values:[J]}){return W6(Z,J)?()=>{return}:void 0}},tlsCAFile:{target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFile:{target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:Z,options:J,values:[$]}){const X=W6(Z,$);if(X)J.checkServerIdentity=()=>{return},J.rejectUnauthorized=!1;else J.checkServerIdentity=J.tlsAllowInvalidHostnames?()=>{return}:void 0,J.rejectUnauthorized=J.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[Z],options:J}){return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[Z],options:J}){if(s1.isRecord(Z)||Z instanceof F6.WriteConcern)return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,...Z}});else if(Z==="majority"||typeof Z==="number")return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(Z)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeout:Z9("wtimeout",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeoutMS:Z9("wtimeoutMS",Z)}});if($)return $;throw new S.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"},mongodbLogPath:{type:"any"}};IP.DEFAULT_OPTIONS=new J9(Object.entries(IP.OPTIONS).filter(([,Z])=>Z.default!=null).map(([Z,J])=>[Z,J.default]));IP.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var wJ=z((_P)=>{Object.defineProperty(_P,"__esModule",{value:!0});_P.ServerHeartbeatFailedEvent=_P.ServerHeartbeatSucceededEvent=_P.ServerHeartbeatStartedEvent=_P.TopologyClosedEvent=_P.TopologyOpeningEvent=_P.TopologyDescriptionChangedEvent=_P.ServerClosedEvent=_P.ServerOpeningEvent=_P.ServerDescriptionChangedEvent=void 0;class EP{constructor(Z,J,$,X){this.topologyId=Z,this.address=J,this.previousDescription=$,this.newDescription=X}}_P.ServerDescriptionChangedEvent=EP;class NP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerOpeningEvent=NP;class BP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerClosedEvent=BP;class CP{constructor(Z,J,$){this.topologyId=Z,this.previousDescription=J,this.newDescription=$}}_P.TopologyDescriptionChangedEvent=CP;class hP{constructor(Z){this.topologyId=Z}}_P.TopologyOpeningEvent=hP;class OP{constructor(Z){this.topologyId=Z}}_P.TopologyClosedEvent=OP;class SP{constructor(Z){this.connectionId=Z}}_P.ServerHeartbeatStartedEvent=SP;class yP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.reply=$??{}}}_P.ServerHeartbeatSucceededEvent=yP;class kP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.failure=$}}_P.ServerHeartbeatFailedEvent=kP});var RJ=z((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.BinMsg=uP.Msg=uP.Response=uP.Query=void 0;var l6=D1(),X9=h(),Jc=y1(),$c=_(),$9=j4(),B7=0,Xc=2,Yc=4,Qc=8,Kc=16,Gc=32,qc=64,Fc=128,Wc=1,Hc=2,zc=4,Vc=8;class GQ{constructor(Z,J,$){if(Z==null)throw new X9.MongoRuntimeError("Namespace must be specified for query");if(J==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(Z.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=Z,this.query=J,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=GQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=B7++}nextRequestId(){return B7+1}static getRequestId(){return++B7}toBin(){const Z=[];let J=null,$=0;if(this.tailable)$|=Xc;if(this.secondaryOk)$|=Yc;if(this.oplogReplay)$|=Qc;if(this.noCursorTimeout)$|=Kc;if(this.awaitData)$|=Gc;if(this.exhaust)$|=qc;if(this.partial)$|=Fc;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);Z.push(X);const Y=l6.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(Z.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)J=l6.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),Z.push(J);const Q=X.length+Y.length+(J?J.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=$9.OP_QUERY>>24&255,X[K+2]=$9.OP_QUERY>>16&255,X[K+1]=$9.OP_QUERY>>8&255,X[K]=$9.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,Z}}uP.Query=GQ;class vP{constructor(Z,J,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{};const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp;let q;const F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new l6.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=(this.responseFlags&Wc)!==0,this.queryFailure=(this.responseFlags&Hc)!==0,this.shardConfigStale=(this.responseFlags&zc)!==0,this.awaitCapable=(this.responseFlags&Vc)!==0;for(let W=0;W<this.numberReturned;W++){if(q=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,J)this.documents[W]=this.data.slice(this.index,this.index+q);else this.documents[W]=l6.deserialize(this.data.slice(this.index,this.index+q),F);this.index=this.index+q}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}}uP.Response=vP;var fP=1,gP=2,bP=1<<16;class qQ{constructor(Z,J,$){if(J==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.ns=Z,this.command=J,this.command.$db=$c.databaseNamespace(Z),$.readPreference&&$.readPreference.mode!==Jc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:qQ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const Z=[];let J=0;if(this.checksumPresent)J|=fP;if(this.moreToCome)J|=gP;if(this.exhaustAllowed)J|=bP;const $=Buffer.alloc(20);Z.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(Z,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE($9.OP_MSG,12),$.writeUInt32LE(J,16),Z}makeDocumentSegment(Z,J){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(J);return Z.push($),Z.push(X),$.length+X.length}serializeBson(Z){return l6.serialize(Z,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return B7=B7+1&2147483647,B7}}uP.Msg=qQ;class mP{constructor(Z,J,$,X){this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&fP)!==0,this.moreToCome=(this.responseFlags&gP)!==0,this.exhaustAllowed=(this.responseFlags&bP)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{},this.index=4;const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp,q=this.parseBsonSerializationOptions(Z),F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:q};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),V=this.data.slice(this.index,this.index+H);this.documents.push(J?V:l6.deserialize(V,F)),this.index+=H}else if(W===1)throw new X9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:Z}){if(Z===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}uP.BinMsg=mP});var VQ=z((nP)=>{var HQ=function(Z){if(Z instanceof lP.Msg)return U8.deepCopy(Z.command);if(Z.query?.$query){let X;if(Z.ns==="admin.$cmd")X=Object.assign({},Z.query.$query);else X={find:Rc(Z)},Object.keys(pP).forEach((Y)=>{if(Z.query[Y]!=null)X[pP[Y]]=U8.deepCopy(Z.query[Y])});if(Object.keys(cP).forEach((Y)=>{const Q=Y;if(Z[Q]!=null)X[cP[Q]]=U8.deepCopy(Z[Q])}),Pc.forEach((Y)=>{if(Z[Y])X[Y]=Z[Y]}),Z.pre32Limit!=null)X.limit=Z.pre32Limit;if(Z.query.$explain)return{explain:X};return X}const J={},$={};if(Z.query){for(let X in Z.query)J[X]=U8.deepCopy(Z.query[X]);$.query=J}for(let X in Z){if(X==="query")continue;$[X]=U8.deepCopy(Z[X])}return Z.query?J:$},Dc=function(Z,J){if(!J)return J;if(Z instanceof lP.Msg)return U8.deepCopy(J.result?J.result:J);if(Z.query&&Z.query.$query!=null)return{ok:1,cursor:{id:U8.deepCopy(J.cursorId),ns:Lc(Z),firstBatch:U8.deepCopy(J.documents)}};return U8.deepCopy(J.result?J.result:J)},zQ=function(Z){let J;if("id"in Z)J=Z.id;return{address:Z.address,serviceId:Z.serviceId,connectionId:J}};Object.defineProperty(nP,"__esModule",{value:!0});nP.SENSITIVE_COMMANDS=nP.CommandFailedEvent=nP.CommandSucceededEvent=nP.CommandStartedEvent=void 0;var Y9=f1(),U8=_(),lP=RJ();class aP{constructor(Z,J){this.name=Y9.COMMAND_STARTED;const $=HQ(J),X=FQ($),{address:Y,connectionId:Q,serviceId:K}=zQ(Z);if(nP.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=J.requestId,this.databaseName=wc(J),this.commandName=X,this.command=WQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandStartedEvent=aP;class iP{constructor(Z,J,$,X){this.name=Y9.COMMAND_SUCCEEDED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.reply=WQ(Q,Y,Dc(J,$))}get hasServiceId(){return!!this.serviceId}}nP.CommandSucceededEvent=iP;class sP{constructor(Z,J,$,X){this.name=Y9.COMMAND_FAILED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.failure=WQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandFailedEvent=sP;nP.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var Ac=new Set(["hello",Y9.LEGACY_HELLO_COMMAND,Y9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),FQ=(Z)=>Object.keys(Z)[0],Lc=(Z)=>Z.ns,wc=(Z)=>Z.ns.split(".")[0],Rc=(Z)=>Z.ns.split(".")[1],WQ=(Z,J,$)=>nP.SENSITIVE_COMMANDS.has(Z)||Ac.has(Z)&&J.speculativeAuthenticate?{}:$,pP={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},cP={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Pc=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var ZD=z((oP)=>{var hc=function(Z){const J=Z instanceof Q9.Msg?Z.command:Z.query,$=Object.keys(J)[0];return!IJ.uncompressibleCommands.has($)},K9=function(Z,J){const $=Z[TJ],X=$.getInt32();if(X==null)return J();if(X<0)return J(new UQ.MongoParseError(`Invalid message size: ${X}`));if(X>Z.maxBsonMessageSize)return J(new UQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${Z.maxBsonMessageSize}`));if(X>$.length)return J();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(Z.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response;if(Q.opCode!==DJ.OP_COMPRESSED){const W=Y.subarray(a6);if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(a6),Q.length=Y.readInt32LE(a6+4);const q=Y[a6+8],F=Y.slice(a6+9);G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response,IJ.decompress(q,F).then((W)=>{if(W.length!==Q.length)return J(new UQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()},(W)=>{return J(W)})};Object.defineProperty(oP,"__esModule",{value:!0});oP.MessageStream=void 0;var Nc=import.meta.require("stream"),UQ=h(),Bc=_(),Q9=RJ(),IJ=jJ(),DJ=j4(),a6=16,tP=9,Cc=67108864,TJ=Symbol("buffer");class rP extends Nc.Duplex{constructor(Z={}){super(Z);this.isMonitoringConnection=!1,this.maxBsonMessageSize=Z.maxBsonMessageSize||Cc,this[TJ]=new Bc.BufferPool}get buffer(){return this[TJ]}_write(Z,J,$){this[TJ].append(Z),K9(this,$)}_read(){return}writeCommand(Z,J){const $=J.agreedCompressor??"none";if($==="none"||!hc(Z)){const G=Z.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(Z.toBin()),Y=X.slice(a6),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:J.zlibCompressionLevel??0};IJ.compress(K,Y).then((G)=>{const q=Buffer.alloc(a6);q.writeInt32LE(a6+tP+G.length,0),q.writeInt32LE(Z.requestId,4),q.writeInt32LE(0,8),q.writeInt32LE(DJ.OP_COMPRESSED,12);const F=Buffer.alloc(tP);F.writeInt32LE(Q,0),F.writeInt32LE(Y.length,4),F.writeUInt8(IJ.Compressor[$],8),this.push(Buffer.concat([q,F,G]))},(G)=>{J.cb(G)})}}oP.MessageStream=rP});var YD=z(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.StreamDescription=void 0;var Oc=p0(),Sc=C5(),yc=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class JD{constructor(Z,J){this.address=Z,this.type=Oc.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes,this.loadBalanced=!!J?.loadBalanced,this.compressors=J&&J.compressors&&Array.isArray(J.compressors)?J.compressors:[]}receiveResponse(Z){if(Z==null)return;this.type=Sc.parseServerType(Z);for(let J of yc){if(Z[J]!=null)this[J]=Z[J];if("__nodejs_mock_server__"in Z)this.__nodejs_mock_server__=Z.__nodejs_mock_server__}if(Z.compression)this.compressor=this.compressors.filter((J)=>Z.compression?.includes(J))[0]}}$D.StreamDescription=JD});var G9=z((zD)=>{var HD=function(Z){return Z.description.logicalSessionTimeoutMinutes!=null},gc=function(Z){const J=Z.description;if(J==null)return!1;return i6.maxWireVersion(Z)>=6&&!J.__nodejs_mock_server__},bc=function(Z,J){if(J.proxyHost)return J.hostAddress.toString();const{remoteAddress:$,remotePort:X}=Z;if(typeof $==="string"&&typeof X==="number")return i6.HostAddress.fromHostPort($,X).toString();return i6.uuidV4().toString("hex")},mc=function(Z,J,$,X){$=$??{};const Y={requestId:J.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(Z[g8]&&Z[g8].compressor){if(Y.agreedCompressor=Z[g8].compressor,Z[g8].zlibCompressionLevel)Y.zlibCompressionLevel=Z[g8].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")Z[n1].setTimeout($.socketTimeoutMS);else if(Z.socketTimeoutMS!==0)Z[n1].setTimeout(Z.socketTimeoutMS);if(Z.monitorCommands)Z.emit(_1.COMMAND_STARTED,new EJ.CommandStartedEvent(Z,J)),Y.started=i6.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,Q,Y.started));else if(K&&(K.ok===0||K.$err))Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,K,Y.started));else Z.emit(_1.COMMAND_SUCCEEDED,new EJ.CommandSucceededEvent(Z,J,K,Y.started));if(typeof X==="function")X(Q,Q instanceof f8.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)Z[M8].set(Y.requestId,Y);try{Z[v8].writeCommand(J,Y)}catch(Q){if(!Y.noResponse){Z[M8].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};Object.defineProperty(zD,"__esModule",{value:!0});zD.hasSessionSupport=zD.CryptoConnection=zD.Connection=void 0;var QD=import.meta.require("timers"),kc=import.meta.require("util"),s6=f1(),f8=h(),_c=C0(),KD=S5(),i6=_(),EJ=VQ(),GD=RJ(),xc=ZD(),vc=YD(),qD=CY(),n1=Symbol("stream"),M8=Symbol("queue"),v8=Symbol("messageStream"),MQ=Symbol("generation"),jQ=Symbol("lastUseTime"),AQ=Symbol("clusterTime"),g8=Symbol("description"),LQ=Symbol("hello"),FD=Symbol("autoEncrypter"),NJ=Symbol("delayedTimeoutId"),fc="Connection internal queue contains more than 1 operation description";class _1 extends _c.TypedEventEmitter{constructor(Z,J){super();this.commandAsync=kc.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=J.id,this.address=bc(Z,J),this.socketTimeoutMS=J.socketTimeoutMS??0,this.monitorCommands=J.monitorCommands,this.serverApi=J.serverApi,this.closed=!1,this[LQ]=null,this[AQ]=null,this[g8]=new vc.StreamDescription(this.address,J),this[MQ]=J.generation,this[jQ]=i6.now(),this[M8]=new Map,this[v8]=new xc.MessageStream({...J,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[n1]=Z,this[NJ]=null,this[v8].on("message",($)=>this.onMessage($)),this[v8].on("error",($)=>this.onError($)),this[n1].on("close",()=>this.onClose()),this[n1].on("timeout",()=>this.onTimeout()),this[n1].on("error",()=>{}),this[n1].pipe(this[v8]),this[v8].pipe(this[n1])}get description(){return this[g8]}get hello(){return this[LQ]}set hello(Z){this[g8].receiveResponse(Z),this[g8]=Object.freeze(this[g8]),this[LQ]=Z}set isMonitoringConnection(Z){this[v8].isMonitoringConnection=Z}get isMonitoringConnection(){return this[v8].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[MQ]||0}set generation(Z){this[MQ]=Z}get idleTime(){return i6.calculateDurationInMs(this[jQ])}get clusterTime(){return this[AQ]}get stream(){return this[n1]}markAvailable(){this[jQ]=i6.now()}onError(Z){this.cleanup(!0,Z)}onClose(){const Z=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new f8.MongoNetworkError(Z))}onTimeout(){this[NJ]=QD.setTimeout(()=>{const Z=`connection ${this.id} to ${this.address} timed out`,J=this.hello==null;this.cleanup(!0,new f8.MongoNetworkTimeoutError(Z,{beforeHandshake:J}))},1).unref()}onMessage(Z){const J=this[NJ];if(J!=null)QD.clearTimeout(J),this[NJ]=null;const $=this[n1].timeout??0;this[n1].setTimeout(0),this.emit("message",Z);let X=this[M8].get(Z.responseTo);if(!X&&this.isMonitoringConnection)if(this[M8].size>1)this.cleanup(!0,new f8.MongoRuntimeError(fc));else{const Q=this[M8].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[M8].delete(K)}}if(!X)return;const Y=X.cb;if(this[M8].delete(Z.responseTo),"moreToCome"in Z&&Z.moreToCome)this[M8].set(Z.requestId,X),this[n1].setTimeout($);try{Z.parse(X)}catch(Q){Y(Q);return}if(Z.documents[0]){const Q=Z.documents[0],K=X.session;if(K)KD.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[AQ]=Q.$clusterTime,this.emit(_1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new f8.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new f8.MongoServerError(Q));return}}Y(void 0,Z.documents[0])}destroy(Z,J){if(this.closed){process.nextTick(()=>J?.());return}if(typeof J==="function")this.once("close",()=>process.nextTick(()=>J()));this.removeAllListeners(_1.PINNED),this.removeAllListeners(_1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(Z.force,new f8.MongoNetworkError($))}cleanup(Z,J){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[M8].values())X.cb(J);this[M8].clear(),this.emit(_1.CLOSE)};if(this[n1].removeAllListeners(),this[v8].removeAllListeners(),this[v8].destroy(),Z){this[n1].destroy(),$();return}if(!this[n1].writableEnded)this[n1].end(()=>{this[n1].destroy(),$()});else $()}command(Z,J,$,X){let Y={...J};const Q=qD.getReadPreference($),K=gc(this),G=$?.session;let q=this.clusterTime;if(this.serverApi){const{version:V,strict:j,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=V,j!=null)Y.apiStrict=j;if(U!=null)Y.apiDeprecationErrors=U}if(HD(this)&&G){if(G.clusterTime&&q&&G.clusterTime.clusterTime.greaterThan(q.clusterTime))q=G.clusterTime;const V=KD.applySession(G,Y,$);if(V)return X(V)}else if(G?.explicit)return X(new f8.MongoCompatibilityError("Current topology does not support sessions"));if(q)Y.$clusterTime=q;if(qD.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=`${Z.db}.\$cmd`,H=K?new GD.Msg(W,Y,F):new GD.Query(W,Y,F);try{mc(this,H,F,X)}catch(V){X(V)}}}_1.COMMAND_STARTED=s6.COMMAND_STARTED;_1.COMMAND_SUCCEEDED=s6.COMMAND_SUCCEEDED;_1.COMMAND_FAILED=s6.COMMAND_FAILED;_1.CLUSTER_TIME_RECEIVED=s6.CLUSTER_TIME_RECEIVED;_1.CLOSE=s6.CLOSE;_1.MESSAGE=s6.MESSAGE;_1.PINNED=s6.PINNED;_1.UNPINNED=s6.UNPINNED;zD.Connection=_1;class WD extends _1{constructor(Z,J){super(Z,J);this[FD]=J.autoEncrypter}command(Z,J,$,X){const Y=this[FD];if(!Y)return X(new f8.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=i6.maxWireVersion(this);if(Q===0)return super.command(Z,J,$,X);if(Q<8){X(new f8.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=J.find||J.findAndModify?J.sort:null,G=J.createIndexes?J.indexes.map((q)=>q.key):null;Y.encrypt(Z.toString(),J,$,(q,F)=>{if(q||F==null){X(q,null);return}if(K!=null&&(J.find||J.findAndModify))F.sort=K;if(G!=null&&J.createIndexes)for(let[W,H]of G.entries())F.indexes[W].key=H;super.command(Z,F,$,(W,H)=>{if(W||H==null){X(W,H);return}Y.decrypt(H,$,X)})})}}zD.CryptoConnection=WD;zD.hasSessionSupport=HD});var MD=z((UD)=>{var q9=function(Z){if(Z===4)return"ipv4";if(Z===6)return"ipv6";return Z?Z.toLowerCase():"ipv4"},x=UD,{Buffer:BJ}=import.meta.require("buffer"),pc=import.meta.require("os");x.toBuffer=function(Z,J,$){$=~~$;let X;if(this.isV4Format(Z))X=J||BJ.alloc($+4),Z.split(/\./g).map((Y)=>{X[$++]=parseInt(Y,10)&255});else if(this.isV6Format(Z)){const Y=Z.split(":",8);let Q;for(Q=0;Q<Y.length;Q++){const K=this.isV4Format(Y[Q]);let G;if(K)G=this.toBuffer(Y[Q]),Y[Q]=G.slice(0,2).toString("hex");if(G&&++Q<8)Y.splice(Q,0,G.slice(2,4).toString("hex"))}if(Y[0]==="")while(Y.length<8)Y.unshift("0");else if(Y[Y.length-1]==="")while(Y.length<8)Y.push("0");else if(Y.length<8){for(Q=0;Q<Y.length&&Y[Q]!=="";Q++);const K=[Q,1];for(Q=9-Y.length;Q>0;Q--)K.push("0");Y.splice(...K)}X=J||BJ.alloc($+16);for(Q=0;Q<Y.length;Q++){const K=parseInt(Y[Q],16);X[$++]=K>>8&255,X[$++]=K&255}}if(!X)throw Error(`Invalid ip address: ${Z}`);return X};x.toString=function(Z,J,$){J=~~J,$=$||Z.length-J;let X=[];if($===4){for(let Y=0;Y<$;Y++)X.push(Z[J+Y]);X=X.join(".")}else if($===16){for(let Y=0;Y<$;Y+=2)X.push(Z.readUInt16BE(J+Y).toString(16));X=X.join(":"),X=X.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),X=X.replace(/:{3,4}/,"::")}return X};var cc=/^(\d{1,3}\.){3,3}\d{1,3}$/,lc=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;x.isV4Format=function(Z){return cc.test(Z)};x.isV6Format=function(Z){return lc.test(Z)};x.fromPrefixLen=function(Z,J){if(Z>32)J="ipv6";else J=q9(J);let $=4;if(J==="ipv6")$=16;const X=BJ.alloc($);for(let Y=0,Q=X.length;Y<Q;++Y){let K=8;if(Z<8)K=Z;Z-=K,X[Y]=~(255>>K)&255}return x.toString(X)};x.mask=function(Z,J){Z=x.toBuffer(Z),J=x.toBuffer(J);const $=BJ.alloc(Math.max(Z.length,J.length));let X;if(Z.length===J.length)for(X=0;X<Z.length;X++)$[X]=Z[X]&J[X];else if(J.length===4)for(X=0;X<J.length;X++)$[X]=Z[Z.length-4+X]&J[X];else{for(X=0;X<$.length-6;X++)$[X]=0;$[10]=255,$[11]=255;for(X=0;X<Z.length;X++)$[X+12]=Z[X]&J[X+12];X+=12}for(;X<$.length;X++)$[X]=0;return x.toString($)};x.cidr=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.mask($,X)};x.subnet=function(Z,J){const $=x.toLong(x.mask(Z,J)),X=x.toBuffer(J);let Y=0;for(let K=0;K<X.length;K++)if(X[K]===255)Y+=8;else{let G=X[K]&255;while(G)G=G<<1&255,Y++}const Q=2**(32-Y);return{networkAddress:x.fromLong($),firstAddress:Q<=2?x.fromLong($):x.fromLong($+1),lastAddress:Q<=2?x.fromLong($+Q-1):x.fromLong($+Q-2),broadcastAddress:x.fromLong($+Q-1),subnetMask:J,subnetMaskLength:Y,numHosts:Q<=2?Q:Q-2,length:Q,contains(K){return $===x.toLong(x.mask(K,J))}}};x.cidrSubnet=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.subnet($,X)};x.not=function(Z){const J=x.toBuffer(Z);for(let $=0;$<J.length;$++)J[$]=255^J[$];return x.toString(J)};x.or=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let Q=0;Q<Z.length;++Q)Z[Q]|=J[Q];return x.toString(Z)}let $=Z,X=J;if(J.length>Z.length)$=J,X=Z;const Y=$.length-X.length;for(let Q=Y;Q<$.length;++Q)$[Q]|=X[Q-Y];return x.toString($)};x.isEqual=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let X=0;X<Z.length;X++)if(Z[X]!==J[X])return!1;return!0}if(J.length===4){const X=J;J=Z,Z=X}for(let X=0;X<10;X++)if(J[X]!==0)return!1;const $=J.readUInt16BE(10);if($!==0&&$!==65535)return!1;for(let X=0;X<4;X++)if(Z[X]!==J[X+12])return!1;return!0};x.isPrivate=function(Z){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^f[cd][0-9a-f]{2}:/i.test(Z)||/^fe80:/i.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.isPublic=function(Z){return!x.isPrivate(Z)};x.isLoopback=function(Z){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(Z)||/^fe80::1$/.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.loopback=function(Z){if(Z=q9(Z),Z!=="ipv4"&&Z!=="ipv6")throw new Error("family must be ipv4 or ipv6");return Z==="ipv4"?"127.0.0.1":"fe80::1"};x.address=function(Z,J){const $=pc.networkInterfaces();if(J=q9(J),Z&&Z!=="private"&&Z!=="public"){const Y=$[Z].filter((Q)=>{return q9(Q.family)===J});if(Y.length===0)return;return Y[0].address}const X=Object.keys($).map((Y)=>{const Q=$[Y].filter((K)=>{if(K.family=q9(K.family),K.family!==J||x.isLoopback(K.address))return!1;if(!Z)return!0;return Z==="public"?x.isPrivate(K.address):x.isPublic(K.address)});return Q.length?Q[0].address:void 0}).filter(Boolean);return!X.length?x.loopback(J):X[0]};x.toLong=function(Z){let J=0;return Z.split(".").forEach(($)=>{J<<=8,J+=parseInt($)}),J>>>0};x.fromLong=function(Z){return`${Z>>>24}.${Z>>16&255}.${Z>>8&255}.${Z&255}`}});var RD=z((wD)=>{var ac=function(Z){if(!jD.Buffer.isEncoding(Z))throw new Error(N4.INVALID_ENCODING)},AD=function(Z){return typeof Z==="number"&&isFinite(Z)&&tc(Z)},LD=function(Z,J){if(typeof Z==="number"){if(!AD(Z)||Z<0)throw new Error(J?N4.INVALID_OFFSET:N4.INVALID_LENGTH)}else throw new Error(J?N4.INVALID_OFFSET_NON_NUMBER:N4.INVALID_LENGTH_NON_NUMBER)},ic=function(Z){LD(Z,!1)},sc=function(Z){LD(Z,!0)},nc=function(Z,J){if(Z<0||Z>J.length)throw new Error(N4.INVALID_TARGET_OFFSET)},tc=function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z},rc=function(Z){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof jD.Buffer.prototype[Z]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${Z}.`)};Object.defineProperty(wD,"__esModule",{value:!0});var jD=import.meta.require("buffer"),N4={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."};wD.ERRORS=N4;wD.checkEncoding=ac;wD.isFiniteInteger=AD;wD.checkLengthValue=ic;wD.checkOffsetValue=sc;wD.checkTargetOffset=nc;wD.bigIntAndBufferInt64Check=rc});var TD=z((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});var c=RD(),PD=4096,Ql="utf8";class wQ{constructor(Z){if(this.length=0,this._encoding=Ql,this._writeOffset=0,this._readOffset=0,wQ.isSmartBufferOptions(Z)){if(Z.encoding)c.checkEncoding(Z.encoding),this._encoding=Z.encoding;if(Z.size)if(c.isFiniteInteger(Z.size)&&Z.size>0)this._buff=Buffer.allocUnsafe(Z.size);else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(Z.buff)if(Buffer.isBuffer(Z.buff))this._buff=Z.buff,this.length=Z.buff.length;else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(PD)}else{if(typeof Z!=="undefined")throw new Error(c.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(PD)}}static fromSize(Z,J){return new this({size:Z,encoding:J})}static fromBuffer(Z,J){return new this({buff:Z,encoding:J})}static fromOptions(Z){return new this(Z)}static isSmartBufferOptions(Z){const J=Z;return J&&(J.encoding!==void 0||J.size!==void 0||J.buff!==void 0)}readInt8(Z){return this._readNumberValue(Buffer.prototype.readInt8,1,Z)}readInt16BE(Z){return this._readNumberValue(Buffer.prototype.readInt16BE,2,Z)}readInt16LE(Z){return this._readNumberValue(Buffer.prototype.readInt16LE,2,Z)}readInt32BE(Z){return this._readNumberValue(Buffer.prototype.readInt32BE,4,Z)}readInt32LE(Z){return this._readNumberValue(Buffer.prototype.readInt32LE,4,Z)}readBigInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,Z)}readBigInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,Z)}writeInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt8,1,Z,J),this}insertInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt8,1,Z,J)}writeInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}insertInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}writeInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}insertInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}writeInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}insertInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}writeInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}insertInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}writeBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}insertBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}writeBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}insertBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}readUInt8(Z){return this._readNumberValue(Buffer.prototype.readUInt8,1,Z)}readUInt16BE(Z){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,Z)}readUInt16LE(Z){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,Z)}readUInt32BE(Z){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,Z)}readUInt32LE(Z){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,Z)}readBigUInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,Z)}readBigUInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,Z)}writeUInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}insertUInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}writeUInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}insertUInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}writeUInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}insertUInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}writeUInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}insertUInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}writeUInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}insertUInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}writeBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}insertBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}writeBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}insertBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}readFloatBE(Z){return this._readNumberValue(Buffer.prototype.readFloatBE,4,Z)}readFloatLE(Z){return this._readNumberValue(Buffer.prototype.readFloatLE,4,Z)}writeFloatBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}insertFloatBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}writeFloatLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}insertFloatLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}readDoubleBE(Z){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,Z)}readDoubleLE(Z){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,Z)}writeDoubleBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}insertDoubleBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}writeDoubleLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}insertDoubleLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}readString(Z,J){let $;if(typeof Z==="number")c.checkLengthValue(Z),$=Math.min(Z,this.length-this._readOffset);else J=Z,$=this.length-this._readOffset;if(typeof J!=="undefined")c.checkEncoding(J);const X=this._buff.slice(this._readOffset,this._readOffset+$).toString(J||this._encoding);return this._readOffset+=$,X}insertString(Z,J,$){return c.checkOffsetValue(J),this._handleString(Z,!0,J,$)}writeString(Z,J,$){return this._handleString(Z,!1,J,$)}readStringNT(Z){if(typeof Z!=="undefined")c.checkEncoding(Z);let J=this.length;for(let X=this._readOffset;X<this.length;X++)if(this._buff[X]===0){J=X;break}const $=this._buff.slice(this._readOffset,J);return this._readOffset=J+1,$.toString(Z||this._encoding)}insertStringNT(Z,J,$){return c.checkOffsetValue(J),this.insertString(Z,J,$),this.insertUInt8(0,J+Z.length),this}writeStringNT(Z,J,$){return this.writeString(Z,J,$),this.writeUInt8(0,typeof J==="number"?J+Z.length:this.writeOffset),this}readBuffer(Z){if(typeof Z!=="undefined")c.checkLengthValue(Z);const J=typeof Z==="number"?Z:this.length,$=Math.min(this.length,this._readOffset+J),X=this._buff.slice(this._readOffset,$);return this._readOffset=$,X}insertBuffer(Z,J){return c.checkOffsetValue(J),this._handleBuffer(Z,!0,J)}writeBuffer(Z,J){return this._handleBuffer(Z,!1,J)}readBufferNT(){let Z=this.length;for(let $=this._readOffset;$<this.length;$++)if(this._buff[$]===0){Z=$;break}const J=this._buff.slice(this._readOffset,Z);return this._readOffset=Z+1,J}insertBufferNT(Z,J){return c.checkOffsetValue(J),this.insertBuffer(Z,J),this.insertUInt8(0,J+Z.length),this}writeBufferNT(Z,J){if(typeof J!=="undefined")c.checkOffsetValue(J);return this.writeBuffer(Z,J),this.writeUInt8(0,typeof J==="number"?J+Z.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(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._readOffset=Z}get writeOffset(){return this._writeOffset}set writeOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._writeOffset=Z}get encoding(){return this._encoding}set encoding(Z){c.checkEncoding(Z),this._encoding=Z}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(Z){const J=typeof Z==="string"?Z:this._encoding;return c.checkEncoding(J),this._buff.toString(J,0,this.length)}destroy(){return this.clear(),this}_handleString(Z,J,$,X){let Y=this._writeOffset,Q=this._encoding;if(typeof $==="number")Y=$;else if(typeof $==="string")c.checkEncoding($),Q=$;if(typeof X==="string")c.checkEncoding(X),Q=X;const K=Buffer.byteLength(Z,Q);if(J)this.ensureInsertable(K,Y);else this._ensureWriteable(K,Y);if(this._buff.write(Z,Y,K,Q),J)this._writeOffset+=K;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,Y+K);else this._writeOffset+=K;return this}_handleBuffer(Z,J,$){const X=typeof $==="number"?$:this._writeOffset;if(J)this.ensureInsertable(Z.length,X);else this._ensureWriteable(Z.length,X);if(Z.copy(this._buff,X),J)this._writeOffset+=Z.length;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,X+Z.length);else this._writeOffset+=Z.length;return this}ensureReadable(Z,J){let $=this._readOffset;if(typeof J!=="undefined")c.checkOffsetValue(J),$=J;if($<0||$+Z>this.length)throw new Error(c.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(Z,J){if(c.checkOffsetValue(J),this._ensureCapacity(this.length+Z),J<this.length)this._buff.copy(this._buff,J+Z,J,this._buff.length);if(J+Z>this.length)this.length=J+Z;else this.length+=Z}_ensureWriteable(Z,J){const $=typeof J==="number"?J:this._writeOffset;if(this._ensureCapacity($+Z),$+Z>this.length)this.length=$+Z}_ensureCapacity(Z){const J=this._buff.length;if(Z>J){let $=this._buff,X=J*3/2+1;if(X<Z)X=Z;this._buff=Buffer.allocUnsafe(X),$.copy(this._buff,0,0,J)}}_readNumberValue(Z,J,$){this.ensureReadable(J,$);const X=Z.call(this._buff,typeof $==="number"?$:this._readOffset);if(typeof $==="undefined")this._readOffset+=J;return X}_insertNumberValue(Z,J,$,X){return c.checkOffsetValue(X),this.ensureInsertable(J,X),Z.call(this._buff,$,X),this._writeOffset+=J,this}_writeNumberValue(Z,J,$,X){if(typeof X==="number"){if(X<0)throw new Error(c.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);c.checkOffsetValue(X)}const Y=typeof X==="number"?X:this._writeOffset;if(this._ensureWriteable(J,Y),Z.call(this._buff,$,Y),typeof X==="number")this._writeOffset=Math.max(this._writeOffset,Y+J);else this._writeOffset+=J;return this}}DD.SmartBuffer=wQ});var NQ=z((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.SOCKS5_NO_ACCEPTABLE_AUTH=ID.SOCKS5_CUSTOM_AUTH_END=ID.SOCKS5_CUSTOM_AUTH_START=ID.SOCKS_INCOMING_PACKET_SIZES=ID.SocksClientState=ID.Socks5Response=ID.Socks5HostType=ID.Socks5Auth=ID.Socks4Response=ID.SocksCommand=ID.ERRORS=ID.DEFAULT_TIMEOUT=void 0;var Gl=30000;ID.DEFAULT_TIMEOUT=Gl;var ql={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"};ID.ERRORS=ql;var Fl={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(Z)=>Z+7,Socks4Response:8};ID.SOCKS_INCOMING_PACKET_SIZES=Fl;var RQ;(function(Z){Z[Z.connect=1]="connect",Z[Z.bind=2]="bind",Z[Z.associate=3]="associate"})(RQ||(RQ={}));ID.SocksCommand=RQ;var PQ;(function(Z){Z[Z.Granted=90]="Granted",Z[Z.Failed=91]="Failed",Z[Z.Rejected=92]="Rejected",Z[Z.RejectedIdent=93]="RejectedIdent"})(PQ||(PQ={}));ID.Socks4Response=PQ;var DQ;(function(Z){Z[Z.NoAuth=0]="NoAuth",Z[Z.GSSApi=1]="GSSApi",Z[Z.UserPass=2]="UserPass"})(DQ||(DQ={}));ID.Socks5Auth=DQ;var Wl=128;ID.SOCKS5_CUSTOM_AUTH_START=Wl;var Hl=254;ID.SOCKS5_CUSTOM_AUTH_END=Hl;var zl=255;ID.SOCKS5_NO_ACCEPTABLE_AUTH=zl;var TQ;(function(Z){Z[Z.Granted=0]="Granted",Z[Z.Failure=1]="Failure",Z[Z.NotAllowed=2]="NotAllowed",Z[Z.NetworkUnreachable=3]="NetworkUnreachable",Z[Z.HostUnreachable=4]="HostUnreachable",Z[Z.ConnectionRefused=5]="ConnectionRefused",Z[Z.TTLExpired=6]="TTLExpired",Z[Z.CommandNotSupported=7]="CommandNotSupported",Z[Z.AddressNotSupported=8]="AddressNotSupported"})(TQ||(TQ={}));ID.Socks5Response=TQ;var IQ;(function(Z){Z[Z.IPv4=1]="IPv4",Z[Z.Hostname=3]="Hostname",Z[Z.IPv6=4]="IPv6"})(IQ||(IQ={}));ID.Socks5HostType=IQ;var EQ;(function(Z){Z[Z.Created=0]="Created",Z[Z.Connecting=1]="Connecting",Z[Z.Connected=2]="Connected",Z[Z.SentInitialHandshake=3]="SentInitialHandshake",Z[Z.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",Z[Z.SentAuthentication=5]="SentAuthentication",Z[Z.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",Z[Z.SentFinalHandshake=7]="SentFinalHandshake",Z[Z.ReceivedFinalResponse=8]="ReceivedFinalResponse",Z[Z.BoundWaitingForConnection=9]="BoundWaitingForConnection",Z[Z.Established=10]="Established",Z[Z.Disconnected=11]="Disconnected",Z[Z.Error=99]="Error"})(EQ||(EQ={}));ID.SocksClientState=EQ});var BQ=z((BD)=>{var Il=function(Z){for(let J=Z.length-1;J>0;J--){const $=Math.floor(Math.random()*(J+1));[Z[J],Z[$]]=[Z[$],Z[J]]}};Object.defineProperty(BD,"__esModule",{value:!0});BD.shuffleArray=BD.SocksClientError=void 0;class ND extends Error{constructor(Z,J){super(Z);this.options=J}}BD.SocksClientError=ND;BD.shuffleArray=Il});var xD=z((kD)=>{var Bl=function(Z,J=["connect","bind","associate"]){if(!m1.SocksCommand[Z.command])throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommand,Z);if(J.indexOf(Z.command)===-1)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandForOperation,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!SD(Z.proxy))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);if(hD(Z.proxy,Z),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z);if(Z.existing_socket&&!(Z.existing_socket instanceof Nl.Duplex))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsExistingSocket,Z)},Cl=function(Z){if(Z.command!=="connect")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandChain,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!(Z.proxies&&Array.isArray(Z.proxies)&&Z.proxies.length>=2))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxiesLength,Z);if(Z.proxies.forEach((J)=>{if(!SD(J))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);hD(J,Z)}),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z)},hD=function(Z,J){if(Z.custom_auth_method!==void 0){if(Z.custom_auth_method<m1.SOCKS5_CUSTOM_AUTH_START||Z.custom_auth_method>m1.SOCKS5_CUSTOM_AUTH_END)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthRange,J);if(Z.custom_auth_request_handler===void 0||typeof Z.custom_auth_request_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_size===void 0)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_handler===void 0||typeof Z.custom_auth_response_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J)}},OD=function(Z){return Z&&typeof Z.host==="string"&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535},SD=function(Z){return Z&&(typeof Z.host==="string"||typeof Z.ipaddress==="string")&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535&&(Z.type===4||Z.type===5)},yD=function(Z){return typeof Z==="number"&&Z>0};Object.defineProperty(kD,"__esModule",{value:!0});kD.validateSocksClientChainOptions=kD.validateSocksClientOptions=void 0;var z0=BQ(),m1=NQ(),Nl=import.meta.require("stream");kD.validateSocksClientOptions=Bl;kD.validateSocksClientChainOptions=Cl});var bD=z((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.ReceiveBuffer=void 0;class vD{constructor(Z=4096){this.buffer=Buffer.allocUnsafe(Z),this.offset=0,this.originalSize=Z}get length(){return this.offset}append(Z){if(!Buffer.isBuffer(Z))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+Z.length>=this.buffer.length){const J=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+Z.length)),J.copy(this.buffer)}return Z.copy(this.buffer,this.offset),this.offset+=Z.length}peek(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,Z)}get(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const J=Buffer.allocUnsafe(Z);return this.buffer.slice(0,Z).copy(J),this.buffer.copyWithin(0,Z,Z+this.offset-Z),this.offset-=Z,J}}fD.ReceiveBuffer=vD});var mD=z((n6)=>{var C7=n6&&n6.__awaiter||function(Z,J,$,X){function Y(Q){return Q instanceof $?Q:new $(function(K){K(Q)})}return new($||($=Promise))(function(Q,K){function G(W){try{F(X.next(W))}catch(H){K(H)}}function q(W){try{F(X.throw(W))}catch(H){K(H)}}function F(W){W.done?Q(W.value):Y(W.value).then(G,q)}F((X=X.apply(Z,J||[])).next())})};Object.defineProperty(n6,"__esModule",{value:!0});n6.SocksClientError=n6.SocksClient=void 0;var Ol=import.meta.require("events"),h7=import.meta.require("net"),k0=MD(),R0=TD(),I=NQ(),CQ=xD(),Sl=bD(),hQ=BQ();Object.defineProperty(n6,"SocksClientError",{enumerable:!0,get:function(){return hQ.SocksClientError}});class CJ extends Ol.EventEmitter{constructor(Z){super();this.options=Object.assign({},Z),CQ.validateSocksClientOptions(Z),this.setState(I.SocksClientState.Created)}static createConnection(Z,J){return new Promise(($,X)=>{try{CQ.validateSocksClientOptions(Z,["connect"])}catch(Q){if(typeof J==="function")return J(Q),$(Q);else return X(Q)}const Y=new CJ(Z);Y.connect(Z.existing_socket),Y.once("established",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(null,Q),$(Q);else $(Q)}),Y.once("error",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(Q),$(Q);else X(Q)})})}static createConnectionChain(Z,J){return new Promise(($,X)=>C7(this,void 0,void 0,function*(){try{CQ.validateSocksClientChainOptions(Z)}catch(Y){if(typeof J==="function")return J(Y),$(Y);else return X(Y)}if(Z.randomizeChain)hQ.shuffleArray(Z.proxies);try{let Y;for(let Q=0;Q<Z.proxies.length;Q++){const K=Z.proxies[Q],G=Q===Z.proxies.length-1?Z.destination:{host:Z.proxies[Q+1].host||Z.proxies[Q+1].ipaddress,port:Z.proxies[Q+1].port},q=yield CJ.createConnection({command:"connect",proxy:K,destination:G,existing_socket:Y});Y=Y||q.socket}if(typeof J==="function")J(null,{socket:Y}),$({socket:Y});else $({socket:Y})}catch(Y){if(typeof J==="function")J(Y),$(Y);else X(Y)}}))}static createUDPFrame(Z){const J=new R0.SmartBuffer;if(J.writeUInt16BE(0),J.writeUInt8(Z.frameNumber||0),h7.isIPv4(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv4),J.writeUInt32BE(k0.toLong(Z.remoteHost.host));else if(h7.isIPv6(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv6),J.writeBuffer(k0.toBuffer(Z.remoteHost.host));else J.writeUInt8(I.Socks5HostType.Hostname),J.writeUInt8(Buffer.byteLength(Z.remoteHost.host)),J.writeString(Z.remoteHost.host);return J.writeUInt16BE(Z.remoteHost.port),J.writeBuffer(Z.data),J.toBuffer()}static parseUDPFrame(Z){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $=J.readUInt8(),X=J.readUInt8();let Y;if(X===I.Socks5HostType.IPv4)Y=k0.fromLong(J.readUInt32BE());else if(X===I.Socks5HostType.IPv6)Y=k0.toString(J.readBuffer(16));else Y=J.readString(J.readUInt8());const Q=J.readUInt16BE();return{frameNumber:$,remoteHost:{host:Y,port:Q},data:J.readBuffer()}}setState(Z){if(this.state!==I.SocksClientState.Error)this.state=Z}connect(Z){this.onDataReceived=($)=>this.onDataReceivedHandler($),this.onClose=()=>this.onCloseHandler(),this.onError=($)=>this.onErrorHandler($),this.onConnect=()=>this.onConnectHandler();const J=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||I.DEFAULT_TIMEOUT);if(J.unref&&typeof J.unref==="function")J.unref();if(Z)this.socket=Z;else this.socket=new h7.Socket;if(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(I.SocksClientState.Connecting),this.receiveBuffer=new Sl.ReceiveBuffer,Z)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",($)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const X=this.receiveBuffer.get(this.receiveBuffer.length);$.socket.emit("data",X)}$.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(){if(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.BoundWaitingForConnection)this.closeSocket(I.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(I.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(I.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(Z){this.receiveBuffer.append(Z),this.processData()}processData(){while(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===I.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===I.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===I.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===I.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(I.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(I.ERRORS.SocketClosed)}onErrorHandler(Z){this.closeSocket(Z.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(Z){if(this.state!==I.SocksClientState.Error)this.setState(I.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new hQ.SocksClientError(Z,this.options))}sendSocks4InitialHandshake(){const Z=this.options.proxy.userId||"",J=new R0.SmartBuffer;if(J.writeUInt8(4),J.writeUInt8(I.SocksCommand[this.options.command]),J.writeUInt16BE(this.options.destination.port),h7.isIPv4(this.options.destination.host))J.writeBuffer(k0.toBuffer(this.options.destination.host)),J.writeStringNT(Z);else J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(1),J.writeStringNT(Z),J.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(J.toBuffer())}handleSocks4FinalHandshakeResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedConnection} - (${I.Socks4Response[Z[1]]})`);else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};if($.host==="0.0.0.0")$.host=this.options.proxy.ipaddress;this.setState(I.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:$,socket:this.socket})}else this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${I.Socks4Response[Z[1]]})`);else{const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}sendSocks5InitialHandshake(){const Z=new R0.SmartBuffer,J=[I.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)J.push(I.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)J.push(this.options.proxy.custom_auth_method);Z.writeUInt8(5),Z.writeUInt8(J.length);for(let $ of J)Z.writeUInt8($);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const Z=this.receiveBuffer.get(2);if(Z[0]!==5)this.closeSocket(I.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(Z[1]===I.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(Z[1]===I.Socks5Auth.NoAuth)this.socks5ChosenAuthType=I.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(Z[1]===I.Socks5Auth.UserPass)this.socks5ChosenAuthType=I.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(Z[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const Z=this.options.proxy.userId||"",J=this.options.proxy.password||"",$=new R0.SmartBuffer;$.writeUInt8(1),$.writeUInt8(Buffer.byteLength(Z)),$.writeString(Z),$.writeUInt8(Buffer.byteLength(J)),$.writeString(J),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write($.toBuffer()),this.setState(I.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return C7(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(I.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(Z)})}handleSocks5AuthenticationNoAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return C7(this,void 0,void 0,function*(){this.setState(I.SocksClientState.ReceivedAuthenticationResponse);let Z=!1;if(this.socks5ChosenAuthType===I.Socks5Auth.NoAuth)Z=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===I.Socks5Auth.UserPass)Z=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)Z=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!Z)this.closeSocket(I.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){const Z=new R0.SmartBuffer;if(Z.writeUInt8(5),Z.writeUInt8(I.SocksCommand[this.options.command]),Z.writeUInt8(0),h7.isIPv4(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv4),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else if(h7.isIPv6(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv6),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else Z.writeUInt8(I.Socks5HostType.Hostname),Z.writeUInt8(this.options.destination.host.length),Z.writeString(this.options.destination.host);Z.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}if(this.setState(I.SocksClientState.ReceivedFinalResponse),I.SocksCommand[this.options.command]===I.SocksCommand.connect)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind)this.setState(I.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.associate)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}n6.SocksClient=CJ});var uD=z((B4)=>{var yl=B4&&B4.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),kl=B4&&B4.__exportStar||function(Z,J){for(var $ in Z)if($!=="default"&&!Object.prototype.hasOwnProperty.call(J,$))yl(J,Z,$)};Object.defineProperty(B4,"__esModule",{value:!0});kl(mD(),B4)});var iD=z((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.MongoCR=void 0;var dD=import.meta.require("crypto"),_l=h(),pD=_(),xl=G6();class cD extends xl.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new _l.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await J.commandAsync(pD.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=dD.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),q=dD.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),F={authenticate:1,user:X,nonce:K,key:q};await J.commandAsync(pD.ns(`${Q}.\$cmd`),F,void 0)}}lD.MongoCR=cD});var rD=z((nD)=>{async function cl(Z){function J($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new C4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new bl.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:Z.source,mechanism:ml.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(t6.credentialProvider??(t6.credentialProvider=hJ.getAwsCredentialProvider()),"kModuleError"in t6.credentialProvider){if(OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return J(await H6.request(`${pl}${OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await H6.request(`${yQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await H6.request(`${yQ}/${sD}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await H6.request(`${yQ}/${sD}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return J(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=OQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!ul.has(X),K=Y&&Q?t6.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):t6.credentialProvider.fromNodeProviderChain();try{const G=await K();return J({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new C4.MongoAWSError(G.message)}}}var ll=function(Z){const J=Z.split(".");if(J.length===1||J[1]==="amazonaws")return"us-east-1";return J[1]};Object.defineProperty(nD,"__esModule",{value:!0});nD.MongoDBAWS=void 0;var vl=import.meta.require("crypto"),OQ=import.meta.require("process"),fl=import.meta.require("util"),SQ=D1(),hJ=j7(),C4=h(),H6=_(),gl=G6(),bl=JJ(),ml=k8(),ul=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),dl=110,pl="http://169.254.170.2",yQ="http://169.254.169.254",sD="/latest/meta-data/iam/security-credentials",kQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class t6 extends gl.AuthProvider{constructor(){super();this.randomBytesAsync=fl.promisify(vl.randomBytes)}async auth(Z){const{connection:J}=Z;if(!Z.credentials)throw new C4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in hJ.aws4)throw hJ.aws4.kModuleError;const{sign:$}=hJ.aws4;if(H6.maxWireVersion(J)<9)throw new C4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!Z.credentials.username)Z.credentials=await cl(Z.credentials);const{credentials:X}=Z,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,q=X.source,F=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:SQ.serialize({r:F,p:dl},kQ)},H=await J.commandAsync(H6.ns(`${q}.\$cmd`),W,void 0),V=SQ.deserialize(H.payload.buffer,kQ),j=V.h,U=V.s.buffer;if(U.length!==64)throw new C4.MongoRuntimeError(`Invalid server nonce length ${U.length}, expected 64`);if(!H6.ByteUtils.equals(U.subarray(0,F.byteLength),F))throw new C4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new C4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const L="Action=GetCallerIdentity&Version=2011-06-15",D=$({method:"POST",host:j,region:ll(V.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":L.length,"X-MongoDB-Server-Nonce":H6.ByteUtils.toBase64(U),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:L},G),B={a:D.headers.Authorization,d:D.headers["X-Amz-Date"]};if(K)B.t=K;const w={saslContinue:1,conversationId:1,payload:SQ.serialize(B,kQ)};await J.commandAsync(H6.ns(`${q}.\$cmd`),w,void 0)}}t6.credentialProvider=null;nD.MongoDBAWS=t6});var xQ=z((eD)=>{var _Q=function(Z){return{saslStart:1,mechanism:sl.AuthMechanism.MONGODB_OIDC,payload:al.BSON.serialize({jwt:Z})}};Object.defineProperty(eD,"__esModule",{value:!0});eD.commandDocument=eD.ServiceWorkflow=void 0;var al=H5(),il=_(),sl=k8();class oD{async execute(Z,J){const $=await this.getToken(J),X=_Q($);return Z.commandAsync(il.ns(J.source),X,void 0)}async speculativeAuth(Z){const J=await this.getToken(Z),$=_Q(J);return $.db=Z.source,{speculativeAuthenticate:$}}}eD.ServiceWorkflow=oD;eD.commandDocument=_Q});var YT=z(($T)=>{Object.defineProperty($T,"__esModule",{value:!0});$T.AwsServiceWorkflow=void 0;var tl=import.meta.require("fs"),rl=h(),ol=xQ(),el="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class JT extends ol.ServiceWorkflow{constructor(){super()}async getToken(){const Z=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!Z)throw new rl.MongoAWSError(el);return tl.promises.readFile(Z,"utf8")}}$T.AwsServiceWorkflow=JT});var OJ=z((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});GT.Cache=GT.ExpiringCacheEntry=void 0;var Za=300000;class QT{constructor(Z){this.expiration=this.expirationTime(Z)}isValid(){return this.expiration-Date.now()>Za}expirationTime(Z){return Date.now()+Z*1000}}GT.ExpiringCacheEntry=QT;class KT{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(Z,J,$){return JSON.stringify([Z,J,$])}}GT.Cache=KT});var VT=z((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.AzureTokenCache=HT.AzureTokenEntry=void 0;var FT=OJ();class vQ extends FT.ExpiringCacheEntry{constructor(Z,J){super(J);this.token=Z}}HT.AzureTokenEntry=vQ;class WT extends FT.Cache{addEntry(Z,J){const $=new vQ(J.access_token,J.expires_in);return this.entries.set(Z,$),$}cacheKey(Z){return Z}deleteEntry(Z){this.entries.delete(Z)}getEntry(Z){return this.entries.get(Z)}}HT.AzureTokenCache=WT});var LT=z((jT)=>{async function Wa(Z){const J=`${Ka}&resource=${Z}`;return await Xa.request(J,{json:!0,headers:Ga})}var Ha=function(Z){if(Z==null||typeof Z!=="object")return!1;return"access_token"in Z&&"expires_in"in Z};Object.defineProperty(jT,"__esModule",{value:!0});jT.AzureServiceWorkflow=void 0;var UT=h(),Xa=_(),Ya=VT(),Qa=xQ(),Ka="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",Ga=Object.freeze({Metadata:"true",Accept:"application/json"}),qa="Azure endpoint did not return a value with only access_token and expires_in properties",Fa="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class MT extends Qa.ServiceWorkflow{constructor(){super(...arguments);this.cache=new Ya.AzureTokenCache}async getToken(Z){const J=Z?.mechanismProperties.TOKEN_AUDIENCE;if(!J)throw new UT.MongoAzureError(Fa);let $;const X=this.cache.getEntry(J);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(J);const Y=await Wa(J);if(!Ha(Y))throw new UT.MongoAzureError(qa);this.cache.addEntry(J,Y),$=Y.access_token}return $}}jT.AzureServiceWorkflow=MT});var IT=z((DT)=>{var wT=function(Z){let J=Promise.resolve();return async($,X)=>{return await J,J=J.then(()=>Z($,X)),J}},Ma=function(Z,J){let $=F9.get(Z),X=F9.get(J??RT);if($==null)h4++,$=h4,F9.set(Z,h4);if(X==null&&J)h4++,X=h4,F9.set(J,h4);return`${$}-${X}`};Object.defineProperty(DT,"__esModule",{value:!0});DT.CallbackLockCache=void 0;var za=h(),Va=OJ(),Ua="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",h4=0,RT=async()=>({accessToken:"test"}),F9=new WeakMap;F9.set(RT,h4);class PT extends Va.Cache{getEntry(Z,J){const $=J.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=J.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new za.MongoInvalidArgumentError(Ua);const Y=Ma($,X),Q=this.cacheKey(Z.address,J.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(Z,J,$,X){const Y={requestCallback:wT($),refreshCallback:X?wT(X):void 0,callbackHash:J};return this.entries.set(Z,Y),Y}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}DT.CallbackLockCache=PT});var hT=z((BT)=>{Object.defineProperty(BT,"__esModule",{value:!0});BT.TokenEntryCache=BT.TokenEntry=void 0;var ET=OJ(),ja=0;class fQ extends ET.ExpiringCacheEntry{constructor(Z,J,$){super($);this.tokenResult=Z,this.serverInfo=J}}BT.TokenEntry=fQ;class NT extends ET.Cache{addEntry(Z,J,$,X,Y){const Q=new fQ(X,Y,X.expiresInSeconds??ja);return this.entries.set(this.cacheKey(Z,J,$),Q),Q}deleteEntry(Z,J,$){this.entries.delete(this.cacheKey(Z,J,$))}getEntry(Z,J,$){return this.entries.get(this.cacheKey(Z,J,$))}deleteExpiredEntries(){for(let[Z,J]of this.entries)if(!J.isValid())this.entries.delete(Z)}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}BT.TokenEntryCache=NT});var vT=z((_T)=>{var Ia=function(Z,J){if(J!=null&&typeof J==="number")return{saslContinue:1,conversationId:J,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))};return{saslStart:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))}},Ea=function(Z){if(Z==null||typeof Z!=="object")return!0;if(!("accessToken"in Z))return!0;return!Object.getOwnPropertyNames(Z).every((J)=>Da.includes(J))},ST=function(Z){const J={};if(Z.username)J.n=Z.username;return{saslStart:1,autoAuthorize:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize(J))}};Object.defineProperty(_T,"__esModule",{value:!0});_T.CallbackWorkflow=void 0;var O4=H5(),gQ=h(),OT=_(),yT=k8(),La=IT(),wa=hT(),Ra=0,Pa=300,Da=["accessToken","expiresInSeconds","refreshToken"],Ta="User provided OIDC callbacks must return a valid object with an accessToken.";class kT{constructor(){this.cache=new wa.TokenEntryCache,this.callbackCache=new La.CallbackLockCache}async speculativeAuth(Z){const J=ST(Z);return J.db=Z.source,{speculativeAuthenticate:J}}async execute(Z,J,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(Z,J),G=this.cache.getEntry(Z.address,J.username,K);let q;if(G)if(G.isValid()&&!$)q=await this.finishAuthentication(Z,J,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const F=await this.fetchAccessToken(Z,J,G.serverInfo,$,K,Y,Q);try{q=await this.finishAuthentication(Z,J,F,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof gQ.MongoError&&W.code===gQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(Z.address,J.username,K),q=await this.execute(Z,J,$);else throw W}}else{const F=await this.startAuthentication(Z,J,$,X),W=F.conversationId,H=O4.BSON.deserialize(F.payload.buffer),V=await this.fetchAccessToken(Z,J,H,$,K,Y,Q);q=await this.finishAuthentication(Z,J,V,W)}return q}async startAuthentication(Z,J,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await Z.commandAsync(OT.ns(J.source),ST(J),void 0);return Y}async finishAuthentication(Z,J,$,X){return await Z.commandAsync(OT.ns(J.source),Ia($.accessToken,X),void 0)}async fetchAccessToken(Z,J,$,X,Y,Q,K){const G=this.cache.getEntry(Z.address,J.username,Y);let q;const F={timeoutSeconds:Pa,version:Ra};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)F.refreshToken=G.tokenResult.refreshToken,q=await K($,F);else q=await Q($,F)}else q=await Q($,F);if(Ea(q))throw this.cache.deleteEntry(Z.address,J.username,Y),new gQ.MongoMissingCredentialsError(Ta);return this.cache.deleteExpiredEntries(),this.cache.addEntry(Z.address,J.username||"",Y,q,$),q}}_T.CallbackWorkflow=kT});var pT=z((uT)=>{var fT=function(Z){const{credentials:J}=Z;if(!J)throw new bT.MongoMissingCredentialsError(Oa);return J},gT=function(Z){const J=Z.mechanismProperties.PROVIDER_NAME,$=uT.OIDC_WORKFLOWS.get(J||"callback");if(!$)throw new bT.MongoInvalidArgumentError(`Could not load workflow for provider ${Z.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(uT,"__esModule",{value:!0});uT.MongoDBOIDC=uT.OIDC_WORKFLOWS=void 0;var bT=h(),Na=G6(),Ba=YT(),Ca=LT(),ha=vT(),Oa="AuthContext must provide credentials.";uT.OIDC_WORKFLOWS=new Map;uT.OIDC_WORKFLOWS.set("callback",new ha.CallbackWorkflow);uT.OIDC_WORKFLOWS.set("aws",new Ba.AwsServiceWorkflow);uT.OIDC_WORKFLOWS.set("azure",new Ca.AzureServiceWorkflow);class mT extends Na.AuthProvider{constructor(){super()}async auth(Z){const{connection:J,reauthenticating:$,response:X}=Z,Y=fT(Z);await gT(Y).execute(J,Y,$,X)}async prepare(Z,J){const $=fT(J),Y=await gT($).speculativeAuth($);return{...Z,...Y}}}uT.MongoDBOIDC=mT});var iT=z((lT)=>{Object.defineProperty(lT,"__esModule",{value:!0});lT.Plain=void 0;var Sa=D1(),ya=h(),ka=_(),_a=G6();class cT extends _a.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new ya.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Sa.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await J.commandAsync(ka.ns("$external.$cmd"),K,void 0)}}lT.Plain=cT});var YI=z(($I)=>{var tT=function(Z){return Z.replace("=","=3D").replace(",","=2C")},rT=function(Z,J){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(Z,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(J.toString("base64"),"utf8")])},oT=function(Z,J,$){const X=tT(J.username);return{saslStart:1,mechanism:Z==="sha1"?sT.AuthMechanism.MONGODB_SCRAM_SHA1:sT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new bQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),rT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function fa(Z,J){const{connection:$,credentials:X}=J;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!J.nonce)throw new j8.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=J.nonce,Q=X.source,K=oT(Z,X,Y),G=await $.commandAsync(kJ.ns(`${Q}.\$cmd`),K,void 0);await eT(Z,G,J)}async function eT(Z,J,$){const{connection:X,credentials:Y}=$;if(!Y)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new j8.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=tT(Y.username),q=Y.password;let F;if(Z==="sha256")F="kModuleError"in H9.saslprep||typeof H9.saslprep!=="function"?q:H9.saslprep(q);else F=ga(G,q);const W=Buffer.isBuffer(J.payload)?new bQ.Binary(J.payload):J.payload,H=nT(W.value()),V=parseInt(H.i,10);if(V&&V<4096)throw new j8.MongoRuntimeError(`Server returned an invalid iteration count ${V}`);const{s:j,r:U}=H;if(U.startsWith("nonce"))throw new j8.MongoRuntimeError(`Server returned an invalid nonce: ${U}`);const L=`c=biws,r=${U}`,D=pa(F,Buffer.from(j,"base64"),V,Z),B=SJ(Z,D,"Client Key"),w=SJ(Z,D,"Server Key"),T=ma(Z,B),f=[rT(G,Q),W.value(),L].join(","),N1=SJ(Z,T,f),p8=`p=${ba(B,N1)}`,y=[L,p8].join(","),N=SJ(Z,w,f),G1={saslContinue:1,conversationId:J.conversationId,payload:new bQ.Binary(Buffer.from(y))},u=await X.commandAsync(kJ.ns(`${K}.\$cmd`),G1,void 0),v=nT(u.payload.value());if(!ca(Buffer.from(v.v,"base64"),N))throw new j8.MongoRuntimeError("Server returned an invalid signature");if(u.done!==!1)return;const C={saslContinue:1,conversationId:u.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(kJ.ns(`${K}.\$cmd`),C,void 0)}var nT=function(Z){const J={},$=Z.split(",");for(let X=0;X<$.length;X++){const Y=$[X].split("=");J[Y[0]]=Y[1]}return J},ga=function(Z,J){if(typeof Z!=="string")throw new j8.MongoInvalidArgumentError("Username must be a string");if(typeof J!=="string")throw new j8.MongoInvalidArgumentError("Password must be a string");if(J.length===0)throw new j8.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=r6.createHash("md5")}catch(X){if(r6.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${Z}:mongo:${J}`,"utf8"),$.digest("hex")},ba=function(Z,J){if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);if(!Buffer.isBuffer(J))J=Buffer.from(J);const $=Math.max(Z.length,J.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(Z[Y]^J[Y]);return Buffer.from(X).toString("base64")},ma=function(Z,J){return r6.createHash(Z).update(J).digest()},SJ=function(Z,J,$){return r6.createHmac(Z,J).update($).digest()},ua=function(){yJ={},mQ=0},pa=function(Z,J,$,X){const Y=[Z,J.toString("base64"),$].join("_");if(yJ[Y]!=null)return yJ[Y];const Q=r6.pbkdf2Sync(Z,J,$,da[X],X);if(mQ>=200)ua();return yJ[Y]=Q,mQ+=1,Q},ca=function(Z,J){if(Z.length!==J.length)return!1;if(typeof r6.timingSafeEqual==="function")return r6.timingSafeEqual(Z,J);let $=0;for(let X=0;X<Z.length;X++)$|=Z[X]^J[X];return $===0};Object.defineProperty($I,"__esModule",{value:!0});$I.ScramSHA256=$I.ScramSHA1=void 0;var r6=import.meta.require("crypto"),xa=import.meta.require("util"),bQ=D1(),H9=j7(),j8=h(),kJ=_(),va=G6(),sT=k8();class uQ extends va.AuthProvider{constructor(Z){super();this.cryptoMethod=Z||"sha1",this.randomBytesAsync=xa.promisify(r6.randomBytes)}async prepare(Z,J){const $=this.cryptoMethod,X=J.credentials;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if($==="sha256"&&(("kModuleError"in H9.saslprep)||typeof H9.saslprep!=="function"))kJ.emitWarning("Warning: no saslprep library specified. Passwords will not be sanitized");const Y=await this.randomBytesAsync(24);return J.nonce=Y,{...Z,speculativeAuthenticate:{...oT($,X,Y),db:X.source}}}async auth(Z){const{reauthenticating:J,response:$}=Z;if($?.speculativeAuthenticate&&!J)return eT(this.cryptoMethod,$.speculativeAuthenticate,Z);return fa(this.cryptoMethod,Z)}}var yJ={},mQ=0,da={sha256:32,sha1:20};class ZI extends uQ{constructor(){super("sha1")}}$I.ScramSHA1=ZI;class JI extends uQ{constructor(){super("sha256")}}$I.ScramSHA256=JI});var WI=z((qI)=>{var KI=function(Z){const J={authenticate:1,mechanism:"MONGODB-X509"};if(Z.username)J.user=Z.username;return J};Object.defineProperty(qI,"__esModule",{value:!0});qI.X509=void 0;var QI=h(),aa=_(),ia=G6();class GI extends ia.AuthProvider{async prepare(Z,J){const{credentials:$}=J;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...Z,speculativeAuthenticate:KI($)}}async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(Z.response?.speculativeAuthenticate)return;await J.commandAsync(aa.ns("$external.$cmd"),KI($),void 0)}}qI.X509=GI});var aQ=z((LI)=>{var Xi=function(Z,J){pQ({...Z,existingSocket:void 0},($,X)=>{if($||!X)return J($);let Y=Z.connectionType??zI.Connection;if(Z.autoEncrypter)Y=zI.CryptoConnection;const Q=new Y(X,Z);Qi(Q,Z).then(()=>J(void 0,Q),(K)=>{Q.destroy({force:!1}),J(K)})})},Yi=function(Z,J){const $=Number(Z.maxWireVersion),X=Number(Z.minWireVersion),Y=!Number.isNaN($)&&$>=O7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=O7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${J.hostAddress} reports minimum wire version ${JSON.stringify(Z.minWireVersion)}, but this version of the Node.js Driver requires at most ${O7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MAX_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(G)}const K=`Server at ${J.hostAddress} reports maximum wire version ${JSON.stringify(Z.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${O7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MIN_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(K)};async function Qi(Z,J){const $=J.credentials;if($){if($.mechanism!==o0.AuthMechanism.MONGODB_DEFAULT&&!LI.AUTH_PROVIDERS.get($.mechanism))throw new x1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new ta.AuthContext(Z,$,J);Z.authContext=X;const Y=await jI(X),Q={...J};if(typeof J.connectTimeoutMS==="number")Q.socketTimeoutMS=J.connectTimeoutMS;const K=(new Date()).getTime(),G=await Z.commandAsync(MI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[UI.LEGACY_HELLO_COMMAND];if(G.helloOk)Z.helloOk=!0;const q=Yi(G,J);if(q)throw q;if(J.loadBalanced){if(!G.serviceId)throw new x1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(Z.hello=G,Z.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const F=$.resolveAuthMechanism(G),W=LI.AUTH_PROVIDERS.get(F.mechanism);if(!W)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${F.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof x1.MongoError){if(H.addErrorLabel(x1.MongoErrorLabel.HandshakeError),x1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(x1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function jI(Z){const J=Z.options,$=J.compressors?J.compressors:[],{serverApi:X}=Z.connection,Y={[X?.version?"hello":UI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:J.metadata,compression:$};if(J.loadBalanced===!0)Y.loadBalanced=!0;const Q=Z.credentials;if(Q){if(Q.mechanism===o0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=LI.AUTH_PROVIDERS.get(o0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${o0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,Z)}const K=LI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,Z)}return Y}var cQ=function(Z){const J=Z.hostAddress;if(!J)throw new x1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of LI.LEGAL_TCP_SOCKET_OPTIONS)if(Z[X]!=null)$[X]=Z[X];if(typeof J.socketPath==="string")return $.path=J.socketPath,$;else if(typeof J.host==="string")return $.host=J.host,$.port=J.port,$;else throw new x1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(J)}`)},Ki=function(Z){const J=cQ(Z);for(let $ of LI.LEGAL_TLS_SOCKET_OPTIONS)if(Z[$]!=null)J[$]=Z[$];if(Z.existingSocket)J.socket=Z.existingSocket;if(J.servername==null&&J.host&&!VI.isIP(J.host))J.servername=J.host;return J},pQ=function(Z,J){const $=Z.tls??!1,X=Z.keepAlive??!0,Y=Z.socketTimeoutMS??Reflect.get(Z,"socketTimeout")??0,Q=Z.noDelay??!0,K=Z.connectTimeoutMS??30000,G=Z.rejectUnauthorized??!0,q=((Z.keepAliveInitialDelay??120000)>Y?Math.round(Y/2):Z.keepAliveInitialDelay)??120000,F=Z.existingSocket;let W;const H=function(D,B){if(D&&W)W.destroy();J(D,B)};if(Z.proxyHost!=null)return qi({...Z,connectTimeoutMS:K},H);if($){const D=na.connect(Ki(Z));if(typeof D.disableRenegotiation==="function")D.disableRenegotiation();W=D}else if(F)W=F;else W=VI.createConnection(cQ(Z));W.setKeepAlive(X,q),W.setTimeout(K),W.setNoDelay(Q);const V=$?"secureConnect":"connect";let j;function U(D){return(B)=>{if(dQ.forEach((w)=>W.removeAllListeners(w)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);W.removeListener(V,L),H(AI(D,B))}}function L(){if(dQ.forEach((D)=>W.removeAllListeners(D)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);if("authorizationError"in W){if(W.authorizationError&&G)return H(W.authorizationError)}W.setTimeout(0),H(void 0,W)}if(dQ.forEach((D)=>W.once(D,U(D))),Z.cancellationToken)j=U("cancel"),Z.cancellationToken.once("cancel",j);if(F)process.nextTick(L);else W.once(V,L)},qi=function(Z,J){const $=MI.HostAddress.fromHostPort(Z.proxyHost??"",Z.proxyPort??1080);pQ({...Z,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X)return J(X);const Q=cQ(Z);if(typeof Q.host!=="string"||typeof Q.port!=="number")return J(new x1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));sa.SocksClient.createConnection({existing_socket:Y,timeout:Z.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:Z.proxyUsername||void 0,password:Z.proxyPassword||void 0}}).then(({socket:K})=>{pQ({...Z,existingSocket:K,proxyHost:void 0},J)},(K)=>J(AI("error",K)))})},AI=function(Z,J){switch(Z){case"error":return new x1.MongoNetworkError(J);case"timeout":return new x1.MongoNetworkTimeoutError("connection timed out");case"close":return new x1.MongoNetworkError("connection closed");case"cancel":return new x1.MongoNetworkError("connection establishment was cancelled");default:return new x1.MongoNetworkError("unknown network error")}};Object.defineProperty(LI,"__esModule",{value:!0});LI.LEGAL_TCP_SOCKET_OPTIONS=LI.LEGAL_TLS_SOCKET_OPTIONS=LI.prepareHandshakeDocument=LI.connect=LI.AUTH_PROVIDERS=void 0;var VI=import.meta.require("net"),sa=uD(),na=import.meta.require("tls"),UI=f1(),x1=h(),MI=_(),ta=G6(),ra=eZ(),oa=iD(),ea=rD(),Zi=pT(),Ji=iT(),o0=k8(),HI=YI(),$i=WI(),zI=G9(),O7=j4();LI.AUTH_PROVIDERS=new Map([[o0.AuthMechanism.MONGODB_AWS,new ea.MongoDBAWS],[o0.AuthMechanism.MONGODB_CR,new oa.MongoCR],[o0.AuthMechanism.MONGODB_GSSAPI,new ra.GSSAPI],[o0.AuthMechanism.MONGODB_OIDC,new Zi.MongoDBOIDC],[o0.AuthMechanism.MONGODB_PLAIN,new Ji.Plain],[o0.AuthMechanism.MONGODB_SCRAM_SHA1,new HI.ScramSHA1],[o0.AuthMechanism.MONGODB_SCRAM_SHA256,new HI.ScramSHA256],[o0.AuthMechanism.MONGODB_X509,new $i.X509]]);LI.connect=Xi;LI.prepareHandshakeDocument=jI;LI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];LI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var Gi=["error","close","timeout","parseError"],dQ=new Set(Gi)});var iQ=z((SI)=>{Object.defineProperty(SI,"__esModule",{value:!0});SI.ConnectionPoolClearedEvent=SI.ConnectionCheckedInEvent=SI.ConnectionCheckedOutEvent=SI.ConnectionCheckOutFailedEvent=SI.ConnectionCheckOutStartedEvent=SI.ConnectionClosedEvent=SI.ConnectionReadyEvent=SI.ConnectionCreatedEvent=SI.ConnectionPoolClosedEvent=SI.ConnectionPoolReadyEvent=SI.ConnectionPoolCreatedEvent=SI.ConnectionPoolMonitoringEvent=void 0;var A8=f1();class _0{constructor(Z){this.time=new Date,this.address=Z.address}}SI.ConnectionPoolMonitoringEvent=_0;class RI extends _0{constructor(Z){super(Z);if(this.name=A8.CONNECTION_POOL_CREATED,Z.options.credentials!=null)this.options={...Z.options,credentials:{}};else this.options=Z.options}}SI.ConnectionPoolCreatedEvent=RI;class PI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_READY}}SI.ConnectionPoolReadyEvent=PI;class DI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_CLOSED}}SI.ConnectionPoolClosedEvent=DI;class TI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CREATED,this.connectionId=J.id}}SI.ConnectionCreatedEvent=TI;class II extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_READY,this.connectionId=J.id}}SI.ConnectionReadyEvent=II;class EI extends _0{constructor(Z,J,$,X){super(Z);this.name=A8.CONNECTION_CLOSED,this.connectionId=J.id,this.reason=$,this.serviceId=J.serviceId,this.error=X??null}}SI.ConnectionClosedEvent=EI;class NI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_CHECK_OUT_STARTED}}SI.ConnectionCheckOutStartedEvent=NI;class BI extends _0{constructor(Z,J,$){super(Z);this.name=A8.CONNECTION_CHECK_OUT_FAILED,this.reason=J,this.error=$}}SI.ConnectionCheckOutFailedEvent=BI;class CI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_OUT,this.connectionId=J.id}}SI.ConnectionCheckedOutEvent=CI;class hI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_IN,this.connectionId=J.id}}SI.ConnectionCheckedInEvent=hI;class OI extends _0{constructor(Z,J={}){super(Z);this.name=A8.CONNECTION_POOL_CLEARED,this.serviceId=J.serviceId,this.interruptInUseConnections=J.interruptInUseConnections}}SI.ConnectionPoolClearedEvent=OI});var nQ=z((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.WaitQueueTimeoutError=vI.PoolClearedOnNetworkError=vI.PoolClearedError=vI.PoolClosedError=void 0;var _J=h();class kI extends _J.MongoDriverError{constructor(Z){super("Attempted to check out a connection from closed connection pool");this.address=Z.address}get name(){return"MongoPoolClosedError"}}vI.PoolClosedError=kI;class sQ extends _J.MongoNetworkError{constructor(Z,J){const $=J?J:`Connection pool for ${Z.address} was cleared because another operation failed with: "${Z.serverError?.message}"`;super($);this.address=Z.address,this.addErrorLabel(_J.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}vI.PoolClearedError=sQ;class _I extends sQ{constructor(Z){super(Z,`Connection to ${Z.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}vI.PoolClearedOnNetworkError=_I;class xI extends _J.MongoDriverError{constructor(Z,J){super(Z);this.address=J}get name(){return"MongoWaitQueueTimeoutError"}}vI.WaitQueueTimeoutError=xI});var pI=z((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.ConnectionPool=uI.PoolState=void 0;var b8=import.meta.require("timers"),Z8=f1(),L8=h(),gI=C0(),xJ=_(),bI=aQ(),vJ=G9(),t1=iQ(),S7=nQ(),Ei=IY(),fJ=Symbol("server"),z6=Symbol("connections"),y7=Symbol("pending"),o6=Symbol("checkedOut"),S4=Symbol("minPoolSizeTimer"),k7=Symbol("generation"),mI=Symbol("serviceGenerations"),gJ=Symbol("connectionCounter"),bJ=Symbol("cancellationToken"),V6=Symbol("waitQueue"),mJ=Symbol("cancelled"),uJ=Symbol("metrics"),dJ=Symbol("processingWaitQueue"),w8=Symbol("poolState");uI.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class Y1 extends gI.TypedEventEmitter{constructor(Z,J){super();if(this.options=Object.freeze({...J,connectionType:vJ.Connection,maxPoolSize:J.maxPoolSize??100,minPoolSize:J.minPoolSize??0,maxConnecting:J.maxConnecting??2,maxIdleTimeMS:J.maxIdleTimeMS??0,waitQueueTimeoutMS:J.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:J.minPoolSizeCheckFrequencyMS??100,autoEncrypter:J.autoEncrypter,metadata:J.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new L8.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[w8]=uI.PoolState.paused,this[fJ]=Z,this[z6]=new xJ.List,this[y7]=0,this[o6]=new Set,this[S4]=void 0,this[k7]=0,this[mI]=new Map,this[gJ]=xJ.makeCounter(1),this[bJ]=new gI.CancellationToken,this[bJ].setMaxListeners(Infinity),this[V6]=new xJ.List,this[uJ]=new Ei.ConnectionPoolMetrics,this[dJ]=!1,this.mongoLogger=this[fJ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(Y1.CONNECTION_POOL_CREATED,new t1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[w8]===uI.PoolState.closed}get generation(){return this[k7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[z6].length}get pendingConnectionCount(){return this[y7]}get currentCheckedOutCount(){return this[o6].size}get waitQueueSize(){return this[V6].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[mI]}get serverError(){return this[fJ].description.error}get checkedOutConnections(){return this[o6]}waitQueueErrorMetrics(){return this[uJ].info(this.options.maxPoolSize)}ready(){if(this[w8]!==uI.PoolState.paused)return;this[w8]=uI.PoolState.ready,this.emitAndLog(Y1.CONNECTION_POOL_READY,new t1.ConnectionPoolReadyEvent(this)),b8.clearTimeout(this[S4]),this.ensureMinPoolSize()}checkOut(Z){this.emitAndLog(Y1.CONNECTION_CHECK_OUT_STARTED,new t1.ConnectionCheckOutStartedEvent(this));const J={callback:Z},$=this.options.waitQueueTimeoutMS;if($)J.timer=b8.setTimeout(()=>{J[mJ]=!0,J.timer=void 0,this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"timeout")),J.callback(new S7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))},$);this[V6].push(J),process.nextTick(()=>this.processWaitQueue())}checkIn(Z){if(!this[o6].has(Z))return;const J=this.closed,$=this.connectionIsStale(Z),X=!!(J||$||Z.closed);if(!X)Z.markAvailable(),this[z6].unshift(Z);if(this[o6].delete(Z),this.emitAndLog(Y1.CONNECTION_CHECKED_IN,new t1.ConnectionCheckedInEvent(this,Z)),X){const Y=Z.closed?"error":J?"poolClosed":"stale";this.destroyConnection(Z,Y)}process.nextTick(()=>this.processWaitQueue())}clear(Z={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=Z;if(!Y)throw new L8.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new L8.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const J=Z.interruptInUseConnections??!1,$=this[k7];this[k7]+=1;const X=this[w8]===uI.PoolState.paused;if(this[w8]=uI.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:J}));if(J)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(Z){for(let J of this[o6])if(J.generation<=Z)this.checkIn(J),J.onError(new S7.PoolClearedOnNetworkError(this))}close(Z,J){let $=Z;const X=J??Z;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[bJ].emit("cancel"),typeof this[gJ].return==="function")this[gJ].return(void 0);this[w8]=uI.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),xJ.eachAsync(this[z6].toArray(),(Y,Q)=>{this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[z6].clear(),this.emitAndLog(Y1.CONNECTION_POOL_CLOSED,new t1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(Z,J,$){if(Z){J(void 0,Z,(X,Y)=>{if(X)return this.withReauthentication(X,Z,J,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{J(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,J,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(Z,J,$,X){if(Z instanceof L8.MongoError&&Z.code===L8.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(J,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(Z)}reauthenticate(Z,J,$){const X=Z.authContext;if(!X)return $(new L8.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new L8.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(Z.hello||void 0),K=bI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new L8.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{J(void 0,Z,(G,q)=>{if(G)return $(G);$(void 0,q)})},(G)=>$(G))}clearMinPoolSizeTimer(){const Z=this[S4];if(Z)b8.clearTimeout(Z)}destroyConnection(Z,J){this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Z,J)),process.nextTick(()=>Z.destroy({force:!1}))}connectionIsStale(Z){const J=Z.serviceId;if(this.loadBalanced&&J){const $=J.toHexString(),X=this.serviceGenerations.get($);return Z.generation!==X}return Z.generation!==this[k7]}connectionIsIdle(Z){return!!(this.options.maxIdleTimeMS&&Z.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(Z){const J=this.connectionIsStale(Z),$=this.connectionIsIdle(Z);if(!J&&!$&&!Z.closed)return!1;const X=Z.closed?"error":J?"stale":"idle";return this.destroyConnection(Z,X),!0}createConnection(Z){const J={...this.options,id:this[gJ].next().value,generation:this[k7],cancellationToken:this[bJ]};this[y7]++,this.emitAndLog(Y1.CONNECTION_CREATED,new t1.ConnectionCreatedEvent(this,{id:J.id})),bI.connect(J,($,X)=>{if($||!X){if(this[y7]--,this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,{id:J.id,serviceId:void 0},"error",$)),$ instanceof L8.MongoNetworkError||$ instanceof L8.MongoServerError)$.connectionGeneration=J.generation;Z($??new L8.MongoRuntimeError("Connection creation failed without error"));return}if(this[w8]!==uI.PoolState.ready){this[y7]--,X.destroy({force:!0}),Z(this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this));return}for(let Y of[...Z8.APM_EVENTS,vJ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(vJ.Connection.PINNED,(Q)=>this[uJ].markPinned(Q)),X.on(vJ.Connection.UNPINNED,(Q)=>this[uJ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(Y1.CONNECTION_READY,new t1.ConnectionReadyEvent(this,X)),this[y7]--,Z(void 0,X);return})}ensureMinPoolSize(){const Z=this.options.minPoolSize;if(this[w8]!==uI.PoolState.ready||Z===0)return;if(this[z6].prune((J)=>this.destroyConnectionIfPerished(J)),this.totalConnectionCount<Z&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((J,$)=>{if(J)this[fJ].handleError(J);if(!J&&$)this[z6].push($),process.nextTick(()=>this.processWaitQueue());if(this[w8]===uI.PoolState.ready)b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[dJ])return;this[dJ]=!0;while(this.waitQueueSize){const $=this[V6].first();if(!$){this[V6].shift();continue}if($[mJ]){this[V6].shift();continue}if(this[w8]!==uI.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this);if(this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[z6].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X)){if(this[o6].add(X),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,X)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(void 0,X)}}const{maxPoolSize:Z,maxConnecting:J}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<J&&(Z===0||this.totalConnectionCount<Z)){const $=this[V6].shift();if(!$||$[mJ])continue;this.createConnection((X,Y)=>{if($[mJ]){if(!X&&Y)this[z6].push(Y)}else{if(X)this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[o6].add(Y),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,Y));if($.timer)b8.clearTimeout($.timer);$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[dJ]=!1}}Y1.CONNECTION_POOL_CREATED=Z8.CONNECTION_POOL_CREATED;Y1.CONNECTION_POOL_CLOSED=Z8.CONNECTION_POOL_CLOSED;Y1.CONNECTION_POOL_CLEARED=Z8.CONNECTION_POOL_CLEARED;Y1.CONNECTION_POOL_READY=Z8.CONNECTION_POOL_READY;Y1.CONNECTION_CREATED=Z8.CONNECTION_CREATED;Y1.CONNECTION_READY=Z8.CONNECTION_READY;Y1.CONNECTION_CLOSED=Z8.CONNECTION_CLOSED;Y1.CONNECTION_CHECK_OUT_STARTED=Z8.CONNECTION_CHECK_OUT_STARTED;Y1.CONNECTION_CHECK_OUT_FAILED=Z8.CONNECTION_CHECK_OUT_FAILED;Y1.CONNECTION_CHECKED_OUT=Z8.CONNECTION_CHECKED_OUT;Y1.CONNECTION_CHECKED_IN=Z8.CONNECTION_CHECKED_IN;uI.ConnectionPool=Y1});var eI=z((rI)=>{var A9=function(Z){return Z.s.state===r1.STATE_CLOSED||Z.s.state===r1.STATE_CLOSING},aI=function(Z){Z[m8]?.stop(),Z[m8]=void 0,Z.rttPinger?.close(),Z.rttPinger=void 0,Z[k4].emit("cancel"),Z[U6]?.destroy({force:!0}),Z[U6]=void 0},Ci=function(Z,J){let $=x0.now();Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address));function X(Q){Z[U6]?.destroy({force:!0}),Z[U6]=void 0,Z.emit(M9.Server.SERVER_HEARTBEAT_FAILED,new U9.ServerHeartbeatFailedEvent(Z.address,x0.calculateDurationInMs($),Q));const K=!(Q instanceof V9.MongoError)?new V9.MongoError(Q):Q;if(K.addErrorLabel(V9.MongoErrorLabel.ResetPool),K instanceof V9.MongoNetworkTimeoutError)K.addErrorLabel(V9.MongoErrorLabel.InterruptInUseConnections);Z.emit("resetServer",K),J(Q)}const Y=Z[U6];if(Y&&!Y.closed){const{serverApi:Q,helloOk:K}=Y,G=Z.options.connectTimeoutMS,q=Z.options.heartbeatFrequencyMS,F=Z[pJ].description.topologyVersion,W=F!=null,H={[Q?.version||K?"hello":tQ.LEGACY_HELLO_COMMAND]:1,...W&&F?{maxAwaitTimeMS:q,topologyVersion:hi(F)}:{}},V=W?{socketTimeoutMS:G?G+q:0,exhaustAllowed:!0}:{socketTimeoutMS:G};if(W&&Z.rttPinger==null)Z.rttPinger=new rQ(Z[k4],Object.assign({heartbeatFrequencyMS:Z.options.heartbeatFrequencyMS},Z.connectOptions));Y.command(x0.ns("admin.$cmd"),H,V,(j,U)=>{if(j)return X(j);if(!("isWritablePrimary"in U))U.isWritablePrimary=U[tQ.LEGACY_HELLO_COMMAND];const L=W&&Z.rttPinger?Z.rttPinger.roundTripTime:x0.calculateDurationInMs($);if(Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,L,U)),W&&U.topologyVersion)Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address)),$=x0.now();else Z.rttPinger?.close(),Z.rttPinger=void 0,J(void 0,U)});return}sI.connect(Z.connectOptions,(Q,K)=>{if(Q){Z[U6]=void 0,X(Q);return}if(K){if(K.isMonitoringConnection=!0,A9(Z)){K.destroy({force:!0});return}Z[U6]=K,Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,x0.calculateDurationInMs($),K.hello)),J(void 0,K.hello)}})},iI=function(Z){return(J)=>{if(Z.s.state===y4){process.nextTick(J);return}x7(Z,y4);function $(){if(!A9(Z))x7(Z,_7);J()}Ci(Z,(X,Y)=>{if(X){if(Z[pJ].description.type===r1.ServerType.Unknown)return $()}if(Y&&Y.topologyVersion)e6.setTimeout(()=>{if(!A9(Z))Z[m8]?.wake()},0);$()})}},hi=function(Z){return{processId:Z.processId,counter:cI.Long.isLong(Z.counter)?Z.counter:cI.Long.fromNumber(Z.counter)}},tI=function(Z,J){const $=x0.now();J.cancellationToken=Z[k4];const X=J.heartbeatFrequencyMS;if(Z.closed)return;function Y(G){if(Z.closed){G?.destroy({force:!0});return}if(Z.connection==null)Z.connection=G;Z[j9]=x0.calculateDurationInMs($),Z[m8]=e6.setTimeout(()=>tI(Z,J),X)}const Q=Z.connection;if(Q==null){sI.connect(J,(G,q)=>{if(G){Z.connection=void 0,Z[j9]=0;return}Y(q)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":tQ.LEGACY_HELLO_COMMAND;Q.commandAsync(x0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{Z.connection?.destroy({force:!0}),Z.connection=void 0,Z[j9]=0})};Object.defineProperty(rI,"__esModule",{value:!0});rI.MonitorInterval=rI.RTTPinger=rI.Monitor=void 0;var e6=import.meta.require("timers"),cI=D1(),sI=aQ(),Ni=G9(),tQ=f1(),V9=h(),lI=C0(),x0=_(),r1=p0(),U9=wJ(),M9=oQ(),pJ=Symbol("server"),m8=Symbol("monitorId"),U6=Symbol("connection"),k4=Symbol("cancellationToken"),j9=Symbol("roundTripTime"),_7="idle",y4="monitoring",x7=x0.makeStateMachine({[r1.STATE_CLOSING]:[r1.STATE_CLOSING,_7,r1.STATE_CLOSED],[r1.STATE_CLOSED]:[r1.STATE_CLOSED,y4],[_7]:[_7,y4,r1.STATE_CLOSING],[y4]:[y4,_7,r1.STATE_CLOSING]}),Bi=new Set([r1.STATE_CLOSING,r1.STATE_CLOSED,y4]);class nI extends lI.TypedEventEmitter{get connection(){return this[U6]}constructor(Z,J){super();this[pJ]=Z,this[U6]=void 0,this[k4]=new lI.CancellationToken,this[k4].setMaxListeners(Infinity),this[m8]=void 0,this.s={state:r1.STATE_CLOSED},this.address=Z.description.address,this.options=Object.freeze({connectTimeoutMS:J.connectTimeoutMS??1e4,heartbeatFrequencyMS:J.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:J.minHeartbeatFrequencyMS??500});const $=this[k4],X=Object.assign({id:"<monitor>",generation:Z.pool.generation,connectionType:Ni.Connection,cancellationToken:$,hostAddress:Z.description.hostAddress},J,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==r1.STATE_CLOSED)return;const Z=this.options.heartbeatFrequencyMS,J=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:J,immediate:!0})}requestCheck(){if(Bi.has(this.s.state))return;this[m8]?.wake()}reset(){const Z=this[pJ].description.topologyVersion;if(A9(this)||Z==null)return;x7(this,r1.STATE_CLOSING),aI(this),x7(this,_7);const J=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:$})}close(){if(A9(this))return;x7(this,r1.STATE_CLOSING),aI(this),this.emit("close"),x7(this,r1.STATE_CLOSED)}}rI.Monitor=nI;class rQ{constructor(Z,J){this.connection=void 0,this[k4]=Z,this[j9]=0,this.closed=!1;const $=J.heartbeatFrequencyMS;this[m8]=e6.setTimeout(()=>tI(this,J),$)}get roundTripTime(){return this[j9]}close(){this.closed=!0,e6.clearTimeout(this[m8]),this.connection?.destroy({force:!0}),this.connection=void 0}}rI.RTTPinger=rQ;class cJ{constructor(Z,J={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=x0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=Z,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=J.minHeartbeatFrequencyMS??500,J.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const J=x0.now()-this.lastExecutionEnded;if(J<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(J<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-J);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)e6.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const Z=x0.now(),J=Z-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:Z,timeSinceLastCall:J}}_reschedule(Z){if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.timerId=e6.setTimeout(this._executeAndReschedule,Z||this.heartbeatFrequencyMS)}}rI.MonitorInterval=cJ});var oQ=z((JE)=>{var gi=function(Z,J){if(Z===-1)return J;const $=0.2;return $*J+(1-$)*Z},eQ=function(Z,J){if(Z.loadBalanced)return;if(J instanceof A1.MongoNetworkError&&!(J instanceof A1.MongoNetworkTimeoutError))Z.monitor?.reset();Z.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(Z.description.hostAddress,void 0,{error:J}))},bi=function(Z,J){if(J)return J.inTransaction()||"aggregate"in Z||"find"in Z||"getMore"in Z||"listCollections"in Z||"listIndexes"in Z;return!1},mi=function(Z,J){if(J.serviceId)return J.generation!==Z.serviceGenerations.get(J.serviceId.toHexString());return J.generation!==Z.generation},ui=function(Z,J){const $=J.topologyVersion,X=Z.description.topologyVersion;return $K.compareTopologyVersion(X,$)<0},ZK=function(Z,J){return Z&&Z.inTransaction()&&!JK.isTransactionCommand(J)},ZE=function(Z){return Z.s.options.retryWrites!==!1},di=function(Z,J,$,X,Y){const Q=X?.session;return function K(G,q){if(G==null&&q!=null)return Y(void 0,q);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new A1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof A1.MongoError))return Y(G);if(mi(Z.pool,J))return Y(G);if(G instanceof A1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(ZK(Q,$)&&!G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(A1.MongoErrorLabel.TransientTransactionError);if((ZE(Z.topology)||JK.isTransactionCommand($))&&lJ.supportsRetryableWrites(Z)&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError)}else if((ZE(Z.topology)||JK.isTransactionCommand($))&&A1.needsRetryableWriteLabel(G,lJ.maxWireVersion(Z))&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return Z.handleError(G,J),Y(G)}};Object.defineProperty(JE,"__esModule",{value:!0});JE.Server=void 0;var yi=import.meta.require("util"),ki=G9(),_i=pI(),xi=nQ(),u8=f1(),A1=h(),vi=C0(),JK=hY(),lJ=_(),W1=p0(),fi=eI(),$K=C5(),L9=lJ.makeStateMachine({[W1.STATE_CLOSED]:[W1.STATE_CLOSED,W1.STATE_CONNECTING],[W1.STATE_CONNECTING]:[W1.STATE_CONNECTING,W1.STATE_CLOSING,W1.STATE_CONNECTED,W1.STATE_CLOSED],[W1.STATE_CONNECTED]:[W1.STATE_CONNECTED,W1.STATE_CLOSING,W1.STATE_CLOSED],[W1.STATE_CLOSING]:[W1.STATE_CLOSING,W1.STATE_CLOSED]});class P0 extends vi.TypedEventEmitter{constructor(Z,J,$){super();this.commandAsync=yi.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:J.hostAddress,...$};this.topology=Z,this.pool=new _i.ConnectionPool(this,X),this.s={description:J,options:$,state:W1.STATE_CLOSED,operationCount:0};for(let Y of[...u8.CMAP_EVENTS,...u8.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(ki.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new fi.Monitor(this,this.s.options);for(let Y of u8.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>eQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:gi(this.description.roundTripTime,Y.duration)})),this.s.state===W1.STATE_CONNECTING)L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(Z){this.topology.clusterTime=Z}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;return}get loadBalanced(){return this.topology.description.type===W1.TopologyType.LoadBalanced}connect(){if(this.s.state!==W1.STATE_CLOSED)return;if(L9(this,W1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(Z,J){if(typeof Z==="function")J=Z,Z={force:!1};if(Z=Object.assign({},{force:!1},Z),this.s.state===W1.STATE_CLOSED){if(typeof J==="function")J();return}if(L9(this,W1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(Z,($)=>{if(L9(this,W1.STATE_CLOSED),this.emit("closed"),typeof J==="function")J($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(Z,J,$,X){if(X==null)throw new A1.MongoInvalidArgumentError("Callback must be provided");if(Z.db==null||typeof Z==="string")throw new A1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===W1.STATE_CLOSING||this.s.state===W1.STATE_CLOSED){X(new A1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&bi(J,Q)){this.pool.checkOut((G,q)=>{if(G||q==null){if(X)return X(G);return}Q.pin(q),this.command(Z,J,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,q,F)=>{if(G||!q){if(this.decrementOperationCount(),!G)return F(new A1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof xi.PoolClearedError))this.handleError(G);return F(G)}q.command(Z,J,Y,di(this,q,J,Y,(W,H)=>{this.decrementOperationCount(),F(W,H)}))},X)}handleError(Z,J){if(!(Z instanceof A1.MongoError))return;if(Z.connectionGeneration&&Z.connectionGeneration<this.pool.generation)return;const X=Z instanceof A1.MongoNetworkError&&!(Z instanceof A1.MongoNetworkTimeoutError),Y=A1.isNetworkErrorBeforeHandshake(Z),Q=Z.hasErrorLabel(A1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool),eQ(this,Z);else if(J)this.pool.clear({serviceId:J.serviceId})}else if(A1.isSDAMUnrecoverableError(Z)){if(ui(this,Z)){const K=lJ.maxWireVersion(this)<=7||A1.isNodeShuttingDownError(Z);if(this.loadBalanced&&J&&K)this.pool.clear({serviceId:J.serviceId});if(!this.loadBalanced){if(K)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool);eQ(this,Z),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=u8.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=u8.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=u8.SERVER_HEARTBEAT_FAILED;P0.CONNECT=u8.CONNECT;P0.DESCRIPTION_RECEIVED=u8.DESCRIPTION_RECEIVED;P0.CLOSED=u8.CLOSED;P0.ENDED=u8.ENDED;JE.Server=P0});var QK=z((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.SrvPoller=YE.SrvPollingEvent=void 0;var pi=import.meta.require("dns"),XK=import.meta.require("timers"),ci=h(),li=C0(),XE=_();class YK{constructor(Z){this.srvRecords=Z}hostnames(){return new Set(this.srvRecords.map((Z)=>XE.HostAddress.fromSrvRecord(Z).toString()))}}YE.SrvPollingEvent=YK;class aJ extends li.TypedEventEmitter{constructor(Z){super();if(!Z||!Z.srvHost)throw new ci.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=Z.srvHost,this.srvMaxHosts=Z.srvMaxHosts??0,this.srvServiceName=Z.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1e4,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(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)XK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)XK.clearTimeout(this._timeout);this._timeout=XK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(Z){this.haMode=!1,this.schedule(),this.emit(aJ.SRV_RECORD_DISCOVERY,new YK(Z))}failure(){this.haMode=!0,this.schedule()}async _poll(){const Z=this.generation;let J;try{J=await pi.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(Z!==this.generation)return;const $=[];for(let X of J)if(XE.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}aJ.SRV_RECORD_DISCOVERY="srvRecordDiscovery";YE.SrvPoller=aJ});var AE=z((ME)=>{var zE=function(Z,J,$,X){$=$??{force:!1};for(let Y of D0.LOCAL_SERVER_EVENTS)Z.removeAllListeners(Y);Z.destroy($,()=>{J.emit(K1.SERVER_CLOSED,new Z4.ServerClosedEvent(J.s.id,Z.description.address));for(let Y of D0.SERVER_RELAY_EVENTS)Z.removeAllListeners(Y);if(typeof X==="function")X()})},ni=function(Z){if(Z?.directConnection)return p.TopologyType.Single;if(Z?.replicaSet)return p.TopologyType.ReplicaSetNoPrimary;if(Z?.loadBalanced)return p.TopologyType.LoadBalanced;return p.TopologyType.Unknown},VE=function(Z,J){Z.emit(K1.SERVER_OPENING,new Z4.ServerOpeningEvent(Z.s.id,J.address));const $=new qE.Server(Z,J,Z.s.options);for(let X of D0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>Z.emit(X,Y));return $.on(qE.Server.DESCRIPTION_RECEIVED,(X)=>Z.serverUpdateHandler(X)),$.connect(),$},WE=function(Z,J){if(J&&Z.s.servers.has(J.address)){const $=Z.s.servers.get(J.address);if($){if($.s.description=J,J.error instanceof A6.MongoError&&J.error.hasErrorLabel(A6.MongoErrorLabel.ResetPool)){const X=J.error.hasErrorLabel(A6.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(J.error==null){const X=Z.s.description.type;if(J.isDataBearing||J.type!==p.ServerType.Unknown&&X===p.TopologyType.Single)$.pool.ready()}}}for(let $ of Z.description.servers.values())if(!Z.s.servers.has($.address)){const X=VE(Z,$);Z.s.servers.set($.address,X)}for(let $ of Z.s.servers){const X=$[0];if(Z.description.hasServer(X))continue;if(!Z.s.servers.has(X))continue;const Y=Z.s.servers.get(X);if(Z.s.servers.delete(X),Y)zE(Y,Z)}},UE=function(Z,J){while(Z.length){const $=Z.shift();if(!$)continue;if($.timer)sJ.clearTimeout($.timer);if(!$[qK])$.callback(J)}},HE=function(Z){if(Z.s.state===p.STATE_CLOSED){UE(Z[j6],new A6.MongoTopologyClosedError);return}const J=Z.description.type===p.TopologyType.Sharded,$=Array.from(Z.description.servers.values()),X=Z[j6].length;for(let Y=0;Y<X;++Y){const Q=Z[j6].shift();if(!Q)continue;if(Q[qK])continue;let K;try{const F=Q.serverSelector;K=F?F(Z.description,$):$}catch(F){if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(F);continue}let G;if(K.length===0){Z[j6].push(Q);continue}else if(K.length===1)G=Z.s.servers.get(K[0].address);else{const F=M6.shuffle(K,2),W=Z.s.servers.get(F[0].address),H=Z.s.servers.get(F[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new A6.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",Z.description));return}const q=Q.transaction;if(J&&q&&q.isActive&&G)q.pinServer(G);if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(void 0,G)}if(Z[j6].length>0)for(let[,Y]of Z.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},ti=function(Z,J){const X=Z.servers.get(J.address)?.topologyVersion;return GK.compareTopologyVersion(X,J.topologyVersion)>0};Object.defineProperty(ME,"__esModule",{value:!0});ME.ServerCapabilities=ME.Topology=void 0;var sJ=import.meta.require("timers"),KE=import.meta.require("util"),GE=KQ(),D0=f1(),A6=h(),ii=C0(),w9=y1(),M6=_(),p=p0(),Z4=wJ(),qE=oQ(),GK=C5(),KK=A5(),iJ=QK(),FE=NY(),si=0,R9=M6.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]}),qK=Symbol("cancelled"),j6=Symbol("waitQueue");class K1 extends ii.TypedEventEmitter{constructor(Z,J,$){super();if(this.client=Z,this.selectServerAsync=KE.promisify((q,F,W)=>this.selectServer(q,F,W)),$=$??{hosts:[M6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(GE.DEFAULT_OPTIONS.entries()),...Object.fromEntries(GE.FEATURE_FLAGS.entries())},typeof J==="string")J=[M6.HostAddress.fromString(J)];else if(!Array.isArray(J))J=[J];const X=[];for(let q of J)if(typeof q==="string")X.push(M6.HostAddress.fromString(q));else if(q instanceof M6.HostAddress)X.push(q);else throw new A6.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(q)}`);const Y=ni($),Q=si++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:M6.shuffle(X,$.srvMaxHosts),G=new Map;for(let q of K)G.set(q.toString(),new GK.ServerDescription(q));if(this[j6]=new M6.List,this.s={id:Q,options:$,seedlist:X,state:p.STATE_CLOSED,description:new FE.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(q)=>this.detectShardedTopology(q),detectSrvRecords:(q)=>this.detectSrvRecords(q)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new iJ.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(Z){const J=Z.previousDescription.type,$=Z.newDescription.type,X=J!==p.TopologyType.Sharded&&$===p.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(iJ.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(Z){const J=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(Z,this.s.options.srvMaxHosts),this.s.description===J)return;WE(this),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new FK(this.lastHello())}connect(Z,J){if(typeof Z==="function")J=Z,Z={};if(Z=Z??{},this.s.state===p.STATE_CONNECTED){if(typeof J==="function")J();return}R9(this,p.STATE_CONNECTING),this.emit(K1.TOPOLOGY_OPENING,new Z4.TopologyOpeningEvent(this.s.id)),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,new FE.TopologyDescription(p.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,VE(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new GK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>J?J(Q):this.emit(K1.ERROR,Q),Y=Z.readPreference??w9.ReadPreference.primary;this.selectServer(KK.readPreferenceServerSelector(Y),Z,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(M6.ns("admin.$cmd"),{ping:1},{},(q)=>{if(q)return X(q);R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)});return}R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)})}close(Z,J){if(Z=Z??{force:!1},this.s.state===p.STATE_CLOSED||this.s.state===p.STATE_CLOSING)return J?.();const $=Array.from(this.s.servers.values(),(X)=>{return KE.promisify(zE)(X,this,{force:!!Z?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),R9(this,p.STATE_CLOSING),UE(this[j6],new A6.MongoTopologyClosedError),p.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),R9(this,p.STATE_CLOSED),this.emit(K1.TOPOLOGY_CLOSED,new Z4.TopologyClosedEvent(this.s.id))}).finally(()=>J?.())}selectServer(Z,J,$){let X;if(typeof Z!=="function")if(typeof Z==="string")X=KK.readPreferenceServerSelector(w9.ReadPreference.fromString(Z));else{let F;if(Z instanceof w9.ReadPreference)F=Z;else w9.ReadPreference.translate(J),F=J.readPreference||w9.ReadPreference.primary;X=KK.readPreferenceServerSelector(F)}else X=Z;J=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},J);const Y=this.description.type===p.TopologyType.Sharded,Q=J.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$},q=J.serverSelectionTimeoutMS;if(q)G.timer=sJ.setTimeout(()=>{G[qK]=!0,G.timer=void 0;const F=new A6.MongoServerSelectionError(`Server selection timed out after ${q} ms`,this.description);G.callback(F)},q);this[j6].push(G),HE(this)}serverUpdateHandler(Z){if(!this.s.description.hasServer(Z.address))return;if(ti(this.s.description,Z))return;const J=this.s.description,$=this.s.description.servers.get(Z.address);if(!$)return;const X=Z.$clusterTime;if(X)p._advanceClusterTime(this,X);const Y=$&&$.equals(Z);if(this.s.description=this.s.description.update(Z),this.s.description.compatibilityError){this.emit(K1.ERROR,new A6.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(Z.address);if(Q)this.emit(K1.SERVER_DESCRIPTION_CHANGED,new Z4.ServerDescriptionChangedEvent(this.s.id,Z.address,$,Q))}if(WE(this,Z),this[j6].length>0)HE(this);if(!Y)this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}auth(Z,J){if(typeof Z==="function")J=Z,Z=void 0;if(typeof J==="function")J(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===p.STATE_CONNECTED}isDestroyed(){return this.s.state===p.STATE_CLOSED}lastHello(){const Z=Array.from(this.description.servers.values());if(Z.length===0)return{};return Z.filter((X)=>X.type!==p.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(Z){this.s.clusterTime=Z}}K1.SERVER_OPENING=D0.SERVER_OPENING;K1.SERVER_CLOSED=D0.SERVER_CLOSED;K1.SERVER_DESCRIPTION_CHANGED=D0.SERVER_DESCRIPTION_CHANGED;K1.TOPOLOGY_OPENING=D0.TOPOLOGY_OPENING;K1.TOPOLOGY_CLOSED=D0.TOPOLOGY_CLOSED;K1.TOPOLOGY_DESCRIPTION_CHANGED=D0.TOPOLOGY_DESCRIPTION_CHANGED;K1.ERROR=D0.ERROR;K1.OPEN=D0.OPEN;K1.CONNECT=D0.CONNECT;K1.CLOSE=D0.CLOSE;K1.TIMEOUT=D0.TIMEOUT;ME.Topology=K1;class FK{constructor(Z){this.minWireVersion=Z.minWireVersion||0,this.maxWireVersion=Z.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}}ME.ServerCapabilities=FK});var I7=z((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.MongoClient=EE.ServerApiVersion=void 0;var LE=import.meta.require("util"),oi=D1(),ei=H7(),Zs=JJ(),Js=k8(),wE=KQ(),$s=f1(),Xs=sZ(),RE=h(),Ys=e3(),Qs=C0(),PE=y1(),Ks=A5(),DE=AE(),TE=S5(),WK=_();EE.ServerApiVersion=Object.freeze({v1:"1"});var o1=Symbol("options");class IE extends Qs.TypedEventEmitter{constructor(Z,J){super();this[o1]=wE.parseOptions(Z,this,J),this.mongoLogger=new Ys.MongoLogger(this[o1].mongoLoggerOptions);const $=this;this.s={url:Z,bsonOptions:oi.resolveBSONOptions(this[o1]),namespace:WK.ns("admin"),hasBeenClosed:!1,sessionPool:new TE.ServerSessionPool(this),activeSessions:new Set,get options(){return $[o1]},get readConcern(){return $[o1].readConcern},get writeConcern(){return $[o1].writeConcern},get readPreference(){return $[o1].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[o1]})}get serverApi(){return this[o1].serverApi&&Object.freeze({...this[o1].serverApi})}get monitorCommands(){return this[o1].monitorCommands}set monitorCommands(Z){this[o1].monitorCommands=Z}get autoEncrypter(){return this[o1].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}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const Z=this[o1];if(typeof Z.srvHost==="string"){const $=await wE.resolveSRVRecord(Z);for(let[X,Y]of $.entries())Z.hosts[X]=Y}if(Z.credentials?.mechanism===Js.AuthMechanism.MONGODB_OIDC){const $=Z.credentials?.mechanismProperties?.ALLOWED_HOSTS||Zs.DEFAULT_ALLOWED_HOSTS;if(!Z.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of Z.hosts)if(!WK.hostMatchesWildcards(Y.toHostPort().host,$))throw new RE.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new DE.Topology(this,Z.hosts,Z),this.topology.once(DE.Topology.OPEN,()=>this.emit("open",this));for(let $ of $s.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const J=async()=>{try{await LE.promisify(($)=>this.topology?.connect(Z,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await LE.promisify((X)=>this.autoEncrypter?.init(X))(),await J(),await Z.encrypter.connectInternalClient();else await J();return this}async close(Z=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const J=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(J),this.topology==null)return;const $=Ks.readPreferenceServerSelector(PE.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:q})=>q);if(G.length!==0)await this.db("admin").command({endSessions:G},{readPreference:PE.ReadPreference.primaryPreferred,noResponse:!0}).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,q)=>{K.close({force:Z},(F)=>{if(F)return q(F);const{encrypter:W}=this[o1];if(W)return W.close(this,Z,(H)=>{if(H)return q(H);G()});G()})})}db(Z,J){if(J=J??{},!Z)Z=this.options.dbName;const $=Object.assign({},this[o1],J);return new Xs.Db(this,Z,$)}static async connect(Z,J){return new this(Z,J).connect()}startSession(Z){const J=new TE.ClientSession(this,this.s.sessionPool,{explicit:!0,...Z},this[o1]);return this.s.activeSessions.add(J),J.once("ended",()=>{this.s.activeSessions.delete(J)}),J}async withSession(Z,J){const $={owner:Symbol(),...typeof Z==="object"?Z:{}},X=typeof Z==="function"?Z:J;if(X==null)throw new RE.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new ei.ChangeStream(this,Z,WK.resolveOptions(this,J))}}EE.MongoClient=IE});var H7=z((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.ChangeStream=void 0;var qs=T4(),P8=f1(),Fs=w3(),Ws=sZ(),R8=h(),Hs=I7(),zs=C0(),HK=_(),v7=Symbol("cursorStream"),f7=Symbol("closed"),P9=Symbol("mode"),Vs=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],_4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Us=[P8.RESUME_TOKEN_CHANGED,P8.END,P8.CLOSE],Ms="A change stream document has been received that lacks a resume token (_id).",nJ="ChangeStream is closed";class T0 extends zs.TypedEventEmitter{constructor(Z,J=[],$={}){super();if(this.pipeline=J,this.options={...$},delete this.options.writeConcern,Z instanceof qs.Collection)this.type=_4.COLLECTION;else if(Z instanceof Ws.Db)this.type=_4.DATABASE;else if(Z instanceof Hs.MongoClient)this.type=_4.CLUSTER;else throw new R8.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=Z,this.namespace=Z.s.namespace,!this.options.readPreference&&Z.readPreference)this.options.readPreference=Z.readPreference;this.cursor=this._createChangeStreamCursor($),this[f7]=!1,this[P9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[v7]?.removeAllListeners("data")})}get cursorStream(){return this[v7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async next(){this._setIsIterator();while(!0)try{const Z=await this.cursor.next();return this._processChange(Z??null)}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[f7]||this.cursor.closed}async close(){this[f7]=!0;const Z=this.cursor;try{await Z.close()}finally{this._endStream()}}stream(Z){if(this.closed)throw new R8.MongoChangeStreamError(nJ);return this.streamOptions=Z,this.cursor.stream(Z)}_setIsEmitter(){if(this[P9]==="iterator")throw new R8.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[P9]="emitter"}_setIsIterator(){if(this[P9]==="emitter")throw new R8.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[P9]="iterator"}_createChangeStreamCursor(Z){const J=HK.filterOptions(Z,Vs);if(this.type===_4.CLUSTER)J.allChangesForCluster=!0;const $=[{$changeStream:J},...this.pipeline],X=this.type===_4.CLUSTER?this.parent:this.type===_4.DATABASE?this.parent.client:this.type===_4.COLLECTION?this.parent.client:null;if(X==null)throw new R8.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new Fs.ChangeStreamCursor(X,this.namespace,$,Z);for(let Q of Us)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(T0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(Z){this.emit(T0.ERROR,Z),this.close().catch(()=>null)}_streamEvents(Z){this._setIsEmitter();const J=this[v7]??Z.stream();this[v7]=J,J.on("data",($)=>{try{const X=this._processChange($);this.emit(T0.CHANGE,X)}catch(X){this.emit(T0.ERROR,X)}}),J.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const Z=this[v7];if(Z)["data","close","end","error"].forEach((J)=>Z.removeAllListeners(J)),Z.destroy();this[v7]=void 0}_processChange(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(Z==null)throw new R8.MongoRuntimeError(nJ);if(Z&&!Z._id)throw new R8.MongoChangeStreamError(Ms);return this.cursor.cacheResumeToken(Z._id),this.options.startAtOperationTime=void 0,Z}_processErrorStreamMode(Z){if(this[f7])return;if(R8.isResumableError(Z,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),HK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(Z);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(Z)}async _processErrorIteratorMode(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(!R8.isResumableError(Z,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw Z}await this.cursor.close().catch(()=>null);const J=HK.getTopology(this.parent);try{await J.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),Z}}}T0.RESPONSE=P8.RESPONSE;T0.MORE=P8.MORE;T0.INIT=P8.INIT;T0.CLOSE=P8.CLOSE;T0.CHANGE=P8.CHANGE;T0.END=P8.END;T0.ERROR=P8.ERROR;T0.RESUME_TOKEN_CHANGED=P8.RESUME_TOKEN_CHANGED;BE.ChangeStream=T0});var zK=z((OE)=>{var hE=function(Z){if(Z.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},As=function(Z){if(Z.destroyed)return;if(!Z.s.cursor)return;if(!Z.s.file)return;const J=({error:$,doc:X})=>{if(Z.destroyed)return;if($){Z.emit(E1.ERROR,$);return}if(!X){Z.push(null),Z.s.cursor?.close().then(()=>{Z.emit(E1.CLOSE)},(V)=>{Z.emit(E1.ERROR,V)});return}if(!Z.s.file)return;const Y=Z.s.file.length-Z.s.bytesRead,Q=Z.s.expected++,K=Math.min(Z.s.file.chunkSize,Y);if(X.n>Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${Z.s.file.length} bytes but already read ${Z.s.bytesRead} bytes`));return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(Z.s.bytesRead+=G.byteLength,G.byteLength===0)return Z.push(null);let q=null,F=null;if(Z.s.bytesToSkip!=null)q=Z.s.bytesToSkip,Z.s.bytesToSkip=0;const W=Q===Z.s.expectedEnd-1,H=Z.s.options.end-Z.s.bytesToSkip;if(W&&Z.s.bytesToTrim!=null)F=Z.s.file.chunkSize-Z.s.bytesToTrim;else if(Z.s.options.end&&H<X.data.byteLength)F=H;if(q!=null||F!=null)G=G.slice(q||0,F||G.byteLength);Z.push(G);return};Z.s.cursor.next().then(($)=>J({error:null,doc:$}),($)=>J({error:$,doc:null}))},Ls=function(Z){const J={};if(Z.s.readPreference)J.readPreference=Z.s.readPreference;if(Z.s.options&&Z.s.options.sort)J.sort=Z.s.options.sort;if(Z.s.options&&Z.s.options.skip)J.skip=Z.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return Z.emit(E1.ERROR,X);if(!Y){const G=`FileNotFound: file ${Z.s.filter._id?Z.s.filter._id.toString():Z.s.filter.filename} was not found`,q=new v0.MongoRuntimeError(G);return q.code="ENOENT",Z.emit(E1.ERROR,q)}if(Y.length<=0){Z.push(null);return}if(Z.destroyed){Z.emit(E1.CLOSE);return}try{Z.s.bytesToSkip=Rs(Z,Y,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}const Q={files_id:Y._id};if(Z.s.options&&Z.s.options.start!=null){const K=Math.floor(Z.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(Z.s.cursor=Z.s.chunks.find(Q).sort({n:1}),Z.s.readPreference)Z.s.cursor.withReadPreference(Z.s.readPreference);Z.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),Z.s.file=Y;try{Z.s.bytesToTrim=Ps(Z,Y,Z.s.cursor,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}Z.emit(E1.FILE,Y);return};Z.s.files.findOne(Z.s.filter,J).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},ws=function(Z,J){if(Z.s.file)return J();if(!Z.s.init)Ls(Z),Z.s.init=!0;Z.once("file",()=>{J()})},Rs=function(Z,J,$){if($&&$.start!=null){if($.start>J.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${J.length})`);if($.start<0)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return Z.s.bytesRead=Math.floor($.start/J.chunkSize)*J.chunkSize,Z.s.expected=Math.floor($.start/J.chunkSize),$.start-Z.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},Ps=function(Z,J,$,X){if(X&&X.end!=null){if(X.end>J.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${J.length})`);if(X.start==null||X.start<0)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/J.chunkSize):0;return $.limit(Math.ceil(X.end/J.chunkSize)-Y),Z.s.expectedEnd=Math.ceil(X.end/J.chunkSize),Math.ceil(X.end/J.chunkSize)*J.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(OE,"__esModule",{value:!0});OE.GridFSBucketReadStream=void 0;var js=import.meta.require("stream"),v0=h();class E1 extends js.Readable{constructor(Z,J,$,X,Y){super();this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:Z,expected:0,files:J,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;ws(this,()=>As(this))}start(Z=0){return hE(this),this.s.options.start=Z,this}end(Z=0){return hE(this),this.s.options.end=Z,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(E1.CLOSE)}else if(!this.s.init)this.emit(E1.CLOSE)}}E1.ERROR="error";E1.FILE="file";E1.DATA="data";E1.END="end";E1.CLOSE="close";OE.GridFSBucketReadStream=E1});var MK=z((vE)=>{var UK=function(Z,J,$){if(Z.state.errored)return;if(Z.state.errored=!0,$)return $(J);Z.emit(L6.ERROR,J)},xE=function(Z,J,$){return{_id:new _E.ObjectId,files_id:Z,n:J,data:$}};async function Is(Z){const J={files_id:1,n:1};let $;try{$=await Z.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof x4.MongoError&&Y.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await Z.chunks.createIndex(J,{...Z.writeConcern,background:!0,unique:!0})}var VK=function(Z,J){if(Z.done)return!0;if(Z.state.streamEnd&&Z.state.outstandingRequests===0&&!Z.state.errored){Z.done=!0;const $=Ns(Z.id,Z.length,Z.chunkSizeBytes,Z.filename,Z.options.contentType,Z.options.aliases,Z.options.metadata);if(D9(Z,J))return!1;return Z.files.insertOne($,{writeConcern:Z.writeConcern}).then(()=>{Z.emit(L6.FINISH,$),Z.emit(L6.CLOSE)},(X)=>{return UK(Z,X,J)}),!0}return!1};async function Es(Z){if(await Z.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await Z.files.listIndexes().toArray()}catch(Q){if(Q instanceof x4.MongoError&&Q.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await Z.files.createIndex($,{background:!1});await Is(Z)}var Ns=function(Z,J,$,X,Y,Q,K){const G={_id:Z,length:J,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},Bs=function(Z,J,$,X){if(D9(Z,X))return!1;const Y=Buffer.isBuffer(J)?J:Buffer.from(J,$);if(Z.length+=Y.length,Z.pos+Y.length<Z.chunkSizeBytes)return Y.copy(Z.bufToStore,Z.pos),Z.pos+=Y.length,X&&X(),!0;let Q=Y.length,K=Z.chunkSizeBytes-Z.pos,G=Math.min(K,Y.length),q=0;while(Q>0){const F=Y.length-Q;Y.copy(Z.bufToStore,Z.pos,F,F+G),Z.pos+=G,K-=G;let W;if(K===0){if(W=xE(Z.id,Z.n,Buffer.from(Z.bufToStore)),++Z.state.outstandingRequests,++q,D9(Z,X))return!1;Z.chunks.insertOne(W,{writeConcern:Z.writeConcern}).then(()=>{if(--Z.state.outstandingRequests,--q,!q)Z.emit("drain",W),X&&X(),VK(Z)},(H)=>{return UK(Z,H)}),K=Z.chunkSizeBytes,Z.pos=0,++Z.n}Q-=G,G=Math.min(K,Q)}return!1},yE=function(Z,J){if(Z.bucket.s.checkedIndexes)return J(!1);return Z.bucket.once("index",()=>{J(!0)}),!0},kE=function(Z,J){if(Z.pos===0)return VK(Z,J);++Z.state.outstandingRequests;const $=Buffer.alloc(Z.pos);Z.bufToStore.copy($,0,0,Z.pos);const X=xE(Z.id,Z.n,$);if(D9(Z,J))return!1;return Z.chunks.insertOne(X,{writeConcern:Z.writeConcern}).then(()=>{--Z.state.outstandingRequests,VK(Z)},(Y)=>{return UK(Z,Y)}),!0},D9=function(Z,J){if(Z.state.aborted){if(typeof J==="function")J(new x4.MongoAPIError("Stream has been aborted"));return!0}return!1};Object.defineProperty(vE,"__esModule",{value:!0});vE.GridFSBucketWriteStream=void 0;var Ds=import.meta.require("stream"),_E=D1(),x4=h(),Ts=A0();class L6 extends Ds.Writable{constructor(Z,J,$){super();if($=$??{},this.bucket=Z,this.chunks=Z.s._chunksCollection,this.filename=J,this.files=Z.s._filesCollection,this.options=$,this.writeConcern=Ts.WriteConcern.fromOptions($)||Z.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new _E.ObjectId,this.chunkSizeBytes=$.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,Es(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}write(Z,J,$){const X=typeof J==="function"?void 0:J;return $=typeof J==="function"?J:$,yE(this,()=>Bs(this,Z,X,$))}async abort(){if(this.state.streamEnd)throw new x4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new x4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(Z,J,$){const X=typeof Z==="function"?void 0:Z,Y=typeof J==="function"?void 0:J;if($=typeof Z==="function"?Z:typeof J==="function"?J:$,this.state.streamEnd||D9(this,$))return this;if(this.state.streamEnd=!0,$)this.once(L6.FINISH,(Q)=>{if($)$(void 0,Q)});if(!X)return yE(this,()=>!!kE(this)),this;return this.write(X,Y,()=>{kE(this)}),this}}L6.CLOSE="close";L6.ERROR="error";L6.FINISH="finish";vE.GridFSBucketWriteStream=L6});var pE=z((uE)=>{Object.defineProperty(uE,"__esModule",{value:!0});uE.GridFSBucket=void 0;var gE=h(),Cs=C0(),hs=A0(),bE=zK(),mE=MK(),Os={bucketName:"fs",chunkSizeBytes:261120};class jK extends Cs.TypedEventEmitter{constructor(Z,J){super();this.setMaxListeners(0);const $={...Os,...J,writeConcern:hs.WriteConcern.fromOptions(J)};this.s={db:Z,options:$,_chunksCollection:Z.collection($.bucketName+".chunks"),_filesCollection:Z.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(Z,J){return new mE.GridFSBucketWriteStream(this,Z,J)}openUploadStreamWithId(Z,J,$){return new mE.GridFSBucketWriteStream(this,J,{...$,id:Z})}openDownloadStream(Z,J){return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:Z},J)}async delete(Z){const{deletedCount:J}=await this.s._filesCollection.deleteOne({_id:Z});if(await this.s._chunksCollection.deleteMany({files_id:Z}),J===0)throw new gE.MongoRuntimeError(`File not found for id ${Z}`)}find(Z={},J={}){return this.s._filesCollection.find(Z,J)}openDownloadStreamByName(Z,J){let $={uploadDate:-1},X=void 0;if(J&&J.revision!=null)if(J.revision>=0)$={uploadDate:1},X=J.revision;else X=-J.revision-1;return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:Z},{...J,sort:$,skip:X})}async rename(Z,J){const $={_id:Z},X={$set:{filename:J}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new gE.MongoRuntimeError(`File with id ${Z} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}jK.INDEX="index";uE.GridFSBucket=jK});var o5=z((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.AbstractCursor=P.MongoWriteConcernError=P.MongoUnexpectedServerResponseError=P.MongoTransactionError=P.MongoTopologyClosedError=P.MongoTailableCursorError=P.MongoSystemError=P.MongoServerSelectionError=P.MongoServerError=P.MongoServerClosedError=P.MongoRuntimeError=P.MongoParseError=P.MongoNotConnectedError=P.MongoNetworkTimeoutError=P.MongoNetworkError=P.MongoMissingDependencyError=P.MongoMissingCredentialsError=P.MongoKerberosError=P.MongoInvalidArgumentError=P.MongoGridFSStreamError=P.MongoGridFSChunkError=P.MongoExpiredSessionError=P.MongoError=P.MongoDriverError=P.MongoDecompressionError=P.MongoCursorInUseError=P.MongoCursorExhaustedError=P.MongoCompatibilityError=P.MongoChangeStreamError=P.MongoBatchReExecutionError=P.MongoAzureError=P.MongoAWSError=P.MongoAPIError=P.ChangeStreamCursor=P.MongoBulkWriteError=P.Timestamp=P.ObjectId=P.MinKey=P.MaxKey=P.Long=P.Int32=P.Double=P.Decimal128=P.DBRef=P.Code=P.BSONType=P.BSONSymbol=P.BSONRegExp=P.Binary=P.BSON=void 0;P.ServerClosedEvent=P.ConnectionReadyEvent=P.ConnectionPoolReadyEvent=P.ConnectionPoolMonitoringEvent=P.ConnectionPoolCreatedEvent=P.ConnectionPoolClosedEvent=P.ConnectionPoolClearedEvent=P.ConnectionCreatedEvent=P.ConnectionClosedEvent=P.ConnectionCheckOutStartedEvent=P.ConnectionCheckOutFailedEvent=P.ConnectionCheckedOutEvent=P.ConnectionCheckedInEvent=P.CommandSucceededEvent=P.CommandStartedEvent=P.CommandFailedEvent=P.WriteConcern=P.ReadPreference=P.ReadConcern=P.TopologyType=P.ServerType=P.ReadPreferenceMode=P.ReadConcernLevel=P.ProfilingLevel=P.ReturnDocument=P.ServerApiVersion=P.ExplainVerbosity=P.MongoErrorLabel=P.AutoEncryptionLoggerLevel=P.CURSOR_FLAGS=P.Compressor=P.AuthMechanism=P.GSSAPICanonicalizationValue=P.BatchType=P.UnorderedBulkOperation=P.OrderedBulkOperation=P.MongoClient=P.ListIndexesCursor=P.ListCollectionsCursor=P.GridFSBucketWriteStream=P.GridFSBucketReadStream=P.GridFSBucket=P.FindCursor=P.Db=P.Collection=P.ClientSession=P.ChangeStream=P.CancellationToken=P.AggregationCursor=P.Admin=void 0;P.SrvPollingEvent=P.TopologyOpeningEvent=P.TopologyDescriptionChangedEvent=P.TopologyClosedEvent=P.ServerOpeningEvent=P.ServerHeartbeatSucceededEvent=P.ServerHeartbeatStartedEvent=P.ServerHeartbeatFailedEvent=P.ServerDescriptionChangedEvent=void 0;var Ss=sX();Object.defineProperty(P,"Admin",{enumerable:!0,get:function(){return Ss.Admin}});var ys=MY();Object.defineProperty(P,"OrderedBulkOperation",{enumerable:!0,get:function(){return ys.OrderedBulkOperation}});var ks=jY();Object.defineProperty(P,"UnorderedBulkOperation",{enumerable:!0,get:function(){return ks.UnorderedBulkOperation}});var _s=H7();Object.defineProperty(P,"ChangeStream",{enumerable:!0,get:function(){return _s.ChangeStream}});var xs=T4();Object.defineProperty(P,"Collection",{enumerable:!0,get:function(){return xs.Collection}});var vs=Q6();Object.defineProperty(P,"AbstractCursor",{enumerable:!0,get:function(){return vs.AbstractCursor}});var fs=v5();Object.defineProperty(P,"AggregationCursor",{enumerable:!0,get:function(){return fs.AggregationCursor}});var gs=iY();Object.defineProperty(P,"FindCursor",{enumerable:!0,get:function(){return gs.FindCursor}});var bs=D3();Object.defineProperty(P,"ListCollectionsCursor",{enumerable:!0,get:function(){return bs.ListCollectionsCursor}});var ms=$3();Object.defineProperty(P,"ListIndexesCursor",{enumerable:!0,get:function(){return ms.ListIndexesCursor}});var us=sZ();Object.defineProperty(P,"Db",{enumerable:!0,get:function(){return us.Db}});var ds=pE();Object.defineProperty(P,"GridFSBucket",{enumerable:!0,get:function(){return ds.GridFSBucket}});var ps=zK();Object.defineProperty(P,"GridFSBucketReadStream",{enumerable:!0,get:function(){return ps.GridFSBucketReadStream}});var cs=MK();Object.defineProperty(P,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return cs.GridFSBucketWriteStream}});var ls=I7();Object.defineProperty(P,"MongoClient",{enumerable:!0,get:function(){return ls.MongoClient}});var as=C0();Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return as.CancellationToken}});var is=S5();Object.defineProperty(P,"ClientSession",{enumerable:!0,get:function(){return is.ClientSession}});var ss=D1();Object.defineProperty(P,"BSON",{enumerable:!0,get:function(){return ss.BSON}});var I0=D1();Object.defineProperty(P,"Binary",{enumerable:!0,get:function(){return I0.Binary}});Object.defineProperty(P,"BSONRegExp",{enumerable:!0,get:function(){return I0.BSONRegExp}});Object.defineProperty(P,"BSONSymbol",{enumerable:!0,get:function(){return I0.BSONSymbol}});Object.defineProperty(P,"BSONType",{enumerable:!0,get:function(){return I0.BSONType}});Object.defineProperty(P,"Code",{enumerable:!0,get:function(){return I0.Code}});Object.defineProperty(P,"DBRef",{enumerable:!0,get:function(){return I0.DBRef}});Object.defineProperty(P,"Decimal128",{enumerable:!0,get:function(){return I0.Decimal128}});Object.defineProperty(P,"Double",{enumerable:!0,get:function(){return I0.Double}});Object.defineProperty(P,"Int32",{enumerable:!0,get:function(){return I0.Int32}});Object.defineProperty(P,"Long",{enumerable:!0,get:function(){return I0.Long}});Object.defineProperty(P,"MaxKey",{enumerable:!0,get:function(){return I0.MaxKey}});Object.defineProperty(P,"MinKey",{enumerable:!0,get:function(){return I0.MinKey}});Object.defineProperty(P,"ObjectId",{enumerable:!0,get:function(){return I0.ObjectId}});Object.defineProperty(P,"Timestamp",{enumerable:!0,get:function(){return I0.Timestamp}});var ns=N5();Object.defineProperty(P,"MongoBulkWriteError",{enumerable:!0,get:function(){return ns.MongoBulkWriteError}});var ts=w3();Object.defineProperty(P,"ChangeStreamCursor",{enumerable:!0,get:function(){return ts.ChangeStreamCursor}});var Z1=h();Object.defineProperty(P,"MongoAPIError",{enumerable:!0,get:function(){return Z1.MongoAPIError}});Object.defineProperty(P,"MongoAWSError",{enumerable:!0,get:function(){return Z1.MongoAWSError}});Object.defineProperty(P,"MongoAzureError",{enumerable:!0,get:function(){return Z1.MongoAzureError}});Object.defineProperty(P,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return Z1.MongoBatchReExecutionError}});Object.defineProperty(P,"MongoChangeStreamError",{enumerable:!0,get:function(){return Z1.MongoChangeStreamError}});Object.defineProperty(P,"MongoCompatibilityError",{enumerable:!0,get:function(){return Z1.MongoCompatibilityError}});Object.defineProperty(P,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return Z1.MongoCursorExhaustedError}});Object.defineProperty(P,"MongoCursorInUseError",{enumerable:!0,get:function(){return Z1.MongoCursorInUseError}});Object.defineProperty(P,"MongoDecompressionError",{enumerable:!0,get:function(){return Z1.MongoDecompressionError}});Object.defineProperty(P,"MongoDriverError",{enumerable:!0,get:function(){return Z1.MongoDriverError}});Object.defineProperty(P,"MongoError",{enumerable:!0,get:function(){return Z1.MongoError}});Object.defineProperty(P,"MongoExpiredSessionError",{enumerable:!0,get:function(){return Z1.MongoExpiredSessionError}});Object.defineProperty(P,"MongoGridFSChunkError",{enumerable:!0,get:function(){return Z1.MongoGridFSChunkError}});Object.defineProperty(P,"MongoGridFSStreamError",{enumerable:!0,get:function(){return Z1.MongoGridFSStreamError}});Object.defineProperty(P,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return Z1.MongoInvalidArgumentError}});Object.defineProperty(P,"MongoKerberosError",{enumerable:!0,get:function(){return Z1.MongoKerberosError}});Object.defineProperty(P,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return Z1.MongoMissingCredentialsError}});Object.defineProperty(P,"MongoMissingDependencyError",{enumerable:!0,get:function(){return Z1.MongoMissingDependencyError}});Object.defineProperty(P,"MongoNetworkError",{enumerable:!0,get:function(){return Z1.MongoNetworkError}});Object.defineProperty(P,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return Z1.MongoNetworkTimeoutError}});Object.defineProperty(P,"MongoNotConnectedError",{enumerable:!0,get:function(){return Z1.MongoNotConnectedError}});Object.defineProperty(P,"MongoParseError",{enumerable:!0,get:function(){return Z1.MongoParseError}});Object.defineProperty(P,"MongoRuntimeError",{enumerable:!0,get:function(){return Z1.MongoRuntimeError}});Object.defineProperty(P,"MongoServerClosedError",{enumerable:!0,get:function(){return Z1.MongoServerClosedError}});Object.defineProperty(P,"MongoServerError",{enumerable:!0,get:function(){return Z1.MongoServerError}});Object.defineProperty(P,"MongoServerSelectionError",{enumerable:!0,get:function(){return Z1.MongoServerSelectionError}});Object.defineProperty(P,"MongoSystemError",{enumerable:!0,get:function(){return Z1.MongoSystemError}});Object.defineProperty(P,"MongoTailableCursorError",{enumerable:!0,get:function(){return Z1.MongoTailableCursorError}});Object.defineProperty(P,"MongoTopologyClosedError",{enumerable:!0,get:function(){return Z1.MongoTopologyClosedError}});Object.defineProperty(P,"MongoTransactionError",{enumerable:!0,get:function(){return Z1.MongoTransactionError}});Object.defineProperty(P,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return Z1.MongoUnexpectedServerResponseError}});Object.defineProperty(P,"MongoWriteConcernError",{enumerable:!0,get:function(){return Z1.MongoWriteConcernError}});var rs=N5();Object.defineProperty(P,"BatchType",{enumerable:!0,get:function(){return rs.BatchType}});var os=eZ();Object.defineProperty(P,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return os.GSSAPICanonicalizationValue}});var es=k8();Object.defineProperty(P,"AuthMechanism",{enumerable:!0,get:function(){return es.AuthMechanism}});var Zn=jJ();Object.defineProperty(P,"Compressor",{enumerable:!0,get:function(){return Zn.Compressor}});var Jn=Q6();Object.defineProperty(P,"CURSOR_FLAGS",{enumerable:!0,get:function(){return Jn.CURSOR_FLAGS}});var $n=j7();Object.defineProperty(P,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return $n.AutoEncryptionLoggerLevel}});var Xn=h();Object.defineProperty(P,"MongoErrorLabel",{enumerable:!0,get:function(){return Xn.MongoErrorLabel}});var Yn=kX();Object.defineProperty(P,"ExplainVerbosity",{enumerable:!0,get:function(){return Yn.ExplainVerbosity}});var Qn=I7();Object.defineProperty(P,"ServerApiVersion",{enumerable:!0,get:function(){return Qn.ServerApiVersion}});var Kn=G3();Object.defineProperty(P,"ReturnDocument",{enumerable:!0,get:function(){return Kn.ReturnDocument}});var Gn=T3();Object.defineProperty(P,"ProfilingLevel",{enumerable:!0,get:function(){return Gn.ProfilingLevel}});var qn=d0();Object.defineProperty(P,"ReadConcernLevel",{enumerable:!0,get:function(){return qn.ReadConcernLevel}});var Fn=y1();Object.defineProperty(P,"ReadPreferenceMode",{enumerable:!0,get:function(){return Fn.ReadPreferenceMode}});var cE=p0();Object.defineProperty(P,"ServerType",{enumerable:!0,get:function(){return cE.ServerType}});Object.defineProperty(P,"TopologyType",{enumerable:!0,get:function(){return cE.TopologyType}});var Wn=d0();Object.defineProperty(P,"ReadConcern",{enumerable:!0,get:function(){return Wn.ReadConcern}});var Hn=y1();Object.defineProperty(P,"ReadPreference",{enumerable:!0,get:function(){return Hn.ReadPreference}});var zn=A0();Object.defineProperty(P,"WriteConcern",{enumerable:!0,get:function(){return zn.WriteConcern}});var AK=VQ();Object.defineProperty(P,"CommandFailedEvent",{enumerable:!0,get:function(){return AK.CommandFailedEvent}});Object.defineProperty(P,"CommandStartedEvent",{enumerable:!0,get:function(){return AK.CommandStartedEvent}});Object.defineProperty(P,"CommandSucceededEvent",{enumerable:!0,get:function(){return AK.CommandSucceededEvent}});var J8=iQ();Object.defineProperty(P,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedInEvent}});Object.defineProperty(P,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedOutEvent}});Object.defineProperty(P,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutFailedEvent}});Object.defineProperty(P,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutStartedEvent}});Object.defineProperty(P,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionClosedEvent}});Object.defineProperty(P,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionCreatedEvent}});Object.defineProperty(P,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClearedEvent}});Object.defineProperty(P,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClosedEvent}});Object.defineProperty(P,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolCreatedEvent}});Object.defineProperty(P,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolMonitoringEvent}});Object.defineProperty(P,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolReadyEvent}});Object.defineProperty(P,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionReadyEvent}});var w6=wJ();Object.defineProperty(P,"ServerClosedEvent",{enumerable:!0,get:function(){return w6.ServerClosedEvent}});Object.defineProperty(P,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.ServerDescriptionChangedEvent}});Object.defineProperty(P,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatFailedEvent}});Object.defineProperty(P,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatStartedEvent}});Object.defineProperty(P,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatSucceededEvent}});Object.defineProperty(P,"ServerOpeningEvent",{enumerable:!0,get:function(){return w6.ServerOpeningEvent}});Object.defineProperty(P,"TopologyClosedEvent",{enumerable:!0,get:function(){return w6.TopologyClosedEvent}});Object.defineProperty(P,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.TopologyDescriptionChangedEvent}});Object.defineProperty(P,"TopologyOpeningEvent",{enumerable:!0,get:function(){return w6.TopologyOpeningEvent}});var Vn=QK();Object.defineProperty(P,"SrvPollingEvent",{enumerable:!0,get:function(){return Vn.SrvPollingEvent}})});import{createRequire as qh} from"module";var CK=X4($$(),1);class f4{static list(Z){return CK.default({},{argv:Z.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(Z,J){if(Z.length>J.length)throw new Error("Too many arguments");const $={};for(let X=0;X<J.length;X++){const Y=J[X];$[Y.name]=Z[X]}try{return $}catch(X){throw X}}static requireArguments(Z){let J="";if(Object.keys(Z).forEach((X,Y,Q)=>{if(Z[X]===void 0){if(J+=X,Y<Q.length-1)J+=", "}}),J!=="")throw new Error(`Argument ${J} is required`)}}class R6{constructor(Z){var J;this.opts={},this.args={},this.name=Z.name,this.alias=(J=Z.alias)!==null&&J!==void 0?J:[],this.description=Z.description,this.summary=Z.summary,this.arguments=Z.arguments,this.options=Z.options}}import*as I9 from"tty";var{env:P6={},argv:OK=[],platform:HN=""}=typeof process==="undefined"?{}:process,zN="NO_COLOR"in P6||OK.includes("--no-color"),VN="FORCE_COLOR"in P6||OK.includes("--color"),UN=HN==="win32",SK=P6.TERM==="dumb",MN=I9&&I9.isatty&&I9.isatty(1)&&P6.TERM&&!SK,jN="CI"in P6&&(("GITHUB_ACTIONS"in P6)||("GITLAB_CI"in P6)||("CIRCLECI"in P6)),AN=!zN&&(VN||UN&&!SK||MN||jN),yK=(Z,J,$,X,Y=J.substring(0,Z)+X,Q=J.substring(Z+$.length),K=Q.indexOf($))=>Y+(K<0?Q:yK(K,Q,$,X)),LN=(Z,J,$,X,Y)=>Z<0?$+J+X:$+yK(Z,J,X,Y)+X,wN=(Z,J,$=Z,X=Z.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?LN((""+Y).indexOf(J,X),Y,Z,J,$):"",d=(Z,J,$)=>wN(`\x1B[${Z}m`,`\x1B[${J}m`,$),hK={reset:d(0,0),bold:d(1,22,"\x1B[22m\x1B[1m"),dim:d(2,22,"\x1B[22m\x1B[2m"),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49),blackBright:d(90,39),redBright:d(91,39),greenBright:d(92,39),yellowBright:d(93,39),blueBright:d(94,39),magentaBright:d(95,39),cyanBright:d(96,39),whiteBright:d(97,39),bgBlackBright:d(100,49),bgRedBright:d(101,49),bgGreenBright:d(102,49),bgYellowBright:d(103,49),bgBlueBright:d(104,49),bgMagentaBright:d(105,49),bgCyanBright:d(106,49),bgWhiteBright:d(107,49)},RN=({useColor:Z=AN}={})=>Z?hK:Object.keys(hK).reduce((J,$)=>({...J,[$]:String}),{}),{reset:Sn,bold:yn,dim:kn,italic:_n,underline:xn,inverse:vn,hidden:fn,strikethrough:gn,black:bn,red:kK,green:_K,yellow:xK,blue:vK,magenta:mn,cyan:un,white:dn,gray:fK,bgBlack:pn,bgRed:gK,bgGreen:bK,bgYellow:mK,bgBlue:uK,bgMagenta:cn,bgCyan:ln,bgWhite:an,blackBright:sn,redBright:nn,greenBright:tn,yellowBright:rn,blueBright:on,magentaBright:en,cyanBright:Zt,whiteBright:Jt,bgBlackBright:$t,bgRedBright:Xt,bgGreenBright:Yt,bgYellowBright:Qt,bgBlueBright:Kt,bgMagentaBright:Gt,bgCyanBright:qt,bgWhiteBright:Ft}=RN();class $1{static red(Z){return kK(Z)}static green(Z){return _K(Z)}static blue(Z){return vK(Z)}static gray(Z){return fK(Z)}static yellow(Z){return xK(Z)}static bgRed(Z){return gK(Z)}static bgGreen(Z){return bK(Z)}static bgBlue(Z){return uK(Z)}static bgYellow(Z){return mK(Z)}}class X${constructor(Z){this.commands=[],this.name=Z}getCommands(){return this.commands.filter((Z)=>Z.name!=="")}getCommand(Z){var J;return(J=this.commands.find(($)=>$.name===Z))!==null&&J!==void 0?J:this.commands.find(($)=>$.alias.includes(Z))}createCommand(Z){this.addHelpFlag(Z),this.commands.push(Z)}findDuplicate(){const Z=new Set,J=[],$=[],X=[];return this.commands.forEach((Y)=>{if(Z.size===Z.add(Y.name).size)J.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((F)=>{if(K.size===K.add(F.name).size)Q.push(F.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],q=new Set;if(Y.options.forEach((F)=>{if(q.size===q.add(F.flag).size)G.push(F.flag);if(F.type==="boolean"&&F.shorthand&&q.size===q.add(F.shorthand).size)G.push(F.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:J.length>0||$.length>0||X.length>0,commands:J,arguments:$,options:X}}addHelpFlag(Z){Z.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var uG=X4(mG(),1);class U$ extends uG.default{constructor(Z){super(Z)}static termsWidth(...Z){return Math.max(...Z)}}class l8 extends U${constructor(Z=30){super({colWidths:[Z,process.stdout.columns-Z],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class Y8{static rootHelp(Z,J){this.outputRoot+=$1.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${Z.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("COMMANDS"),this.outputRoot+=this.br();const $=l8.termsWidth(Y8.commandTermLength(Z.getCommands()),Y8.optionTermLength(J)),X=new l8($+this.separatorLength+Math.round($/2));Z.getCommands().forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("OPTIONS"),this.outputRoot+=this.br(),J.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(Z,J){if(this.output+=$1.yellow("USAGE"),this.output+=this.br(),this.output+=` ${Z.name} ${J.name}`,J.options.length)this.output+=" [options]";J.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("ARGUMENTS"),this.output+=this.br();const $=l8.termsWidth(Y8.argumentTermLength(J.arguments),Y8.optionTermLength(J.options)),X=new l8($+this.separatorLength+Math.round($/2));J.arguments.forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("OPTIONS"),this.output+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));if(J.options.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),J.alias.length)this.output+=this.br(),this.output+=$1.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${$1.green(J.alias.join(","))}`;console.log(this.output)}static br(Z=1){let J="";for(let $=0;$<Z;$++)J+="\n";return J}static commandTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}static optionTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.flag.length)},0)}static argumentTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}}Y8.separatorLength=10;Y8.outputRoot="";Y8.output="";var M$=X4($$(),1);class O9{static convert(Z){const J={};for(let $=0;$<Z.length;$++){const X=Z[$];if(J[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)J[X.shorthand]=X.flag}return J}static parseRoot(Z,J){try{const $=this.convert(J);return M$.default($,{argv:Z.slice(2)})}catch($){throw $}}static parse(Z,J,$){try{const X=this.convert($),Y=M$.default(X,{argv:Z.slice(3)});return{args:f4.parse(Y._,J),opts:Y}}catch(X){throw X}}}var Gh=X4(eH(),1);class Zz{constructor(Z,J){if(J)this.version=J;else this.version=this.packageVersion();this.command=new X$(Z)}packageVersion(){const Z=qh(import.meta.url),{version:J}=Z("../package.json");return J}register(Z){this.command.createCommand(Z)}run(Z){try{const J=this.command.findDuplicate();if(J.isDuplicate){if(J.commands.length)console.error($1.red("[ERROR] Duplicate commands")),console.error(J.commands);if(J.arguments.length)console.error($1.red("[ERROR] Duplicate arguments")),console.error(J.arguments);if(J.options.length)console.error($1.red("[ERROR] Duplicate options")),console.error(J.options);return}if(f4.list(Z).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(O9.parseRoot(Z,Q)["--version"])return console.log(this.version);return Y8.rootHelp(this.command,Q)}let X=this.command.getCommand(Z[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=O9.parse(Z,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return Y8.commandHelp(this.command,X);f4.requireArguments(X.args),X.handle()}catch(J){if(J instanceof Error)return console.error($1.red(`[ERROR] ${J.message}`));return console.error(J)}}}function n9(Z,J,$){$(new G4(404))}class g0 extends Error{constructor(Z){super(Z.message);Object.setPrototypeOf(this,new.target.prototype),this.code=Z.code,this.status=Z.status,this.message=Z.message,this.errors=Z.errors,Error.captureStackTrace(this)}}var $5=(Z)=>{if(Z instanceof g0)return Z.isOperational;return!1};function t9(Z,J,$,X){if(Z instanceof g0&&$5(Z)){const Q={name:Z.name,code:Z.code,status:Z.status,message:Z.message};if(Z.errors)Q.errors=Z.errors;return $.status(Z.code).json(Q),X(Z)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(Z)}function q4(Z){if(typeof Z==="number")return Jz.find((J)=>{return J.code===Z});else return Jz.find((J)=>{return J.status===Z})}var Jz=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class G4 extends g0{constructor(Z,J){const $=q4(Z);if(!$)throw new Error(`Error codeStatus "${Z}" not found`);const X=$;if(J)X.errors=J;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var QN=X4(o5(),1);import k61 from"fs";import x61 from"path";import g61 from"fs";import m61 from"path";import p61 from"fs";var LK=(Z)=>Z[0].toUpperCase()+Z.slice(1);var T9=(Z)=>{return Z.replace(/(?:^\w|[A-Z]|\b\w)/g,function(J,$){return $===0?J.toLowerCase():J.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var v4=(Z)=>LK(T9(Z));var O1=(Z)=>Z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import g7 from"fs";import aE from"path";class tJ extends R6{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(g7.existsSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`)){console.error($1.red("Command directory is exists"));return}g7.mkdirSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`,{recursive:!0});const Z=g7.readFileSync(aE.resolve($4,"./command/index.command.ts")).toString().replace("[name]",O1(this.args.name)).replace("NewCommand",`${v4(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.command.ts`,Z);const J=g7.readFileSync(aE.resolve($4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${v4(this.args.name)}Command`).replace(/newCommand/g,`${T9(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/console/commands/${O1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${O1(this.args.name)}/index.spec.ts`,"has been created")}}import d8 from"fs";import rJ from"path";class oJ extends R6{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(d8.existsSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`)){console.error($1.red("Middleware directory is exists"));return}if(d8.mkdirSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}}class wK{command;constructor(Z){this.command=Z}async register(){this.command.register(new tJ),this.command.register(new oJ)}}class RK{Z;session;constructor(Z){this.adapter=Z}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(Z){return this.adapter.database(Z),this}collection(Z){return this.adapter.collection(Z),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(Z,J,$){await this.adapter.createIndex(Z,J,$)}async createCollection(Z,J){await this.adapter.createCollection(Z,J)}async dropCollection(Z,J){await this.adapter.dropCollection(Z,J)}async updateSchema(Z,J){await this.adapter.updateSchema(Z,J)}async create(Z,J){return await this.adapter.create(Z,J)}async createMany(Z,J){return await this.adapter.createMany(Z,J)}async retrieveAll(Z,J){return await this.adapter.retrieveAll(Z,J)}async retrieve(Z,J){return await this.adapter.retrieve(Z,J)}async update(Z,J,$){return await this.adapter.update(Z,J,$)}async updateMany(Z,J,$){return await this.adapter.updateMany(Z,J,$)}async delete(Z,J){return await this.adapter.delete(Z,J)}async deleteMany(Z,J){return await this.adapter.deleteMany(Z,J)}async deleteAll(Z){return await this.adapter.deleteAll(Z)}async aggregate(Z,J,$){return await this.adapter.aggregate(Z,J,$)}}var m7=X4(o5(),1);function iE(Z){const J=Object.prototype.toString.call(Z);if(Z instanceof Date||typeof Z==="object"&&J==="[object Date]")return new Z.constructor(+Z);else if(typeof Z==="number"||J==="[object Number]"||typeof Z==="string"||J==="[object String]")return new Date(Z);else return new Date(NaN)}function sE(Z){return Z instanceof Date||typeof Z==="object"&&Object.prototype.toString.call(Z)==="[object Date]"}function eJ(Z){if(!sE(Z)&&typeof Z!=="number")return!1;const J=iE(Z);return!isNaN(Number(J))}var b7=X4(o5(),1);class V0{db;constructor(Z){this.db=Z}async createUnique(Z,J){await this.db.createIndex(Z,J,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(Z,J){await this.db.createIndex(Z,J,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(Z){return(await this.db.listCollections()).some(function($){return $.name===Z})}static stringToObjectId(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.stringToObjectId(J)});else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{const X=V0.stringToObjectId(Z[$]);return J[$]=X,J},{});else if(typeof Z==="string"&&b7.ObjectId.isValid(Z)&&Z===new b7.ObjectId(Z).toString())return new b7.ObjectId(Z);return Z}static objectIdToString(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.objectIdToString(J)});else if(typeof Z==="object"&&b7.ObjectId.isValid(Z))return Z.toString();else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{if(b7.ObjectId.isValid(Z)||eJ(Z))return Z.toString();else{const X=V0.objectIdToString(Z[$]);return J[$]=X,J}},{});return Z}}function nE(Z=1){if(typeof Z==="string")return parseInt(Z);return Z}function tE(Z=10){if(typeof Z==="string")return parseInt(Z);return Z}function Pn(Z,J){return(nE(Z)-1)*tE(J)}function Dn(Z){return Z}function Tn(Z="",J=[]){const $=oE(rE(Z));return eE($,J)}function rE(Z){return Z.split(" ").join().split(",").filter((J)=>J)}function oE(Z,J=1){const $={};for(let X=0;X<Z.length;X++)$[`${Z[X].trim()}`]=J;return $}function eE(Z,J){for(let $=0;$<J.length;$++)Z[`${J[$]}`]=0;return Z}function In(Z){const J={};if(Z)Z.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),J[$.trim()]=-1;else J[$.trim()]=1});return J}var L1={page:nE,limit:tE,skip:Pn,sort:In,fields:Tn,filter:Dn,filterExludeFields:eE,convertStringToArray:rE,convertArrayToObject:oE};class PK{J;client;_database;_collection;session;constructor(Z,J){this.databaseName=J;const $={};this.client=new m7.MongoClient(Z,$),this.database(J)}async open(){await this.client.connect()}async close(){await this.client.close()}database(Z,J){return this._database=this.client.db(Z,J),this}collection(Z,J){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(Z,J),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(Z,J,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(Z,J,$)}async updateSchema(Z,J){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:Z,validator:{$jsonSchema:J}})}async createCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.createCollection(Z,J)}async dropCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(Z,J)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{insertedId:(await this._collection.insertOne(Z,$)).insertedId.toString()}}async createMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.insertMany(Z,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=this._collection.find(V0.stringToObjectId(Z.filter??{}),$).limit(L1.limit(Z.pageSize)).skip(L1.skip(L1.page(Z.page),L1.limit(Z.pageSize)));if(Z.sort&&L1.sort(Z.sort))X.sort(L1.sort(Z.sort));if(L1.fields(Z.fields,Z.excludeFields))X.project(L1.fields(Z.fields,Z.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(Z.filter??{},$);return{data:V0.objectIdToString(Y),pagination:{page:L1.page(Z.page),pageCount:Math.ceil(Q/L1.limit(Z.pageSize)),pageSize:L1.limit(Z.pageSize),totalDocument:Q}}}async retrieve(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.findOne({_id:new m7.ObjectId(Z)},$);return V0.objectIdToString(X)}async update(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new m7.ObjectId(Z)},{$set:V0.stringToObjectId(J)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(Z,{$set:V0.stringToObjectId(J)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteOne({_id:new m7.ObjectId(Z)},$)).deletedCount}}async deleteMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteMany({_id:{$in:V0.stringToObjectId(Z)}},$)).deletedCount}}async deleteAll(Z){if(!this._collection)throw new Error("Collection not found");const J=Z;return{deletedCount:(await this._collection.deleteMany({},J)).deletedCount}}async aggregate(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...Z,{$skip:(L1.page(J.page)-1)*L1.limit(J.pageSize)},{$limit:L1.limit(J.pageSize)}],X);if(J.sort&&L1.sort(J.sort))Y.sort(L1.sort(J.sort));if(L1.fields(J.fields,J.excludeFields))Y.project(L1.fields(J.fields,J.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...Z,{$count:"totalDocument"}],X).toArray(),q=G.length?G[0].totalDocument:0;return{data:V0.objectIdToString(Q),pagination:{page:L1.page(J.page),pageCount:Math.ceil(q/L1.limit(J.pageSize)),pageSize:L1.limit(J.pageSize),totalDocument:q}}}}function En(Z,J){J.errors={},(Z.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],J.errors=Y})}function Nn(Z,J){if(Object.keys(Z.keyPattern).length===1)J.errors={[Object.keys(Z.keyPattern)[0]]:[`The ${Object.keys(Z.keyPattern)[0]} is exists.`]};else{const $=Object.keys(Z.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(Z.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(Z.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});J.errors=X}}class DK extends g0{constructor(Z){const J=q4(400);if(Z.code===121)En(Z,J);else if(Z.code===11000)Nn(Z,J);super(J);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}function TK(){return(Z,J,$,X)=>{if(Z instanceof ZN)throw new JN(Z);X(Z)}}class $8{static dbConnection;static async open(Z,J="api_test"){$8.dbConnection=new $N(Z,J),await $8.dbConnection.open()}static async close(){await $8.dbConnection.close()}static async createCollections(Z){const J=new XN($8.dbConnection);for(let $=0;$<Z.length;$++)for(let X=0;X<Z[$].length;X++){if(!await J.isExists(Z[$][X].collection))console.info(`[schema] ${Z[$][X].collection} - create collection`),await $8.dbConnection.createCollection(Z[$][X].collection);console.info(`[schema] ${Z[$][X].collection} - update schema`),await $8.dbConnection.updateSchema(Z[$][X].collection,Z[$][X].schema);for(let Y of Z[$][X].unique)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUnique(Z[$][X].collection,IK.convertArrayToObject(Y,-1));for(let Y of Z[$][X].uniqueIfExists)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUniqueIfNotNull(Z[$][X].collection,IK.convertArrayToObject(Y,-1))}}static async reset(){const Z=await $8.dbConnection.listCollections();for(let J of Z)await $8.dbConnection.collection(J.name).deleteAll()}static async retrieve(Z,J){return await $8.dbConnection.collection(Z).retrieve(J)}static async retrieveAll(Z,J={}){return await $8.dbConnection.collection(Z).retrieveAll(J)}}class EK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(Z){return this.modelCount=Z,this}sequence(Z){return this.modelSequence=Z,this}state(Z){return this.modelState=Z,this}useSequence(){const Z=[];for(let J=0;J<this.modelCount;J++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[J%this.modelSequence.length];Z.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return Z}useState(Z){return Object.assign(Object.assign({},Z),this.modelState)}make(Z=1){if(this.count(Z),this.modelCount===1)return this.makeOne();return this.makeMany(Z)}makeOne(){return this.useState(this.definition())}makeMany(Z){return this.count(Z),this.useSequence()}}class YN{app;server=null;constructor(Z){this.app=Z}listen(Z,J){return new Promise(($,X)=>{if(J)this.server=this.app.listen(Z,J).once("listening",$).once("error",X);else this.server=this.app.listen(Z).once("listening",$).once("error",X)})}async start(Z,J){await this.listen(Z,J)}stop(){this.server?.close(),this.server=null}get host(){const Z=this.server?.address();if(Z?.address==="0.0.0.0"||Z?.address==="::")return"localhost";else return Z?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var $4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),U51=R6,M51=wK,j51=RK,$N=PK,XN=V0,IK=L1,ZN=QN.MongoServerError,JN=DK,A51={ApiError:G4,BaseError:g0,isTrustedError:$5,getHttpError:q4,mongodbErrorHandlerMiddleware:TK,errorHandlerMiddleware:t9,invalidPathMiddleware:n9};export{$4 as stubDir,$8 as DatabaseTestUtil,YN as BaseServer,ZN as BaseMongoServerError,JN as BaseMongoErrorHandler,IK as BaseMongoDBQuerystring,XN as BaseMongoDBHelper,$N as BaseMongoDBConnection,EK as BaseFactory,A51 as BaseErrorHandler,j51 as BaseDatabaseConnection,M51 as BaseConsoleKernel,U51 as BaseConsoleCommand,Zz as BaseConsoleCli};
16
+ Filtered results for: ${this.inputValue?this.inputValue:o8.gray("Enter something to filter")}\n`}renderOption(Z,J,$){let X;if(J.disabled)X=Z===$?o8.gray().underline(J.title):o8.strikethrough().gray(J.title);else X=Z===$?o8.cyan().underline(J.title):J.title;return(J.selected?o8.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((J)=>J.selected).map((J)=>J.title).join(", ");const Z=[o8.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)Z.push(o8.yellow(this.warn));return Z.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n2.hide);super.render();let Z=[xH.symbol(this.done,this.aborted),o8.bold(this.msg),xH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)Z+=o8.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;Z+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+Z),this.clear=_H(Z,this.out.columns)}}fH.exports=vH});var cH=z((tr,pH)=>{var bH=w1(),r2=t8(),{style:mH,clear:o2}=K8(),{erase:e2,cursor:uH}=P1();class dH extends r2{constructor(Z={}){super(Z);this.msg=Z.message,this.value=Z.initial,this.initialValue=!!Z.initial,this.yesMsg=Z.yes||"yes",this.yesOption=Z.yesOption||"(Y/n)",this.noMsg=Z.no||"no",this.noOption=Z.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(Z,J){if(Z.toLowerCase()==="y")return this.value=!0,this.submit();if(Z.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(uH.hide);else this.out.write(o2(this.outputText,this.out.columns));super.render(),this.outputText=[mH.symbol(this.done,this.aborted),bH.bold(this.msg),mH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:bH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(e2.line+uH.to(0)+this.outputText)}}pH.exports=dH});var aH=z((rr,lH)=>{lH.exports={TextPrompt:BW(),SelectPrompt:yW(),TogglePrompt:fW(),DatePrompt:LH(),NumberPrompt:TH(),MultiselectPrompt:g$(),AutocompletePrompt:kH(),AutocompleteMultiselectPrompt:gH(),ConfirmPrompt:cH()}});var sH=z((iH)=>{var C8=function(Z,J,$={}){return new Promise((X,Y)=>{const Q=new Zh[Z](J),K=$.onAbort||s9,G=$.onSubmit||s9,q=$.onExit||s9;Q.on("state",J.onState||s9),Q.on("submit",(F)=>X(G(F))),Q.on("exit",(F)=>X(q(F))),Q.on("abort",(F)=>Y(K(F)))})},j0=iH,Zh=aH(),s9=(Z)=>Z;j0.text=(Z)=>C8("TextPrompt",Z);j0.password=(Z)=>{return Z.style="password",j0.text(Z)};j0.invisible=(Z)=>{return Z.style="invisible",j0.text(Z)};j0.number=(Z)=>C8("NumberPrompt",Z);j0.date=(Z)=>C8("DatePrompt",Z);j0.confirm=(Z)=>C8("ConfirmPrompt",Z);j0.list=(Z)=>{const J=Z.separator||",";return C8("TextPrompt",Z,{onSubmit:($)=>$.split(J).map((X)=>X.trim())})};j0.toggle=(Z)=>C8("TogglePrompt",Z);j0.select=(Z)=>C8("SelectPrompt",Z);j0.multiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("MultiselectPrompt",Z,{onAbort:J,onSubmit:J})};j0.autocompleteMultiselect=(Z)=>{Z.choices=[].concat(Z.choices||[]);const J=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return C8("AutocompleteMultiselectPrompt",Z,{onAbort:J,onSubmit:J})};var Jh=(Z,J)=>Promise.resolve(J.filter(($)=>$.title.slice(0,Z.length).toLowerCase()===Z.toLowerCase()));j0.autocomplete=(Z)=>{return Z.suggest=Z.suggest||Jh,Z.choices=[].concat(Z.choices||[]),C8("AutocompletePrompt",Z)}});var rH=z((er,tH)=>{async function E6(Z=[],{onSubmit:J=nH,onCancel:$=nH}={}){const X={},Y=E6._override||{};Z=[].concat(Z);let Q,K,G,q,F,W;const H=async(V,j,U=!1)=>{if(!U&&V.validate&&V.validate(j)!==!0)return;return V.format?await V.format(j,X):j};for(K of Z){if({name:q,type:F}=K,typeof F==="function")F=await F(Q,{...X},K),K.type=F;if(!F)continue;for(let V in K){if($h.includes(V))continue;let j=K[V];K[V]=typeof j==="function"?await j(Q,{...X},W):j}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:q,type:F}=K,u$[F]===void 0)throw new Error(`prompt type (${F}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[q]=Q;continue}}try{Q=E6._injected?Xh(E6._injected,K.initial):await u$[F](K),X[q]=Q=await H(K,Q,!0),G=await J(K,Q,X)}catch(V){G=!await $(K,X)}if(G)return X}return X}var Xh=function(Z,J){const $=Z.shift();if($ instanceof Error)throw $;return $===void 0?J:$},Yh=function(Z){E6._injected=(E6._injected||[]).concat(Z)},Qh=function(Z){E6._override=Object.assign({},Z)},u$=sH(),$h=["suggest","format","onState","validate","onRender","type"],nH=()=>{};tH.exports=Object.assign(E6,{prompt:E6,prompts:u$,inject:Yh,override:Qh})});var eH=z((Zo,oH)=>{var Kh=function(Z){Z=(Array.isArray(Z)?Z:Z.split(".")).map(Number);let J=0,$=process.versions.node.split(".").map(Number);for(;J<Z.length;J++){if($[J]>Z[J])return!1;if(Z[J]>$[J])return!0}return!1};oH.exports=Kh("8.6.0")?QW():rH()});var h=z((hz)=>{var Fh=function(Z){return"errors"in Z&&Array.isArray(Z.errors)},Wh=function(Z){return Z[Rz]===!0},Hh=function(Z){const J=Object.assign({},Z);if(J.ok===0)J.ok=1,delete J.errmsg,delete J.code,delete J.codeName;return J},zh=function(Z,J){if(Z instanceof F4)return!0;if(Z instanceof h8){if((J>=9||Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError))&&!Z.hasErrorLabel(hz.MongoErrorLabel.HandshakeError))return!1}if(Z instanceof l$)return $z.has(Z.result?.code??Z.code??0);if(Z instanceof h8&&typeof Z.code==="number")return $z.has(Z.code);if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Vh=function(Z){return Z.hasErrorLabel(hz.MongoErrorLabel.RetryableWriteError)},Uh=function(Z){if(typeof Z.code==="number"?Bz.has(Z.code):!1)return!0;if(Z instanceof F4)return!0;if(hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message))return!0;if(hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message))return!0;return!1},Cz=function(Z){if(typeof Z.code==="number")return Mh.has(Z.code);return hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(Z.message)||hz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(Z.message)},Lh=function(Z){if(typeof Z.code==="number")return jh.has(Z.code);if(Cz(Z))return!1;return hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(Z.message)},wh=function(Z){return!!(typeof Z.code==="number"&&Ah.has(Z.code))},Rh=function(Z){if(Z instanceof p$||Z==null)return!0;return Cz(Z)||Lh(Z)},Ph=function(Z){return!!(Z instanceof F4&&Z.message.match(/timed out/))},Dh=function(Z,J){if(Z==null||!(Z instanceof h8))return!1;if(Z instanceof F4)return!0;if(J!=null&&J>=9){if(Z.code===hz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return Z.hasErrorLabel(hz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof Z.code==="number")return hz.GET_MORE_RESUMABLE_CODES.has(Z.code);return!1};Object.defineProperty(hz,"__esModule",{value:!0});hz.isResumableError=hz.isNetworkTimeoutError=hz.isSDAMUnrecoverableError=hz.isNodeShuttingDownError=hz.isRetryableReadError=hz.isRetryableWriteError=hz.needsRetryableWriteLabel=hz.MongoWriteConcernError=hz.MongoServerSelectionError=hz.MongoSystemError=hz.MongoMissingDependencyError=hz.MongoMissingCredentialsError=hz.MongoCompatibilityError=hz.MongoInvalidArgumentError=hz.MongoParseError=hz.MongoNetworkTimeoutError=hz.MongoNetworkError=hz.isNetworkErrorBeforeHandshake=hz.MongoTopologyClosedError=hz.MongoCursorExhaustedError=hz.MongoServerClosedError=hz.MongoCursorInUseError=hz.MongoUnexpectedServerResponseError=hz.MongoGridFSChunkError=hz.MongoGridFSStreamError=hz.MongoTailableCursorError=hz.MongoChangeStreamError=hz.MongoAzureError=hz.MongoAWSError=hz.MongoKerberosError=hz.MongoExpiredSessionError=hz.MongoTransactionError=hz.MongoNotConnectedError=hz.MongoDecompressionError=hz.MongoBatchReExecutionError=hz.MongoRuntimeError=hz.MongoAPIError=hz.MongoDriverError=hz.MongoServerError=hz.MongoError=hz.MongoErrorLabel=hz.GET_MORE_RESUMABLE_CODES=hz.MONGODB_ERROR_CODES=hz.NODE_IS_RECOVERING_ERROR_MESSAGE=hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var X5=Symbol("errorLabels");hz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");hz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");hz.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");hz.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,Reauthenticate:391});hz.GET_MORE_RESUMABLE_CODES=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.ExceededTimeLimit,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,hz.MONGODB_ERROR_CODES.StaleShardVersion,hz.MONGODB_ERROR_CODES.StaleEpoch,hz.MONGODB_ERROR_CODES.StaleConfig,hz.MONGODB_ERROR_CODES.RetryChangeStream,hz.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,hz.MONGODB_ERROR_CODES.CursorNotFound]);hz.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h8 extends Error{constructor(Z){super(h8.buildErrorMessage(Z));if(Z instanceof Error)this.cause=Z;this[X5]=new Set}static buildErrorMessage(Z){if(typeof Z==="string")return Z;if(Fh(Z)&&Z.message.length===0)return Z.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":Z.errors.map(({message:J})=>J).join(", ");return Z.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(Z){return this[X5].has(Z)}addErrorLabel(Z){this[X5].add(Z)}get errorLabels(){return Array.from(this[X5])}}hz.MongoError=h8;class d$ extends h8{constructor(Z){super(Z.message||Z.errmsg||Z.$err||"n/a");if(Z.errorLabels)this[X5]=new Set(Z.errorLabels);for(let J in Z)if(J!=="errorLabels"&&J!=="errmsg"&&J!=="message")this[J]=Z[J]}get name(){return"MongoServerError"}}hz.MongoServerError=d$;class Q5 extends h8{constructor(Z){super(Z)}get name(){return"MongoDriverError"}}hz.MongoDriverError=Q5;class G0 extends Q5{constructor(Z){super(Z)}get name(){return"MongoAPIError"}}hz.MongoAPIError=G0;class O8 extends Q5{constructor(Z){super(Z)}get name(){return"MongoRuntimeError"}}hz.MongoRuntimeError=O8;class Xz extends G0{constructor(Z="This batch has already been executed, create new batch to execute"){super(Z)}get name(){return"MongoBatchReExecutionError"}}hz.MongoBatchReExecutionError=Xz;class Yz extends O8{constructor(Z){super(Z)}get name(){return"MongoDecompressionError"}}hz.MongoDecompressionError=Yz;class Qz extends G0{constructor(Z){super(Z)}get name(){return"MongoNotConnectedError"}}hz.MongoNotConnectedError=Qz;class Kz extends G0{constructor(Z){super(Z)}get name(){return"MongoTransactionError"}}hz.MongoTransactionError=Kz;class Gz extends G0{constructor(Z="Cannot use a session that has ended"){super(Z)}get name(){return"MongoExpiredSessionError"}}hz.MongoExpiredSessionError=Gz;class qz extends O8{constructor(Z){super(Z)}get name(){return"MongoKerberosError"}}hz.MongoKerberosError=qz;class Fz extends O8{constructor(Z){super(Z)}get name(){return"MongoAWSError"}}hz.MongoAWSError=Fz;class Wz extends O8{constructor(Z){super(Z)}get name(){return"MongoAzureError"}}hz.MongoAzureError=Wz;class Hz extends O8{constructor(Z){super(Z)}get name(){return"MongoChangeStreamError"}}hz.MongoChangeStreamError=Hz;class zz extends G0{constructor(Z="Tailable cursor does not support this operation"){super(Z)}get name(){return"MongoTailableCursorError"}}hz.MongoTailableCursorError=zz;class Vz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSStreamError"}}hz.MongoGridFSStreamError=Vz;class Uz extends O8{constructor(Z){super(Z)}get name(){return"MongoGridFSChunkError"}}hz.MongoGridFSChunkError=Uz;class Mz extends O8{constructor(Z){super(Z)}get name(){return"MongoUnexpectedServerResponseError"}}hz.MongoUnexpectedServerResponseError=Mz;class jz extends G0{constructor(Z="Cursor is already initialized"){super(Z)}get name(){return"MongoCursorInUseError"}}hz.MongoCursorInUseError=jz;class Az extends G0{constructor(Z="Server is closed"){super(Z)}get name(){return"MongoServerClosedError"}}hz.MongoServerClosedError=Az;class Lz extends G0{constructor(Z){super(Z||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}hz.MongoCursorExhaustedError=Lz;class wz extends G0{constructor(Z="Topology is closed"){super(Z)}get name(){return"MongoTopologyClosedError"}}hz.MongoTopologyClosedError=wz;var Rz=Symbol("beforeHandshake");hz.isNetworkErrorBeforeHandshake=Wh;class F4 extends h8{constructor(Z,J){super(Z);if(J&&typeof J.beforeHandshake==="boolean")this[Rz]=J.beforeHandshake}get name(){return"MongoNetworkError"}}hz.MongoNetworkError=F4;class Pz extends F4{constructor(Z,J){super(Z,J)}get name(){return"MongoNetworkTimeoutError"}}hz.MongoNetworkTimeoutError=Pz;class p$ extends Q5{constructor(Z){super(Z)}get name(){return"MongoParseError"}}hz.MongoParseError=p$;class Dz extends G0{constructor(Z){super(Z)}get name(){return"MongoInvalidArgumentError"}}hz.MongoInvalidArgumentError=Dz;class Tz extends G0{constructor(Z){super(Z)}get name(){return"MongoCompatibilityError"}}hz.MongoCompatibilityError=Tz;class Iz extends G0{constructor(Z){super(Z)}get name(){return"MongoMissingCredentialsError"}}hz.MongoMissingCredentialsError=Iz;class Ez extends G0{constructor(Z,{cause:J}={}){super(Z);if(J)this.cause=J}get name(){return"MongoMissingDependencyError"}}hz.MongoMissingDependencyError=Ez;class c$ extends h8{constructor(Z,J){if(J&&J.error)super(J.error.message||J.error);else super(Z);if(J)this.reason=J;this.code=J.error?.code}get name(){return"MongoSystemError"}}hz.MongoSystemError=c$;class Nz extends c${constructor(Z,J){super(Z,J)}get name(){return"MongoServerSelectionError"}}hz.MongoServerSelectionError=Nz;class l$ extends d${constructor(Z,J){if(J&&Array.isArray(J.errorLabels))Z.errorLabels=J.errorLabels;super(Z);if(this.errInfo=Z.errInfo,J!=null)this.result=Hh(J)}get name(){return"MongoWriteConcernError"}}hz.MongoWriteConcernError=l$;var Bz=new Set([hz.MONGODB_ERROR_CODES.HostUnreachable,hz.MONGODB_ERROR_CODES.HostNotFound,hz.MONGODB_ERROR_CODES.NetworkTimeout,hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.SocketException,hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),$z=new Set([...Bz,hz.MONGODB_ERROR_CODES.ExceededTimeLimit]);hz.needsRetryableWriteLabel=zh;hz.isRetryableWriteError=Vh;hz.isRetryableReadError=Uh;var Mh=new Set([hz.MONGODB_ERROR_CODES.ShutdownInProgress,hz.MONGODB_ERROR_CODES.PrimarySteppedDown,hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,hz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),jh=new Set([hz.MONGODB_ERROR_CODES.NotWritablePrimary,hz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,hz.MONGODB_ERROR_CODES.LegacyNotPrimary]),Ah=new Set([hz.MONGODB_ERROR_CODES.InterruptedAtShutdown,hz.MONGODB_ERROR_CODES.ShutdownInProgress]);hz.isNodeShuttingDownError=wh;hz.isSDAMUnrecoverableError=Rh;hz.isNetworkTimeoutError=Ph;hz.isResumableError=Dh});var H5=z(($S)=>{var iz=function(Z){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(Z))},B6=function(Z){return Object.prototype.toString.call(Z)==="[object Uint8Array]"},l4=function(Z){return Object.prototype.toString.call(Z)==="[object RegExp]"},sz=function(Z){return Object.prototype.toString.call(Z)==="[object Map]"},a4=function(Z){return Object.prototype.toString.call(Z)==="[object Date]"},HO=function(Z){return N6.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},VO=function(){const{navigator:Z}=globalThis;return typeof Z==="object"&&Z.product==="ReactNative"},UO=function(Z){if(Z<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${Z}`);return n4.fromNumberArray(Array.from({length:Z},()=>Math.floor(Math.random()*256)))},HV=function(Z){return Z!=null&&typeof Z==="object"&&"$id"in Z&&Z.$id!=null&&"$ref"in Z&&typeof Z.$ref==="string"&&(!("$db"in Z)||("$db"in Z)&&typeof Z.$db==="string")},pz=function(Z){return!isNaN(parseInt(Z,10))},hO=function(Z){const J=M.fromNumber(1e9);let $=M.fromNumber(0);if(!Z.parts[0]&&!Z.parts[1]&&!Z.parts[2]&&!Z.parts[3])return{quotient:Z,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(Z.parts[X],0)),Z.parts[X]=$.div(J).low,$=$.modulo(J);return{quotient:Z,rem:$}},OO=function(Z,J){if(!Z&&!J)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=Z.shiftRightUnsigned(32),X=new M(Z.getLowBits(),0),Y=J.shiftRightUnsigned(32),Q=new M(J.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const q=X.multiply(Y);let F=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(q).add(F.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),F=G.shiftLeft(32).add(new M(F.getLowBits(),0)),{high:K,low:F}},SO=function(Z,J){const $=Z.high>>>0,X=J.high>>>0;if($<X)return!0;else if($===X){const Y=Z.low>>>0,Q=J.low>>>0;if(Y<Q)return!0}return!1},G8=function(Z,J){throw new R(`"${Z}" is not a valid Decimal128 string - ${J}`)},ZZ=function(Z,J,$){let X=5;if(Array.isArray(Z))for(let Y=0;Y<Z.length;Y++)X+=cz(Y.toString(),Z[Y],J,!0,$);else{if(typeof Z?.toBSON==="function")Z=Z.toBSON();for(let Y of Object.keys(Z))X+=cz(Y,Z[Y],J,!1,$)}return X},cz=function(Z,J,$=!1,X=!1,Y=!1){if(typeof J?.toBSON==="function")J=J.toBSON();switch(typeof J){case"string":return 1+A.utf8ByteLength(Z)+1+4+A.utf8ByteLength(J)+1;case"number":if(Math.floor(J)===J&&J>=oz&&J<=rz)if(J>=qZ&&J<=GZ)return(Z!=null?A.utf8ByteLength(Z)+1:0)+5;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;case"undefined":if(X||!Y)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;return 0;case"boolean":return(Z!=null?A.utf8ByteLength(Z)+1:0)+2;case"object":if(J!=null&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(J==null||J._bsontype==="MinKey"||J._bsontype==="MaxKey")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1;else if(J._bsontype==="ObjectId")return(Z!=null?A.utf8ByteLength(Z)+1:0)+13;else if(J instanceof Date||a4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(ArrayBuffer.isView(J)||J instanceof ArrayBuffer||iz(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+6+J.byteLength;else if(J._bsontype==="Long"||J._bsontype==="Double"||J._bsontype==="Timestamp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+9;else if(J._bsontype==="Decimal128")return(Z!=null?A.utf8ByteLength(Z)+1:0)+17;else if(J._bsontype==="Code")if(J.scope!=null&&Object.keys(J.scope).length>0)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+4+A.utf8ByteLength(J.code.toString())+1+ZZ(J.scope,$,Y);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.code.toString())+1;else if(J._bsontype==="Binary"){const Q=J;if(Q.sub_type===s.SUBTYPE_BYTE_ARRAY)return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1+4);else return(Z!=null?A.utf8ByteLength(Z)+1:0)+(Q.position+1+4+1)}else if(J._bsontype==="Symbol")return(Z!=null?A.utf8ByteLength(Z)+1:0)+A.utf8ByteLength(J.value)+4+1+1;else if(J._bsontype==="DBRef"){const Q=Object.assign({$ref:J.collection,$id:J.oid},J.fields);if(J.db!=null)Q.$db=J.db;return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+ZZ(Q,$,Y)}else if(J instanceof RegExp||l4(J))return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.source)+1+(J.global?1:0)+(J.ignoreCase?1:0)+(J.multiline?1:0)+1;else if(J._bsontype==="BSONRegExp")return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+A.utf8ByteLength(J.pattern)+1+A.utf8ByteLength(J.options)+1;else return(Z!=null?A.utf8ByteLength(Z)+1:0)+ZZ(J,$,Y)+1;case"function":if($)return(Z!=null?A.utf8ByteLength(Z)+1:0)+1+4+A.utf8ByteLength(J.toString())+1}return 0},kO=function(Z){return Z.split("").sort().join("")},VV=function(Z,J,$){let X=0;for(let Y=J;Y<$;Y+=1){const Q=Z[Y];if(X){if((Q&vO)!==pO)return!1;X-=1}else if(Q&xO)if((Q&fO)===mO)X=1;else if((Q&gO)===uO)X=2;else if((Q&bO)===dO)X=3;else return!1}return!X},UV=function(Z,J,$){J=J==null?{}:J;const X=J&&J.index?J.index:0,Y=Z[X]|Z[X+1]<<8|Z[X+2]<<16|Z[X+3]<<24;if(Y<5)throw new R(`bson size must be >= 5, is ${Y}`);if(J.allowObjectSmallerThanBufferSize&&Z.length<Y)throw new R(`buffer length ${Z.length} must be >= bson size ${Y}`);if(!J.allowObjectSmallerThanBufferSize&&Z.length!==Y)throw new R(`buffer length ${Z.length} must === bson size ${Y}`);if(Y+X>Z.byteLength)throw new R(`(bson size ${Y} + options.index ${X} must be <= buffer length ${Z.byteLength})`);if(Z[X+Y-1]!==0)throw new R("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return JZ(Z,X,J,$)},JZ=function(Z,J,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,q=$.promoteLongs??!0,F=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!F)throw new R("Must either request bigint or Long for int64 deserialization");if(W&&!q)throw new R("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let V=!0,j;const U=new Set,L=H.utf8;if(typeof L==="boolean")j=L;else{V=!1;const y=Object.keys(L).map(function(N){return L[N]});if(y.length===0)throw new R("UTF-8 validation setting cannot be empty");if(typeof y[0]!=="boolean")throw new R("Invalid UTF-8 validation option, must specify boolean values");if(j=y[0],!y.every((N)=>N===j))throw new R("Invalid UTF-8 validation option - keys must be all true or all false")}if(!V)for(let y of Object.keys(L))U.add(y);const D=J;if(Z.length<5)throw new R("corrupt bson message < 5 bytes long");const B=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(B<5||B>Z.length)throw new R("corrupt bson message");const w=X?[]:{};let T=0;const f=!1;let N1=X?!1:null;const p8=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);while(!f){const y=Z[J++];if(y===0)break;let N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.byteLength)throw new R("Bad BSON Document: illegal CString");const G1=X?T++:A.toUTF8(Z,J,N);let u=!0;if(V||U.has(G1))u=j;else u=!j;if(N1!==!1&&G1[0]==="$")N1=aO.test(G1);let v;if(J=N+1,y===ez){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");v=e9(Z,J,J+C-1,u),J=J+C}else if(y===JV){const C=A.allocate(12);C.set(Z.subarray(J,J+12)),v=new V1(C),J=J+12}else if(y===s4&&F===!1)v=new S6(Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24);else if(y===s4)v=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;else if(y===$Z&&F===!1)v=new O6(p8.getFloat64(J,!0)),J=J+8;else if(y===$Z)v=p8.getFloat64(J,!0),J=J+8;else if(y===XV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;v=new Date(new M(C,k).toNumber())}else if(y===$V){if(Z[J]!==0&&Z[J]!==1)throw new R("illegal boolean type value");v=Z[J++]===1}else if(y===UX){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;if(k<=0||k>Z.length-J)throw new R("bad embedded document length in bson");if(Q)v=Z.slice(J,J+k);else{let H1=$;if(!V)H1={...$,validation:{utf8:u}};v=JZ(Z,C,H1,!1)}J=J+k}else if(y===ZV){const C=J,k=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24;let H1=$;const U0=J+k;if(Y&&Y[G1])H1={...$,raw:!0};if(!V)H1={...H1,validation:{utf8:u}};if(v=JZ(Z,C,H1,!0),J=J+k,Z[J-1]!==0)throw new R("invalid array terminator byte");if(J!==U0)throw new R("corrupted array bson")}else if(y===qO)v=void 0;else if(y===jX)v=null;else if(y===LX){const C=q5.fromUint8Array(Z.subarray(J,J+8)),k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,H1=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,U0=new M(k,H1);if(W)v=C.getBigInt64(0,!0);else if(q&&F===!0)v=U0.lessThanOrEqual(cO)&&U0.greaterThanOrEqual(lO)?U0.toNumber():U0;else v=U0}else if(y===GV){const C=A.allocate(16);C.set(Z.subarray(J,J+16),0),J=J+16,v=new Z0(C)}else if(y===MX){let C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;const k=C,H1=Z[J++];if(C<0)throw new R("Negative binary type element size found");if(C>Z.byteLength)throw new R("Binary type size larger than document size");if(Z.slice!=null){if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}if(G&&F)v=A.toLocalBufferType(Z.slice(J,J+C));else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}else{const U0=A.allocate(C);if(H1===s.SUBTYPE_BYTE_ARRAY){if(C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24,C<0)throw new R("Negative binary type element size found for subtype 0x02");if(C>k-4)throw new R("Binary type with subtype 0x02 contains too long binary size");if(C<k-4)throw new R("Binary type with subtype 0x02 contains too short binary size")}for(N=0;N<C;N++)U0[N]=Z[J+N];if(G&&F)v=U0;else if(v=new s(Z.slice(J,J+C),H1),H1===YZ&&S1.isValid(v))v=v.toUUID()}J=J+C}else if(y===XZ&&K===!1){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1;const H1=new Array(k.length);for(N=0;N<k.length;N++)switch(k[N]){case"m":H1[N]="m";break;case"s":H1[N]="g";break;case"i":H1[N]="i";break}v=new RegExp(C,H1.join(""))}else if(y===XZ&&K===!0){N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const C=A.toUTF8(Z,J,N);J=N+1,N=J;while(Z[N]!==0&&N<Z.length)N++;if(N>=Z.length)throw new R("Bad BSON Document: illegal CString");const k=A.toUTF8(Z,J,N);J=N+1,v=new u0(C,k)}else if(y===YV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=F?k:new U4(k),J=J+C}else if(y===KV){const C=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24),k=Z[J++]+Z[J++]*(1<<8)+Z[J++]*(1<<16)+Z[J++]*(1<<24);v=new m0({i:C,t:k})}else if(y===qV)v=new V4;else if(y===FV)v=new z4;else if(y===AX){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");const k=e9(Z,J,J+C-1,u);v=new Z6(k),J=J+C}else if(y===QV){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<13)throw new R("code_w_scope total size shorter minimum expected length");const k=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(k<=0||k>Z.length-J||Z[J+k-1]!==0)throw new R("bad string length in bson");const H1=e9(Z,J,J+k-1,u);J=J+k;const U0=J,Z$=Z[J]|Z[J+1]<<8|Z[J+2]<<16|Z[J+3]<<24,KN=JZ(Z,U0,$,!1);if(J=J+Z$,C<8+Z$+k)throw new R("code_w_scope total size is too short, truncating scope");if(C>8+Z$+k)throw new R("code_w_scope total size is too long, clips outer document");v=new Z6(H1,KN)}else if(y===FO){const C=Z[J++]|Z[J++]<<8|Z[J++]<<16|Z[J++]<<24;if(C<=0||C>Z.length-J||Z[J+C-1]!==0)throw new R("bad string length in bson");if(H!=null&&H.utf8){if(!VV(Z,J,J+C-1))throw new R("Invalid UTF-8 string in BSON document")}const k=A.toUTF8(Z,J,J+C-1);J=J+C;const H1=A.allocate(12);H1.set(Z.subarray(J,J+12),0);const U0=new V1(H1);J=J+12,v=new y8(k,U0)}else throw new R(`Detected unknown BSON type ${y.toString(16)} for fieldname "${G1}"`);if(G1==="__proto__")Object.defineProperty(w,G1,{value:v,writable:!0,enumerable:!0,configurable:!0});else w[G1]=v}if(B!==J-D){if(X)throw new R("corrupt array bson");throw new R("corrupt object bson")}if(!N1)return w;if(HV(w)){const y=Object.assign({},w);return delete y.$ref,delete y.$id,delete y.$db,new y8(w.$ref,w.$id,w.$db,y)}return w},e9=function(Z,J,$,X){const Y=A.toUTF8(Z,J,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!VV(Z,J,$))throw new R("Invalid UTF-8 string in BSON document");break}}return Y},s$=function(Z,J,$,X){Z[X++]=ez;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y+1,Z[X-1]=0;const Q=A.encodeUTF8Into(Z,$,X+4);return Z[X+3]=Q+1>>24&255,Z[X+2]=Q+1>>16&255,Z[X+1]=Q+1>>8&255,Z[X]=Q+1&255,X=X+4+Q,Z[X++]=0,X},n$=function(Z,J,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=GZ&&$>=qZ?s4:$Z;if(Q===s4)t4.setInt32(0,$,!0);else t4.setFloat64(0,$,!0);const K=Q===s4?iO:KZ;Z[X++]=Q;const G=A.encodeUTF8Into(Z,J,X);return X=X+G,Z[X++]=0,Z.set(K,X),X+=K.byteLength,X},t$=function(Z,J,$,X){Z[X++]=LX;const Y=A.encodeUTF8Into(Z,J,X);return X+=Y,Z[X++]=0,t4.setBigInt64(0,$,!0),Z.set(KZ,X),X+=KZ.byteLength,X},G5=function(Z,J,$,X){Z[X++]=jX;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},r$=function(Z,J,$,X){Z[X++]=$V;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$?1:0,X},o$=function(Z,J,$,X){Z[X++]=XV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=G&255,Z[X++]=G>>8&255,Z[X++]=G>>16&255,Z[X++]=G>>24&255,X},e$=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.source&&$.source.match(QZ)!=null)throw new R("value "+$.source+" must not contain null bytes");if(X=X+A.encodeUTF8Into(Z,$.source,X),Z[X++]=0,$.ignoreCase)Z[X++]=105;if($.global)Z[X++]=115;if($.multiline)Z[X++]=109;return Z[X++]=0,X},ZX=function(Z,J,$,X){Z[X++]=XZ;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,$.pattern.match(QZ)!=null)throw new R("pattern "+$.pattern+" must not contain null bytes");X=X+A.encodeUTF8Into(Z,$.pattern,X),Z[X++]=0;const Q=$.options.split("").sort().join("");return X=X+A.encodeUTF8Into(Z,Q,X),Z[X++]=0,X},JX=function(Z,J,$,X){if($===null)Z[X++]=jX;else if($._bsontype==="MinKey")Z[X++]=qV;else Z[X++]=FV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,X},$X=function(Z,J,$,X){Z[X++]=JV;const Y=A.encodeUTF8Into(Z,J,X);if(X=X+Y,Z[X++]=0,B6($.id))Z.set($.id.subarray(0,12),X);else throw new R("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X+12},XX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.length;return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=WO,Z.set($,X),X=X+Q,X},YX=function(Z,J,$,X,Y,Q,K,G,q){if(q.has($))throw new R("Cannot convert circular structure to BSON");q.add($),Z[X++]=Array.isArray($)?ZV:UX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=W5(Z,$,Y,X,Q+1,K,G,q);return q.delete($),W},QX=function(Z,J,$,X){Z[X++]=GV;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z.set($.bytes.subarray(0,16),X),X+16},KX=function(Z,J,$,X){Z[X++]=$._bsontype==="Long"?LX:KV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return Z[X++]=Q&255,Z[X++]=Q>>8&255,Z[X++]=Q>>16&255,Z[X++]=Q>>24&255,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,X},GX=function(Z,J,$,X){$=$.valueOf(),Z[X++]=s4;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,Z[X++]=$&255,Z[X++]=$>>8&255,Z[X++]=$>>16&255,Z[X++]=$>>24&255,X},qX=function(Z,J,$,X){Z[X++]=$Z;const Y=A.encodeUTF8Into(Z,J,X);return X=X+Y,Z[X++]=0,t4.setFloat64(0,$.value,!0),Z.set(KZ,X),X=X+8,X},FX=function(Z,J,$,X){Z[X++]=AX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.toString(),K=A.encodeUTF8Into(Z,Q,X+4)+1;return Z[X]=K&255,Z[X+1]=K>>8&255,Z[X+2]=K>>16&255,Z[X+3]=K>>24&255,X=X+4+K-1,Z[X++]=0,X},WX=function(Z,J,$,X,Y=!1,Q=0,K=!1,G=!0,q){if($.scope&&typeof $.scope==="object"){Z[X++]=QV;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;let W=X;const H=$.code;X=X+4;const V=A.encodeUTF8Into(Z,H,X+4)+1;Z[X]=V&255,Z[X+1]=V>>8&255,Z[X+2]=V>>16&255,Z[X+3]=V>>24&255,Z[X+4+V-1]=0,X=X+V+4;const j=W5(Z,$.scope,Y,X,Q+1,K,G,q);X=j-1;const U=j-W;Z[W++]=U&255,Z[W++]=U>>8&255,Z[W++]=U>>16&255,Z[W++]=U>>24&255,Z[X++]=0}else{Z[X++]=AX;const F=A.encodeUTF8Into(Z,J,X);X=X+F,Z[X++]=0;const W=$.code.toString(),H=A.encodeUTF8Into(Z,W,X+4)+1;Z[X]=H&255,Z[X+1]=H>>8&255,Z[X+2]=H>>16&255,Z[X+3]=H>>24&255,X=X+4+H-1,Z[X++]=0}return X},HX=function(Z,J,$,X){Z[X++]=MX;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K+4;if(Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255,Z[X++]=$.sub_type,$.sub_type===s.SUBTYPE_BYTE_ARRAY)K=K-4,Z[X++]=K&255,Z[X++]=K>>8&255,Z[X++]=K>>16&255,Z[X++]=K>>24&255;return Z.set(Q,X),X=X+$.position,X},zX=function(Z,J,$,X){Z[X++]=YV;const Y=A.encodeUTF8Into(Z,J,X);X=X+Y,Z[X++]=0;const Q=A.encodeUTF8Into(Z,$.value,X+4)+1;return Z[X]=Q&255,Z[X+1]=Q>>8&255,Z[X+2]=Q>>16&255,Z[X+3]=Q>>24&255,X=X+4+Q-1,Z[X++]=0,X},VX=function(Z,J,$,X,Y,Q,K){Z[X++]=UX;const G=A.encodeUTF8Into(Z,J,X);X=X+G,Z[X++]=0;let q=X,F={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)F.$db=$.db;F=Object.assign(F,$.fields);const W=W5(Z,F,!1,X,Y+1,Q,!0,K),H=W-q;return Z[q++]=H&255,Z[q++]=H>>8&255,Z[q++]=H>>16&255,Z[q++]=H>>24&255,W},W5=function(Z,J,$,X,Y,Q,K,G){if(G==null){if(J==null)return Z[0]=5,Z[1]=0,Z[2]=0,Z[3]=0,Z[4]=0,5;if(Array.isArray(J))throw new R("serialize does not support an array as the root input");if(typeof J!=="object")throw new R("serialize does not support non-object as the root input");else if("_bsontype"in J&&typeof J._bsontype==="string")throw new R("BSON types cannot be serialized as a document");else if(a4(J)||l4(J)||B6(J)||iz(J))throw new R("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(J);let q=X+4;if(Array.isArray(J))for(let W=0;W<J.length;W++){const H=`${W}`;let V=J[W];if(typeof V?.toBSON==="function")V=V.toBSON();if(typeof V==="string")q=s$(Z,H,V,q);else if(typeof V==="number")q=n$(Z,H,V,q);else if(typeof V==="bigint")q=t$(Z,H,V,q);else if(typeof V==="boolean")q=r$(Z,H,V,q);else if(V instanceof Date||a4(V))q=o$(Z,H,V,q);else if(V===void 0)q=G5(Z,H,V,q);else if(V===null)q=G5(Z,H,V,q);else if(B6(V))q=XX(Z,H,V,q);else if(V instanceof RegExp||l4(V))q=e$(Z,H,V,q);else if(typeof V==="object"&&V._bsontype==null)q=YX(Z,H,V,q,$,Y,Q,K,G);else if(typeof V==="object"&&V[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(V._bsontype==="ObjectId")q=$X(Z,H,V,q);else if(V._bsontype==="Decimal128")q=QX(Z,H,V,q);else if(V._bsontype==="Long"||V._bsontype==="Timestamp")q=KX(Z,H,V,q);else if(V._bsontype==="Double")q=qX(Z,H,V,q);else if(typeof V==="function"&&Q)q=FX(Z,H,V,q);else if(V._bsontype==="Code")q=WX(Z,H,V,q,$,Y,Q,K,G);else if(V._bsontype==="Binary")q=HX(Z,H,V,q);else if(V._bsontype==="BSONSymbol")q=zX(Z,H,V,q);else if(V._bsontype==="DBRef")q=VX(Z,H,V,q,Y,Q,G);else if(V._bsontype==="BSONRegExp")q=ZX(Z,H,V,q);else if(V._bsontype==="Int32")q=GX(Z,H,V,q);else if(V._bsontype==="MinKey"||V._bsontype==="MaxKey")q=JX(Z,H,V,q);else if(typeof V._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(V._bsontype)}`)}else if(J instanceof Map||sz(J)){const W=J.entries();let H=!1;while(!H){const V=W.next();if(H=!!V.done,H)continue;const j=V.value[0];let U=V.value[1];if(typeof U?.toBSON==="function")U=U.toBSON();const L=typeof U;if(typeof j==="string"&&!lz.has(j)){if(j.match(QZ)!=null)throw new R("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new R("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new R("key "+j+" must not contain '.'")}}if(L==="string")q=s$(Z,j,U,q);else if(L==="number")q=n$(Z,j,U,q);else if(L==="bigint")q=t$(Z,j,U,q);else if(L==="boolean")q=r$(Z,j,U,q);else if(U instanceof Date||a4(U))q=o$(Z,j,U,q);else if(U===null||U===void 0&&K===!1)q=G5(Z,j,U,q);else if(B6(U))q=XX(Z,j,U,q);else if(U instanceof RegExp||l4(U))q=e$(Z,j,U,q);else if(L==="object"&&U._bsontype==null)q=YX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(U._bsontype==="ObjectId")q=$X(Z,j,U,q);else if(L==="object"&&U._bsontype==="Decimal128")q=QX(Z,j,U,q);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")q=KX(Z,j,U,q);else if(U._bsontype==="Double")q=qX(Z,j,U,q);else if(U._bsontype==="Code")q=WX(Z,j,U,q,$,Y,Q,K,G);else if(typeof U==="function"&&Q)q=FX(Z,j,U,q);else if(U._bsontype==="Binary")q=HX(Z,j,U,q);else if(U._bsontype==="BSONSymbol")q=zX(Z,j,U,q);else if(U._bsontype==="DBRef")q=VX(Z,j,U,q,Y,Q,G);else if(U._bsontype==="BSONRegExp")q=ZX(Z,j,U,q);else if(U._bsontype==="Int32")q=GX(Z,j,U,q);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")q=JX(Z,j,U,q);else if(typeof U._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}}else{if(typeof J?.toBSON==="function"){if(J=J.toBSON(),J!=null&&typeof J!=="object")throw new R("toBSON function did not return an object")}for(let W of Object.keys(J)){let H=J[W];if(typeof H?.toBSON==="function")H=H.toBSON();const V=typeof H;if(typeof W==="string"&&!lz.has(W)){if(W.match(QZ)!=null)throw new R("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new R("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new R("key "+W+" must not contain '.'")}}if(V==="string")q=s$(Z,W,H,q);else if(V==="number")q=n$(Z,W,H,q);else if(V==="bigint")q=t$(Z,W,H,q);else if(V==="boolean")q=r$(Z,W,H,q);else if(H instanceof Date||a4(H))q=o$(Z,W,H,q);else if(H===void 0){if(K===!1)q=G5(Z,W,H,q)}else if(H===null)q=G5(Z,W,H,q);else if(B6(H))q=XX(Z,W,H,q);else if(H instanceof RegExp||l4(H))q=e$(Z,W,H,q);else if(V==="object"&&H._bsontype==null)q=YX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(H._bsontype==="ObjectId")q=$X(Z,W,H,q);else if(V==="object"&&H._bsontype==="Decimal128")q=QX(Z,W,H,q);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")q=KX(Z,W,H,q);else if(H._bsontype==="Double")q=qX(Z,W,H,q);else if(H._bsontype==="Code")q=WX(Z,W,H,q,$,Y,Q,K,G);else if(typeof H==="function"&&Q)q=FX(Z,W,H,q);else if(H._bsontype==="Binary")q=HX(Z,W,H,q);else if(H._bsontype==="BSONSymbol")q=zX(Z,W,H,q);else if(H._bsontype==="DBRef")q=VX(Z,W,H,q,Y,Q,G);else if(H._bsontype==="BSONRegExp")q=ZX(Z,W,H,q);else if(H._bsontype==="Int32")q=GX(Z,W,H,q);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")q=JX(Z,W,H,q);else if(typeof H._bsontype!=="undefined")throw new R(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(J),Z[q++]=0;const F=q-X;return Z[X++]=F&255,Z[X++]=F>>8&255,Z[X++]=F>>16&255,Z[X++]=F>>24&255,q},sO=function(Z){return Z!=null&&typeof Z==="object"&&"_bsontype"in Z&&typeof Z._bsontype==="string"},MV=function(Z,J={}){if(typeof Z==="number"){const X=Z<=GZ&&Z>=qZ,Y=Z<=nz&&Z>=tz;if(J.relaxed||J.legacy)return Z;if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(X)return new S6(Z);if(Y){if(J.useBigInt64)return BigInt(Z);return M.fromNumber(Z)}}return new O6(Z)}if(Z==null||typeof Z!=="object")return Z;if(Z.$undefined)return null;const $=Object.keys(Z).filter((X)=>X.startsWith("$")&&Z[X]!=null);for(let X=0;X<$.length;X++){const Y=nO[$[X]];if(Y)return Y.fromExtendedJSON(Z,J)}if(Z.$date!=null){const X=Z.$date,Y=new Date;if(J.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&J.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new F5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(Z.$code!=null){const X=Object.assign({},Z);if(Z.$scope)X.$scope=MV(Z.$scope);return Z6.fromExtendedJSON(Z)}if(HV(Z)||Z.$dbPointer){const X=Z.$ref?Z:Z.$dbPointer;if(X instanceof y8)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return y8.fromExtendedJSON(X)}return Z},tO=function(Z,J){return Z.map(($,X)=>{J.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return e8($,J)}finally{J.seenObjects.pop()}})},az=function(Z){const J=Z.toISOString();return Z.getUTCMilliseconds()!==0?J:J.slice(0,-5)+"Z"},e8=function(Z,J){if(Z instanceof Map||sz(Z)){const $=Object.create(null);for(let[X,Y]of Z){if(typeof X!=="string")throw new R("Can only serialize maps with string keys");$[X]=Y}return e8($,J)}if((typeof Z==="object"||typeof Z==="function")&&Z!==null){const $=J.seenObjects.findIndex((X)=>X.obj===Z);if($!==-1){const X=J.seenObjects.map((W)=>W.propertyName),Y=X.slice(0,$).map((W)=>`${W} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((W)=>`${W} -> `).join(""),G=X[X.length-1],q=" ".repeat(Y.length+Q.length/2),F="-".repeat(K.length+(Q.length+G.length)/2-1);throw new R("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${q}\\${F}/`)}J.seenObjects[J.seenObjects.length-1].obj=Z}if(Array.isArray(Z))return tO(Z,J);if(Z===void 0)return null;if(Z instanceof Date||a4(Z)){const $=Z.getTime(),X=$>-1&&$<253402318800000;if(J.legacy)return J.relaxed&&X?{$date:Z.getTime()}:{$date:az(Z)};return J.relaxed&&X?{$date:az(Z)}:{$date:{$numberLong:Z.getTime().toString()}}}if(typeof Z==="number"&&(!J.relaxed||!isFinite(Z))){if(Number.isInteger(Z)&&!Object.is(Z,-0)){if(Z>=qZ&&Z<=GZ)return{$numberInt:Z.toString()};if(Z>=tz&&Z<=nz)return{$numberLong:Z.toString()}}return{$numberDouble:Object.is(Z,-0)?"-0.0":Z.toString()}}if(typeof Z==="bigint"){if(!J.relaxed)return{$numberLong:BigInt.asIntN(64,Z).toString()};return Number(BigInt.asIntN(64,Z))}if(Z instanceof RegExp||l4(Z)){let $=Z.flags;if($===void 0){const Y=Z.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(Z.source,$).toExtendedJSON(J)}if(Z!=null&&typeof Z==="object")return oO(Z,J);return Z},oO=function(Z,J){if(Z==null||typeof Z!=="object")throw new R("not an object instance");const $=Z._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(Z)){J.seenObjects.push({propertyName:Y,obj:null});try{const Q=e8(Z[Y],J);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{J.seenObjects.pop()}}return X}else if(Z!=null&&typeof Z==="object"&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==H4)throw new h6;else if(sO(Z)){let X=Z;if(typeof X.toExtendedJSON!=="function"){const Y=rO[Z._bsontype];if(!Y)throw new R("Unrecognized or invalid _bsontype: "+Z._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new Z6(X.code,e8(X.scope,J));else if($==="DBRef"&&X.oid)X=new y8(e8(X.collection,J),e8(X.oid,J),e8(X.db,J),e8(X.fields,J));return X.toExtendedJSON(J)}else throw new R("_bsontype must be a string, but was: "+typeof $)},jV=function(Z,J){const $={useBigInt64:J?.useBigInt64??!1,relaxed:J?.relaxed??!0,legacy:J?.legacy??!1};return JSON.parse(Z,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new R(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return MV(Y,$)})},AV=function(Z,J,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(J!=null&&typeof J==="object"&&!Array.isArray(J))X=J,J=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=e8(Z,Y);return JSON.stringify(Q,J,$)},eO=function(Z,J){return J=J||{},JSON.parse(AV(Z,J))},ZS=function(Z,J){return J=J||{},jV(JSON.stringify(Z),J)},wV=function(Z){if(C6.length<Z)C6=A.allocate(Z)},RV=function(Z,J={}){const $=typeof J.checkKeys==="boolean"?J.checkKeys:!1,X=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,Y=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0,Q=typeof J.minInternalBufferSize==="number"?J.minInternalBufferSize:LV;if(C6.length<Q)C6=A.allocate(Q);const K=W5(C6,Z,$,0,0,X,Y,null),G=A.allocate(K);return G.set(C6.subarray(0,K),0),G},PV=function(Z,J,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=W5(C6,Z,X,0,0,Y,Q,null);return J.set(C6.subarray(0,G),K),K+G-1},DV=function(Z,J={}){return UV(A.toLocalBufferType(Z),J)},TV=function(Z,J={}){J=J||{};const $=typeof J.serializeFunctions==="boolean"?J.serializeFunctions:!1,X=typeof J.ignoreUndefined==="boolean"?J.ignoreUndefined:!0;return ZZ(Z,$,X)},IV=function(Z,J,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=A.toLocalBufferType(Z);let q=J;for(let F=0;F<$;F++){const W=G[q]|G[q+1]<<8|G[q+2]<<16|G[q+3]<<24;K.index=q,X[Y+F]=UV(G,K),q=q+W}return q},H4=5,GZ=2147483647,qZ=-2147483648,nz=Math.pow(2,63)-1,tz=-Math.pow(2,63),rz=Math.pow(2,53),oz=-Math.pow(2,53),$Z=1,ez=2,UX=3,ZV=4,MX=5,qO=6,JV=7,$V=8,XV=9,jX=10,XZ=11,FO=12,AX=13,YV=14,QV=15,s4=16,KV=17,LX=18,GV=19,qV=255,FV=127,WO=0,YZ=4,WV=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 R extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(Z){super(Z)}static isBSONError(Z){return Z!=null&&typeof Z==="object"&&"bsonError"in Z&&Z.bsonError===!0&&"name"in Z&&"message"in Z&&"stack"in Z}}class h6 extends R{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${H4}.x.x`)}}class F5 extends R{get name(){return"BSONRuntimeError"}constructor(Z){super(Z)}}var zO=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return HO}})(),N6={toLocalBufferType(Z){if(Buffer.isBuffer(Z))return Z;if(ArrayBuffer.isView(Z))return Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return Buffer.from(Z);throw new R(`Cannot create Buffer from ${String(Z)}`)},allocate(Z){return Buffer.alloc(Z)},equals(Z,J){return N6.toLocalBufferType(Z).equals(J)},fromNumberArray(Z){return Buffer.from(Z)},fromBase64(Z){return Buffer.from(Z,"base64")},toBase64(Z){return N6.toLocalBufferType(Z).toString("base64")},fromISO88591(Z){return Buffer.from(Z,"binary")},toISO88591(Z){return N6.toLocalBufferType(Z).toString("binary")},fromHex(Z){return Buffer.from(Z,"hex")},toHex(Z){return N6.toLocalBufferType(Z).toString("hex")},fromUTF8(Z){return Buffer.from(Z,"utf8")},toUTF8(Z,J,$){return N6.toLocalBufferType(Z).toString("utf8",J,$)},utf8ByteLength(Z){return Buffer.byteLength(Z,"utf8")},encodeUTF8Into(Z,J,$){return N6.toLocalBufferType(Z).write(J,$,void 0,"utf8")},randomBytes:zO},MO=(()=>{const{crypto:Z}=globalThis;if(Z!=null&&typeof Z.getRandomValues==="function")return(J)=>{return Z.getRandomValues(n4.allocate(J))};else{if(VO()){const{console:J}=globalThis;J?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return UO}})(),kz=/(\d|[a-f])/i,n4={toLocalBufferType(Z){const J=Z?.[Symbol.toStringTag]??Object.prototype.toString.call(Z);if(J==="Uint8Array")return Z;if(ArrayBuffer.isView(Z))return new Uint8Array(Z.buffer.slice(Z.byteOffset,Z.byteOffset+Z.byteLength));if(J==="ArrayBuffer"||J==="SharedArrayBuffer"||J==="[object ArrayBuffer]"||J==="[object SharedArrayBuffer]")return new Uint8Array(Z);throw new R(`Cannot make a Uint8Array from ${String(Z)}`)},allocate(Z){if(typeof Z!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(Z)}`);return new Uint8Array(Z)},equals(Z,J){if(Z.byteLength!==J.byteLength)return!1;for(let $=0;$<Z.byteLength;$++)if(Z[$]!==J[$])return!1;return!0},fromNumberArray(Z){return Uint8Array.from(Z)},fromBase64(Z){return Uint8Array.from(atob(Z),(J)=>J.charCodeAt(0))},toBase64(Z){return btoa(n4.toISO88591(Z))},fromISO88591(Z){return Uint8Array.from(Z,(J)=>J.charCodeAt(0)&255)},toISO88591(Z){return Array.from(Uint16Array.from(Z),(J)=>String.fromCharCode(J)).join("")},fromHex(Z){const J=Z.length%2===0?Z:Z.slice(0,Z.length-1),$=[];for(let X=0;X<J.length;X+=2){const Y=J[X],Q=J[X+1];if(!kz.test(Y))break;if(!kz.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(Z){return Array.from(Z,(J)=>J.toString(16).padStart(2,"0")).join("")},fromUTF8(Z){return(new TextEncoder()).encode(Z)},toUTF8(Z,J,$){return new TextDecoder("utf8",{fatal:!1}).decode(Z.slice(J,$))},utf8ByteLength(Z){return n4.fromUTF8(Z).byteLength},encodeUTF8Into(Z,J,$){const X=n4.fromUTF8(J);return Z.set(X,$),X.byteLength},randomBytes:MO},jO=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,A=jO?N6:n4;class q5 extends DataView{static fromUint8Array(Z){return new DataView(Z.buffer,Z.byteOffset,Z.byteLength)}}class q0{get[Symbol.for("@@mdb.bson.version")](){return H4}}class s extends q0{get _bsontype(){return"Binary"}constructor(Z,J){super();if(Z!=null&&typeof Z!=="string"&&!ArrayBuffer.isView(Z)&&!(Z instanceof ArrayBuffer)&&!Array.isArray(Z))throw new R("Binary can only be constructed from string, Buffer, TypedArray, or Array<number>");if(this.sub_type=J??s.BSON_BINARY_SUBTYPE_DEFAULT,Z==null)this.buffer=A.allocate(s.BUFFER_SIZE),this.position=0;else{if(typeof Z==="string")this.buffer=A.fromISO88591(Z);else if(Array.isArray(Z))this.buffer=A.fromNumberArray(Z);else this.buffer=A.toLocalBufferType(Z);this.position=this.buffer.byteLength}}put(Z){if(typeof Z==="string"&&Z.length!==1)throw new R("only accepts single character String");else if(typeof Z!=="number"&&Z.length!==1)throw new R("only accepts single character Uint8Array or Array");let J;if(typeof Z==="string")J=Z.charCodeAt(0);else if(typeof Z==="number")J=Z;else J=Z[0];if(J<0||J>255)throw new R("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=J;else{const $=A.allocate(s.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=J}}write(Z,J){if(J=typeof J==="number"?J:this.position,this.buffer.byteLength<J+Z.length){const $=A.allocate(this.buffer.byteLength+Z.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(Z))this.buffer.set(A.toLocalBufferType(Z),J),this.position=J+Z.byteLength>this.position?J+Z.length:this.position;else if(typeof Z==="string"){const $=A.fromISO88591(Z);this.buffer.set($,J),this.position=J+Z.length>this.position?J+Z.length:this.position}}read(Z,J){return J=J&&J>0?J:this.position,this.buffer.slice(Z,Z+J)}value(Z){if(Z=!!Z,Z&&this.buffer.length===this.position)return this.buffer;if(Z)return this.buffer.slice(0,this.position);return A.toISO88591(this.buffer.subarray(0,this.position))}length(){return this.position}toJSON(){return A.toBase64(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.buffer);if(Z==="base64")return A.toBase64(this.buffer);if(Z==="utf8"||Z==="utf-8")return A.toUTF8(this.buffer,0,this.buffer.byteLength);return A.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(Z){Z=Z||{};const J=A.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(Z.legacy)return{$binary:J,$type:$.length===1?"0"+$:$};return{$binary:{base64:J,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===s.SUBTYPE_UUID)return new S1(this.buffer.slice(0,this.position));throw new R(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${s.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(Z,J){return new s(A.fromHex(Z),J)}static createFromBase64(Z,J){return new s(A.fromBase64(Z),J)}static fromExtendedJSON(Z,J){J=J||{};let $,X;if("$binary"in Z){if(J.legacy&&typeof Z.$binary==="string"&&"$type"in Z)X=Z.$type?parseInt(Z.$type,16):0,$=A.fromBase64(Z.$binary);else if(typeof Z.$binary!=="string")X=Z.$binary.subType?parseInt(Z.$binary.subType,16):0,$=A.fromBase64(Z.$binary.base64)}else if("$uuid"in Z)X=4,$=S1.bytesFromString(Z.$uuid);if(!$)throw new R(`Unexpected Binary Extended JSON format ${JSON.stringify(Z)}`);return X===YZ?new S1($):new s($,X)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`Binary.createFromBase64("${A.toBase64(this.buffer.subarray(0,this.position))}", ${this.sub_type})`}}s.BSON_BINARY_SUBTYPE_DEFAULT=0;s.BUFFER_SIZE=256;s.SUBTYPE_DEFAULT=0;s.SUBTYPE_FUNCTION=1;s.SUBTYPE_BYTE_ARRAY=2;s.SUBTYPE_UUID_OLD=3;s.SUBTYPE_UUID=4;s.SUBTYPE_MD5=5;s.SUBTYPE_ENCRYPTED=6;s.SUBTYPE_COLUMN=7;s.SUBTYPE_USER_DEFINED=128;var a$=16,AO=/^[0-9A-F]{32}$/i,LO=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class S1 extends s{constructor(Z){let J;if(Z==null)J=S1.generate();else if(Z instanceof S1)J=A.toLocalBufferType(new Uint8Array(Z.buffer));else if(ArrayBuffer.isView(Z)&&Z.byteLength===a$)J=A.toLocalBufferType(Z);else if(typeof Z==="string")J=S1.bytesFromString(Z);else throw new R("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(J,YZ)}get id(){return this.buffer}set id(Z){this.buffer=Z}toHexString(Z=!0){if(Z)return[A.toHex(this.buffer.subarray(0,4)),A.toHex(this.buffer.subarray(4,6)),A.toHex(this.buffer.subarray(6,8)),A.toHex(this.buffer.subarray(8,10)),A.toHex(this.buffer.subarray(10,16))].join("-");return A.toHex(this.buffer)}toString(Z){if(Z==="hex")return A.toHex(this.id);if(Z==="base64")return A.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(!Z)return!1;if(Z instanceof S1)return A.equals(Z.id,this.id);try{return A.equals(new S1(Z).id,this.id)}catch{return!1}}toBinary(){return new s(this.id,s.SUBTYPE_UUID)}static generate(){const Z=A.randomBytes(a$);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z}static isValid(Z){if(!Z)return!1;if(typeof Z==="string")return S1.isValidUUIDString(Z);if(B6(Z))return Z.byteLength===a$;return Z._bsontype==="Binary"&&Z.sub_type===this.SUBTYPE_UUID&&Z.buffer.byteLength===16}static createFromHexString(Z){const J=S1.bytesFromString(Z);return new S1(J)}static createFromBase64(Z){return new S1(A.fromBase64(Z))}static bytesFromString(Z){if(!S1.isValidUUIDString(Z))throw new R("UUID string representation must be 32 hex digits or canonical hyphenated representation");return A.fromHex(Z.replace(/-/g,""))}static isValidUUIDString(Z){return AO.test(Z)||LO.test(Z)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new UUID("${this.toHexString()}")`}}S1.cacheHexString=!1;class Z6 extends q0{get _bsontype(){return"Code"}constructor(Z,J){super();this.code=Z.toString(),this.scope=J??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(Z){return new Z6(Z.$code,Z.$scope)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.toJSON();return`new Code("${String(Z.code)}"${Z.scope!=null?`, ${JSON.stringify(Z.scope)}`:""})`}}class y8 extends q0{get _bsontype(){return"DBRef"}constructor(Z,J,$,X){super();const Y=Z.split(".");if(Y.length===2)$=Y.shift(),Z=Y.shift();this.collection=Z,this.oid=J,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(Z){this.collection=Z}toJSON(){const Z=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)Z.$db=this.db;return Z}toExtendedJSON(Z){Z=Z||{};let J={$ref:this.collection,$id:this.oid};if(Z.legacy)return J;if(this.db)J.$db=this.db;return J=Object.assign(J,this.fields),J}static fromExtendedJSON(Z){const J=Object.assign({},Z);return delete J.$ref,delete J.$id,delete J.$db,new y8(Z.$ref,Z.$id,Z.$db,J)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){const Z=this.oid===void 0||this.oid.toString===void 0?this.oid:this.oid.toString();return`new DBRef("${this.namespace}", new ObjectId("${String(Z)}")${this.db?`, "${this.db}"`:""})`}}var b0=void 0;try{b0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var _z=1<<16,wO=1<<24,i4=_z*_z,zV=i4*i4,xz=zV/2,vz={},fz={},RO=20,PO=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends q0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(Z=0,J,$){super();if(typeof Z==="bigint")Object.assign(this,M.fromBigInt(Z,!!J));else if(typeof Z==="string")Object.assign(this,M.fromString(Z,!!J));else this.low=Z|0,this.high=J|0,this.unsigned=!!$}static fromBits(Z,J,$){return new M(Z,J,$)}static fromInt(Z,J){let $,X,Y;if(J){if(Z>>>=0,Y=0<=Z&&Z<256){if(X=fz[Z],X)return X}if($=M.fromBits(Z,(Z|0)<0?-1:0,!0),Y)fz[Z]=$;return $}else{if(Z|=0,Y=-128<=Z&&Z<128){if(X=vz[Z],X)return X}if($=M.fromBits(Z,Z<0?-1:0,!1),Y)vz[Z]=$;return $}}static fromNumber(Z,J){if(isNaN(Z))return J?M.UZERO:M.ZERO;if(J){if(Z<0)return M.UZERO;if(Z>=zV)return M.MAX_UNSIGNED_VALUE}else{if(Z<=-xz)return M.MIN_VALUE;if(Z+1>=xz)return M.MAX_VALUE}if(Z<0)return M.fromNumber(-Z,J).neg();return M.fromBits(Z%i4|0,Z/i4|0,J)}static fromBigInt(Z,J){return M.fromString(Z.toString(),J)}static fromString(Z,J,$){if(Z.length===0)throw new R("empty string");if(Z==="NaN"||Z==="Infinity"||Z==="+Infinity"||Z==="-Infinity")return M.ZERO;if(typeof J==="number")$=J,J=!1;else J=!!J;if($=$||10,$<2||36<$)throw new R("radix");let X;if((X=Z.indexOf("-"))>0)throw new R("interior hyphen");else if(X===0)return M.fromString(Z.substring(1),J,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<Z.length;K+=8){const G=Math.min(8,Z.length-K),q=parseInt(Z.substring(K,K+G),$);if(G<8){const F=M.fromNumber(Math.pow($,G));Q=Q.mul(F).add(M.fromNumber(q))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(q))}return Q.unsigned=J,Q}static fromBytes(Z,J,$){return $?M.fromBytesLE(Z,J):M.fromBytesBE(Z,J)}static fromBytesLE(Z,J){return new M(Z[0]|Z[1]<<8|Z[2]<<16|Z[3]<<24,Z[4]|Z[5]<<8|Z[6]<<16|Z[7]<<24,J)}static fromBytesBE(Z,J){return new M(Z[4]<<24|Z[5]<<16|Z[6]<<8|Z[7],Z[0]<<24|Z[1]<<16|Z[2]<<8|Z[3],J)}static isLong(Z){return Z!=null&&typeof Z==="object"&&"__isLong__"in Z&&Z.__isLong__===!0}static fromValue(Z,J){if(typeof Z==="number")return M.fromNumber(Z,J);if(typeof Z==="string")return M.fromString(Z,J);return M.fromBits(Z.low,Z.high,typeof J==="boolean"?J:Z.unsigned)}add(Z){if(!M.isLong(Z))Z=M.fromValue(Z);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y+q,H+=V>>>16,V&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,F+=W>>>16,W&=65535,F+=J+Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}and(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low&Z.low,this.high&Z.high,this.unsigned)}compare(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.eq(Z))return 0;const J=this.isNegative(),$=Z.isNegative();if(J&&!$)return-1;if(!J&&$)return 1;if(!this.unsigned)return this.sub(Z).isNegative()?-1:1;return Z.high>>>0>this.high>>>0||Z.high===this.high&&Z.low>>>0>this.low>>>0?-1:1}comp(Z){return this.compare(Z)}divide(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(Z.isZero())throw new R("division by zero");if(b0){if(!this.unsigned&&this.high===-2147483648&&Z.low===-1&&Z.high===-1)return this;const Y=(this.unsigned?b0.div_u:b0.div_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(Y,b0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let J,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(Z.eq(M.ONE)||Z.eq(M.NEG_ONE))return M.MIN_VALUE;else if(Z.eq(M.MIN_VALUE))return M.ONE;else if(J=this.shr(1).div(Z).shl(1),J.eq(M.ZERO))return Z.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(Z.mul(J)),X=J.add($.div(Z)),X;else if(Z.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(Z.isNegative())return this.neg().div(Z.neg());return this.neg().div(Z).neg()}else if(Z.isNegative())return this.div(Z.neg()).neg();X=M.ZERO}else{if(!Z.unsigned)Z=Z.toUnsigned();if(Z.gt(this))return M.UZERO;if(Z.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(Z)){J=Math.max(1,Math.floor($.toNumber()/Z.toNumber()));const Y=Math.ceil(Math.log(J)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(J),G=K.mul(Z);while(G.isNegative()||G.gt($))J-=Q,K=M.fromNumber(J,this.unsigned),G=K.mul(Z);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(Z){return this.divide(Z)}equals(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(this.unsigned!==Z.unsigned&&this.high>>>31===1&&Z.high>>>31===1)return!1;return this.high===Z.high&&this.low===Z.low}eq(Z){return this.equals(Z)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const Z=this.high!==0?this.high:this.low;let J;for(J=31;J>0;J--)if((Z&1<<J)!==0)break;return this.high!==0?J+33:J+1}greaterThan(Z){return this.comp(Z)>0}gt(Z){return this.greaterThan(Z)}greaterThanOrEqual(Z){return this.comp(Z)>=0}gte(Z){return this.greaterThanOrEqual(Z)}ge(Z){return this.greaterThanOrEqual(Z)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(Z){return this.comp(Z)<0}lt(Z){return this.lessThan(Z)}lessThanOrEqual(Z){return this.comp(Z)<=0}lte(Z){return this.lessThanOrEqual(Z)}modulo(Z){if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const J=(this.unsigned?b0.rem_u:b0.rem_s)(this.low,this.high,Z.low,Z.high);return M.fromBits(J,b0.get_high(),this.unsigned)}return this.sub(this.div(Z).mul(Z))}mod(Z){return this.modulo(Z)}rem(Z){return this.modulo(Z)}multiply(Z){if(this.isZero())return M.ZERO;if(!M.isLong(Z))Z=M.fromValue(Z);if(b0){const j=b0.mul(this.low,this.high,Z.low,Z.high);return M.fromBits(j,b0.get_high(),this.unsigned)}if(Z.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return Z.isOdd()?M.MIN_VALUE:M.ZERO;if(Z.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(Z.isNegative())return this.neg().mul(Z.neg());else return this.neg().mul(Z).neg();else if(Z.isNegative())return this.mul(Z.neg()).neg();if(this.lt(M.TWO_PWR_24)&&Z.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*Z.toNumber(),this.unsigned);const J=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=Z.high>>>16,K=Z.high&65535,G=Z.low>>>16,q=Z.low&65535;let F=0,W=0,H=0,V=0;return V+=Y*q,H+=V>>>16,V&=65535,H+=X*q,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*q,F+=W>>>16,W&=65535,W+=X*G,F+=W>>>16,W&=65535,W+=Y*K,F+=W>>>16,W&=65535,F+=J*q+$*G+X*K+Y*Q,F&=65535,M.fromBits(H<<16|V,F<<16|W,this.unsigned)}mul(Z){return this.multiply(Z)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(Z){return!this.equals(Z)}neq(Z){return this.notEquals(Z)}ne(Z){return this.notEquals(Z)}or(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low|Z.low,this.high|Z.high,this.unsigned)}shiftLeft(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low<<Z,this.high<<Z|this.low>>>32-Z,this.unsigned);else return M.fromBits(0,this.low<<Z-32,this.unsigned)}shl(Z){return this.shiftLeft(Z)}shiftRight(Z){if(M.isLong(Z))Z=Z.toInt();if((Z&=63)===0)return this;else if(Z<32)return M.fromBits(this.low>>>Z|this.high<<32-Z,this.high>>Z,this.unsigned);else return M.fromBits(this.high>>Z-32,this.high>=0?0:-1,this.unsigned)}shr(Z){return this.shiftRight(Z)}shiftRightUnsigned(Z){if(M.isLong(Z))Z=Z.toInt();if(Z&=63,Z===0)return this;else{const J=this.high;if(Z<32){const $=this.low;return M.fromBits($>>>Z|J<<32-Z,J>>>Z,this.unsigned)}else if(Z===32)return M.fromBits(J,0,this.unsigned);else return M.fromBits(J>>>Z-32,0,this.unsigned)}}shr_u(Z){return this.shiftRightUnsigned(Z)}shru(Z){return this.shiftRightUnsigned(Z)}subtract(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return this.add(Z.neg())}sub(Z){return this.subtract(Z)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*i4+(this.low>>>0);return this.high*i4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(Z){return Z?this.toBytesLE():this.toBytesBE()}toBytesLE(){const Z=this.high,J=this.low;return[J&255,J>>>8&255,J>>>16&255,J>>>24,Z&255,Z>>>8&255,Z>>>16&255,Z>>>24]}toBytesBE(){const Z=this.high,J=this.low;return[Z>>>24,Z>>>16&255,Z>>>8&255,Z&255,J>>>24,J>>>16&255,J>>>8&255,J&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(Z){if(Z=Z||10,Z<2||36<Z)throw new R("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(Z),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(Z)+K.toInt().toString(Z)}else return"-"+this.neg().toString(Z);const J=M.fromNumber(Math.pow(Z,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(J);let K=($.sub(Y.mul(J)).toInt()>>>0).toString(Z);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(Z){if(!M.isLong(Z))Z=M.fromValue(Z);return M.fromBits(this.low^Z.low,this.high^Z.high,this.unsigned)}eqz(){return this.isZero()}le(Z){return this.lessThanOrEqual(Z)}toExtendedJSON(Z){if(Z&&Z.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(Z,J){const{useBigInt64:$=!1,relaxed:X=!0}={...J};if(Z.$numberLong.length>RO)throw new R("$numberLong string is too long");if(!PO.test(Z.$numberLong))throw new R(`\$numberLong string "${Z.$numberLong}" is in an invalid format`);if($){const Q=BigInt(Z.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(Z.$numberLong);if(X)return Y.toNumber();return Y}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Long("${this.toString()}"${this.unsigned?", true":""})`}}M.TWO_PWR_24=M.fromInt(wO);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var DO=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,TO=/^(\+|-)?(Infinity|inf)$/i,IO=/^(\+|-)?NaN$/i,c4=6111,K5=-6176,gz=6176,bz=34,i$=A.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),mz=A.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),uz=A.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),EO=/^([-+])?(\d+)?$/,NO=31,dz=16383,BO=30,CO=31;class Z0 extends q0{get _bsontype(){return"Decimal128"}constructor(Z){super();if(typeof Z==="string")this.bytes=Z0.fromString(Z).bytes;else if(B6(Z)){if(Z.byteLength!==16)throw new R("Decimal128 must take a Buffer of 16 bytes");this.bytes=Z}else throw new R("Decimal128 must take a Buffer or string")}static fromString(Z){return Z0._fromString(Z,{allowRounding:!1})}static fromStringWithRounding(Z){return Z0._fromString(Z,{allowRounding:!0})}static _fromString(Z,J){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,q=0,F=0,W=0;const H=[0];let V=0,j=0,U=0,L=0,D=new M(0,0),B=new M(0,0),w=0,T=0;if(Z.length>=7000)throw new R(""+Z+" not a valid Decimal128 string");const f=Z.match(DO),N1=Z.match(TO),p8=Z.match(IO);if(!f&&!N1&&!p8||Z.length===0)throw new R(""+Z+" not a valid Decimal128 string");if(f){const u=f[2],v=f[4],C=f[5],k=f[6];if(v&&k===void 0)G8(Z,"missing exponent power");if(v&&u===void 0)G8(Z,"missing exponent base");if(v===void 0&&(C||k))G8(Z,"missing e before exponent")}if(Z[T]==="+"||Z[T]==="-")X=!0,$=Z[T++]==="-";if(!pz(Z[T])&&Z[T]!=="."){if(Z[T]==="i"||Z[T]==="I")return new Z0($?mz:uz);else if(Z[T]==="N")return new Z0(i$)}while(pz(Z[T])||Z[T]==="."){if(Z[T]==="."){if(Y)G8(Z,"contains multiple periods");Y=!0,T=T+1;continue}if(V<bz){if(Z[T]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(Z[T],10),V=V+1}}if(Q)q=q+1;if(Y)F=F+1;G=G+1,T=T+1}if(Y&&!G)throw new R(""+Z+" not a valid Decimal128 string");if(Z[T]==="e"||Z[T]==="E"){const u=Z.substr(++T).match(EO);if(!u||!u[2])return new Z0(i$);L=parseInt(u[0],10),T=T+u[0].length}if(Z[T])return new Z0(i$);if(!V)H[0]=0,q=1,V=1,K=0;else if(U=V-1,K=q,K!==1)while(Z[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(L<=F&&F>L+(1<<14))L=K5;else L=L-F;while(L>c4){if(U=U+1,U>=bz){if(K===0){L=c4;break}G8(Z,"overflow")}L=L-1}if(J.allowRounding){while(L<K5||V<q){if(U===0&&K<V){L=K5,K=0;break}if(V<q)q=q-1;else U=U-1;if(L<c4)L=L+1;else{if(H.join("").match(/^0+$/)){L=c4;break}G8(Z,"overflow")}}if(U+1<K){let u=G;if(Y)W=W+1,u=u+1;if(X)W=W+1,u=u+1;const v=parseInt(Z[W+U+1],10);let C=0;if(v>=5){if(C=1,v===5){C=H[U]%2===1?1:0;for(let k=W+U+2;k<u;k++)if(parseInt(Z[k],10)){C=1;break}}}if(C){let k=U;for(;k>=0;k--)if(++H[k]>9){if(H[k]=0,k===0)if(L<c4)L=L+1,H[k]=1;else return new Z0($?mz:uz)}else break}}}else{while(L<K5||V<q){if(U===0){if(K===0){L=K5;break}G8(Z,"exponent underflow")}if(V<q){if(Z[q-1+Number(X)+Number(Y)]!=="0"&&K!==0)G8(Z,"inexact rounding");q=q-1}else{if(H[U]!==0)G8(Z,"inexact rounding");U=U-1}if(L<c4)L=L+1;else G8(Z,"overflow")}if(U+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(Z[W+U+1],10)!==0)G8(Z,"inexact rounding")}}if(D=M.fromNumber(0),B=M.fromNumber(0),K===0)D=M.fromNumber(0),B=M.fromNumber(0);else if(U<17){let u=0;B=M.fromNumber(H[u++]),D=new M(0,0);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}else{let u=0;D=M.fromNumber(H[u++]);for(;u<=U-17;u++)D=D.multiply(M.fromNumber(10)),D=D.add(M.fromNumber(H[u]));B=M.fromNumber(H[u++]);for(;u<=U;u++)B=B.multiply(M.fromNumber(10)),B=B.add(M.fromNumber(H[u]))}const y=OO(D,M.fromString("100000000000000000"));if(y.low=y.low.add(B),SO(y.low,B))y.high=y.high.add(M.fromNumber(1));w=L+gz;const N={low:M.fromNumber(0),high:M.fromNumber(0)};if(y.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))N.high=N.high.or(M.fromNumber(3).shiftLeft(61)),N.high=N.high.or(M.fromNumber(w).and(M.fromNumber(16383).shiftLeft(47))),N.high=N.high.or(y.high.and(M.fromNumber(140737488355327)));else N.high=N.high.or(M.fromNumber(w&16383).shiftLeft(49)),N.high=N.high.or(y.high.and(M.fromNumber(562949953421311)));if(N.low=y.low,$)N.high=N.high.or(M.fromString("9223372036854775808"));const G1=A.allocate(16);return T=0,G1[T++]=N.low.low&255,G1[T++]=N.low.low>>8&255,G1[T++]=N.low.low>>16&255,G1[T++]=N.low.low>>24&255,G1[T++]=N.low.high&255,G1[T++]=N.low.high>>8&255,G1[T++]=N.low.high>>16&255,G1[T++]=N.low.high>>24&255,G1[T++]=N.high.low&255,G1[T++]=N.high.low>>8&255,G1[T++]=N.high.low>>16&255,G1[T++]=N.high.low>>24&255,G1[T++]=N.high.high&255,G1[T++]=N.high.high>>8&255,G1[T++]=N.high.high>>16&255,G1[T++]=N.high.high>>24&255,new Z0(G1)}toString(){let Z,J=0;const $=new Array(36);for(let T=0;T<$.length;T++)$[T]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,q;const F=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,V=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,V),high:new M(j,U)}.high.lessThan(M.ZERO))F.push("-");const D=U>>26&NO;if(D>>3===3)if(D===BO)return F.join("")+"Infinity";else if(D===CO)return"NaN";else Z=U>>15&dz,Q=8+(U>>14&1);else Q=U>>14&7,Z=U>>17&dz;const B=Z-gz;if(K.parts[0]=(U&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=V,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(q=3;q>=0;q--){let T=0;const f=hO(K);if(K=f.quotient,T=f.rem.low,!T)continue;for(G=8;G>=0;G--)$[q*9+G]=T%10,T=Math.floor(T/10)}if(Y)J=1,$[X]=0;else{J=36;while(!$[X])J=J-1,X=X+1}const w=J-1+B;if(w>=34||w<=-7||B>0){if(J>34){if(F.push("0"),B>0)F.push(`E+${B}`);else if(B<0)F.push(`E${B}`);return F.join("")}if(F.push(`${$[X++]}`),J=J-1,J)F.push(".");for(let T=0;T<J;T++)F.push(`${$[X++]}`);if(F.push("E"),w>0)F.push(`+${w}`);else F.push(`${w}`)}else if(B>=0)for(let T=0;T<J;T++)F.push(`${$[X++]}`);else{let T=J+B;if(T>0)for(let f=0;f<T;f++)F.push(`${$[X++]}`);else F.push("0");F.push(".");while(T++<0)F.push("0");for(let f=0;f<J-Math.max(T-1,0);f++)F.push(`${$[X++]}`)}return F.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(Z){return Z0.fromString(Z.$numberDecimal)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Decimal128("${this.toString()}")`}}class O6 extends q0{get _bsontype(){return"Double"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z}valueOf(){return this.value}toJSON(){return this.value}toString(Z){return this.value.toString(Z)}toExtendedJSON(Z){if(Z&&(Z.legacy||Z.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(Z,J){const $=parseFloat(Z.$numberDouble);return J&&J.relaxed?$:new O6($)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Double(${this.toExtendedJSON().$numberDouble})`}}class S6 extends q0{get _bsontype(){return"Int32"}constructor(Z){super();if(Z instanceof Number)Z=Z.valueOf();this.value=+Z|0}valueOf(){return this.value}toString(Z){return this.value.toString(Z)}toJSON(){return this.value}toExtendedJSON(Z){if(Z&&(Z.relaxed||Z.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(Z,J){return J&&J.relaxed?parseInt(Z.$numberInt,10):new S6(Z.$numberInt)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Int32(${this.valueOf()})`}}class z4 extends q0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new z4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MaxKey()"}}class V4 extends q0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return"new MinKey()"}}var yO=new RegExp("^[0-9a-fA-F]{24}$"),W4=null,S8=Symbol("id");class V1 extends q0{get _bsontype(){return"ObjectId"}constructor(Z){super();let J;if(typeof Z==="object"&&Z&&"id"in Z){if(typeof Z.id!=="string"&&!ArrayBuffer.isView(Z.id))throw new R("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in Z&&typeof Z.toHexString==="function")J=A.fromHex(Z.toHexString());else J=Z.id}else J=Z;if(J==null||typeof J==="number")this[S8]=V1.generate(typeof J==="number"?J:void 0);else if(ArrayBuffer.isView(J)&&J.byteLength===12)this[S8]=A.toLocalBufferType(J);else if(typeof J==="string")if(J.length===12){const $=A.fromUTF8(J);if($.byteLength===12)this[S8]=$;else throw new R("Argument passed in must be a string of 12 bytes")}else if(J.length===24&&yO.test(J))this[S8]=A.fromHex(J);else throw new R("Argument passed in must be a string of 12 bytes or a string of 24 hex characters or an integer");else throw new R("Argument passed in does not match the accepted types");if(V1.cacheHexString)this.__id=A.toHex(this.id)}get id(){return this[S8]}set id(Z){if(this[S8]=Z,V1.cacheHexString)this.__id=A.toHex(Z)}toHexString(){if(V1.cacheHexString&&this.__id)return this.__id;const Z=A.toHex(this.id);if(V1.cacheHexString&&!this.__id)this.__id=Z;return Z}static getInc(){return V1.index=(V1.index+1)%16777215}static generate(Z){if(typeof Z!=="number")Z=Math.floor(Date.now()/1000);const J=V1.getInc(),$=A.allocate(12);if(q5.fromUint8Array($).setUint32(0,Z,!1),W4===null)W4=A.randomBytes(5);return $[4]=W4[0],$[5]=W4[1],$[6]=W4[2],$[7]=W4[3],$[8]=W4[4],$[11]=J&255,$[10]=J>>8&255,$[9]=J>>16&255,$}toString(Z){if(Z==="base64")return A.toBase64(this.id);if(Z==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}equals(Z){if(Z===void 0||Z===null)return!1;if(Z instanceof V1)return this[S8][11]===Z[S8][11]&&A.equals(this[S8],Z[S8]);if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12&&B6(this.id))return A.equals(this.id,A.fromISO88591(Z));if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===24)return Z.toLowerCase()===this.toHexString();if(typeof Z==="string"&&V1.isValid(Z)&&Z.length===12)return A.equals(A.fromUTF8(Z),this.id);if(typeof Z==="object"&&"toHexString"in Z&&typeof Z.toHexString==="function"){const J=Z.toHexString(),$=this.toHexString().toLowerCase();return typeof J==="string"&&J.toLowerCase()===$}return!1}getTimestamp(){const Z=new Date,J=q5.fromUint8Array(this.id).getUint32(0,!1);return Z.setTime(Math.floor(J)*1000),Z}static createPk(){return new V1}static createFromTime(Z){const J=A.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return q5.fromUint8Array(J).setUint32(0,Z,!1),new V1(J)}static createFromHexString(Z){if(Z?.length!==24)throw new R("hex string must be 24 characters");return new V1(A.fromHex(Z))}static createFromBase64(Z){if(Z?.length!==16)throw new R("base64 string must be 16 characters");return new V1(A.fromBase64(Z))}static isValid(Z){if(Z==null)return!1;try{return new V1(Z),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(Z){return new V1(Z.$oid)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new ObjectId("${this.toHexString()}")`}}V1.index=Math.floor(Math.random()*16777215);class u0 extends q0{get _bsontype(){return"BSONRegExp"}constructor(Z,J){super();if(this.pattern=Z,this.options=kO(J??""),this.pattern.indexOf("\0")!==-1)throw new R(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new R(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new R(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(Z){return Z?Z.split("").sort().join(""):""}toExtendedJSON(Z){if(Z=Z||{},Z.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(Z){if("$regex"in Z)if(typeof Z.$regex!=="string"){if(Z.$regex._bsontype==="BSONRegExp")return Z}else return new u0(Z.$regex,u0.parseOptions(Z.$options));if("$regularExpression"in Z)return new u0(Z.$regularExpression.pattern,u0.parseOptions(Z.$regularExpression.options));throw new R(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(Z)}`)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new BSONRegExp(${JSON.stringify(this.pattern)}, ${JSON.stringify(this.options)})`}}class U4 extends q0{get _bsontype(){return"BSONSymbol"}constructor(Z){super();this.value=Z}valueOf(){return this.value}toString(){return this.value}inspect(){return`new BSONSymbol("${this.value}")`}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(Z){return new U4(Z.$symbol)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}}var _O=M;class m0 extends _O{get _bsontype(){return"Timestamp"}constructor(Z){if(Z==null)super(0,0,!0);else if(typeof Z==="bigint")super(Z,!0);else if(M.isLong(Z))super(Z.low,Z.high,!0);else if(typeof Z==="object"&&"t"in Z&&"i"in Z){if(typeof Z.t!=="number"&&(typeof Z.t!=="object"||Z.t._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide t as a number");if(typeof Z.i!=="number"&&(typeof Z.i!=="object"||Z.i._bsontype!=="Int32"))throw new R("Timestamp constructed from { t, i } must provide i as a number");const J=Number(Z.t),$=Number(Z.i);if(J<0||Number.isNaN(J))throw new R("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new R("Timestamp constructed from { t, i } must provide a positive i");if(J>4294967295)throw new R("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new R("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,J,!0)}else throw new R("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(Z){return new m0(M.fromInt(Z,!0))}static fromNumber(Z){return new m0(M.fromNumber(Z,!0))}static fromBits(Z,J){return new m0({i:Z,t:J})}static fromString(Z,J){return new m0(M.fromString(Z,!0,J))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(Z){const J=M.isLong(Z.$timestamp.i)?Z.$timestamp.i.getLowBitsUnsigned():Z.$timestamp.i,$=M.isLong(Z.$timestamp.t)?Z.$timestamp.t.getLowBitsUnsigned():Z.$timestamp.t;return new m0({t:$,i:J})}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new Timestamp({ t: ${this.getHighBits()}, i: ${this.getLowBits()} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var xO=128,vO=192,fO=224,gO=240,bO=248,mO=192,uO=224,dO=240,pO=128,cO=M.fromNumber(rz),lO=M.fromNumber(oz),aO=/^\$ref$|^\$id$|^\$db$/,QZ=/\x00/,lz=new Set(["$db","$ref","$id","$clusterTime"]),t4=new DataView(new ArrayBuffer(8),0,8),iO=new Uint8Array(t4.buffer,0,4),KZ=new Uint8Array(t4.buffer,0,8),nO={$oid:V1,$binary:s,$uuid:s,$symbol:U4,$numberInt:S6,$numberDecimal:Z0,$numberDouble:O6,$numberLong:M,$minKey:V4,$maxKey:z4,$regex:u0,$regularExpression:u0,$timestamp:m0},rO={Binary:(Z)=>new s(Z.value(),Z.sub_type),Code:(Z)=>new Z6(Z.code,Z.scope),DBRef:(Z)=>new y8(Z.collection||Z.namespace,Z.oid,Z.db,Z.fields),Decimal128:(Z)=>new Z0(Z.bytes),Double:(Z)=>new O6(Z.value),Int32:(Z)=>new S6(Z.value),Long:(Z)=>M.fromBits(Z.low!=null?Z.low:Z.low_,Z.low!=null?Z.high:Z.high_,Z.low!=null?Z.unsigned:Z.unsigned_),MaxKey:()=>new z4,MinKey:()=>new V4,ObjectId:(Z)=>new V1(Z),BSONRegExp:(Z)=>new u0(Z.pattern,Z.options),BSONSymbol:(Z)=>new U4(Z.value),Timestamp:(Z)=>m0.fromBits(Z.low,Z.high)},M4=Object.create(null);M4.parse=jV;M4.stringify=AV;M4.serialize=eO;M4.deserialize=ZS;Object.freeze(M4);var LV=17825792,C6=A.allocate(LV),JS=Object.freeze({__proto__:null,BSONError:R,BSONRegExp:u0,BSONRuntimeError:F5,BSONSymbol:U4,BSONType:WV,BSONValue:q0,BSONVersionError:h6,Binary:s,Code:Z6,DBRef:y8,Decimal128:Z0,Double:O6,EJSON:M4,Int32:S6,Long:M,MaxKey:z4,MinKey:V4,ObjectId:V1,Timestamp:m0,UUID:S1,calculateObjectSize:TV,deserialize:DV,deserializeStream:IV,serialize:RV,serializeWithBufferAndIndex:PV,setInternalBufferSize:wV});$S.BSON=JS;$S.BSONError=R;$S.BSONRegExp=u0;$S.BSONRuntimeError=F5;$S.BSONSymbol=U4;$S.BSONType=WV;$S.BSONValue=q0;$S.BSONVersionError=h6;$S.Binary=s;$S.Code=Z6;$S.DBRef=y8;$S.Decimal128=Z0;$S.Double=O6;$S.EJSON=M4;$S.Int32=S6;$S.Long=M;$S.MaxKey=z4;$S.MinKey=V4;$S.ObjectId=V1;$S.Timestamp=m0;$S.UUID=S1;$S.calculateObjectSize=TV;$S.deserialize=DV;$S.deserializeStream=IV;$S.serialize=RV;$S.serializeWithBufferAndIndex=PV;$S.setInternalBufferSize=wV});var D1=z((B1)=>{var OS=function(Z){const{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}=Z;return{fieldsAsRaw:J,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:q,raw:F,enableUtf8Validation:W}},SS=function(Z,J){const $=J?.bsonOptions;return{raw:Z?.raw??$?.raw??!1,useBigInt64:Z?.useBigInt64??$?.useBigInt64??!1,promoteLongs:Z?.promoteLongs??$?.promoteLongs??!0,promoteValues:Z?.promoteValues??$?.promoteValues??!0,promoteBuffers:Z?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:Z?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:Z?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:Z?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:Z?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:Z?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(B1,"__esModule",{value:!0});B1.resolveBSONOptions=B1.pluckBSONSerializeOptions=B1.Timestamp=B1.serialize=B1.ObjectId=B1.MinKey=B1.MaxKey=B1.Long=B1.Int32=B1.Double=B1.deserialize=B1.Decimal128=B1.DBRef=B1.Code=B1.calculateObjectSize=B1.BSONType=B1.BSONSymbol=B1.BSONRegExp=B1.BSON=B1.Binary=void 0;var v1=H5();Object.defineProperty(B1,"Binary",{enumerable:!0,get:function(){return v1.Binary}});Object.defineProperty(B1,"BSON",{enumerable:!0,get:function(){return v1.BSON}});Object.defineProperty(B1,"BSONRegExp",{enumerable:!0,get:function(){return v1.BSONRegExp}});Object.defineProperty(B1,"BSONSymbol",{enumerable:!0,get:function(){return v1.BSONSymbol}});Object.defineProperty(B1,"BSONType",{enumerable:!0,get:function(){return v1.BSONType}});Object.defineProperty(B1,"calculateObjectSize",{enumerable:!0,get:function(){return v1.calculateObjectSize}});Object.defineProperty(B1,"Code",{enumerable:!0,get:function(){return v1.Code}});Object.defineProperty(B1,"DBRef",{enumerable:!0,get:function(){return v1.DBRef}});Object.defineProperty(B1,"Decimal128",{enumerable:!0,get:function(){return v1.Decimal128}});Object.defineProperty(B1,"deserialize",{enumerable:!0,get:function(){return v1.deserialize}});Object.defineProperty(B1,"Double",{enumerable:!0,get:function(){return v1.Double}});Object.defineProperty(B1,"Int32",{enumerable:!0,get:function(){return v1.Int32}});Object.defineProperty(B1,"Long",{enumerable:!0,get:function(){return v1.Long}});Object.defineProperty(B1,"MaxKey",{enumerable:!0,get:function(){return v1.MaxKey}});Object.defineProperty(B1,"MinKey",{enumerable:!0,get:function(){return v1.MinKey}});Object.defineProperty(B1,"ObjectId",{enumerable:!0,get:function(){return v1.ObjectId}});Object.defineProperty(B1,"serialize",{enumerable:!0,get:function(){return v1.serialize}});Object.defineProperty(B1,"Timestamp",{enumerable:!0,get:function(){return v1.Timestamp}});B1.pluckBSONSerializeOptions=OS;B1.resolveBSONOptions=SS});var j4=z((NV)=>{Object.defineProperty(NV,"__esModule",{value:!0});NV.OP_MSG=NV.OP_COMPRESSED=NV.OP_DELETE=NV.OP_QUERY=NV.OP_INSERT=NV.OP_UPDATE=NV.OP_REPLY=NV.MIN_SUPPORTED_QE_SERVER_VERSION=NV.MIN_SUPPORTED_QE_WIRE_VERSION=NV.MAX_SUPPORTED_WIRE_VERSION=NV.MIN_SUPPORTED_WIRE_VERSION=NV.MAX_SUPPORTED_SERVER_VERSION=NV.MIN_SUPPORTED_SERVER_VERSION=void 0;NV.MIN_SUPPORTED_SERVER_VERSION="3.6";NV.MAX_SUPPORTED_SERVER_VERSION="7.0";NV.MIN_SUPPORTED_WIRE_VERSION=6;NV.MAX_SUPPORTED_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_WIRE_VERSION=21;NV.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";NV.OP_REPLY=1;NV.OP_UPDATE=2001;NV.OP_INSERT=2002;NV.OP_QUERY=2004;NV.OP_DELETE=2006;NV.OP_COMPRESSED=2012;NV.OP_MSG=2013});var f1=z((CV)=>{Object.defineProperty(CV,"__esModule",{value:!0});CV.TOPOLOGY_EVENTS=CV.CMAP_EVENTS=CV.HEARTBEAT_EVENTS=CV.RESUME_TOKEN_CHANGED=CV.END=CV.CHANGE=CV.INIT=CV.MORE=CV.RESPONSE=CV.SERVER_HEARTBEAT_FAILED=CV.SERVER_HEARTBEAT_SUCCEEDED=CV.SERVER_HEARTBEAT_STARTED=CV.COMMAND_FAILED=CV.COMMAND_SUCCEEDED=CV.COMMAND_STARTED=CV.CLUSTER_TIME_RECEIVED=CV.CONNECTION_CHECKED_IN=CV.CONNECTION_CHECKED_OUT=CV.CONNECTION_CHECK_OUT_FAILED=CV.CONNECTION_CHECK_OUT_STARTED=CV.CONNECTION_CLOSED=CV.CONNECTION_READY=CV.CONNECTION_CREATED=CV.CONNECTION_POOL_READY=CV.CONNECTION_POOL_CLEARED=CV.CONNECTION_POOL_CLOSED=CV.CONNECTION_POOL_CREATED=CV.TOPOLOGY_DESCRIPTION_CHANGED=CV.TOPOLOGY_CLOSED=CV.TOPOLOGY_OPENING=CV.SERVER_DESCRIPTION_CHANGED=CV.SERVER_CLOSED=CV.SERVER_OPENING=CV.DESCRIPTION_RECEIVED=CV.UNPINNED=CV.PINNED=CV.MESSAGE=CV.ENDED=CV.CLOSED=CV.CONNECT=CV.OPEN=CV.CLOSE=CV.TIMEOUT=CV.ERROR=CV.SYSTEM_JS_COLLECTION=CV.SYSTEM_COMMAND_COLLECTION=CV.SYSTEM_USER_COLLECTION=CV.SYSTEM_PROFILE_COLLECTION=CV.SYSTEM_INDEX_COLLECTION=CV.SYSTEM_NAMESPACE_COLLECTION=void 0;CV.LEGACY_HELLO_COMMAND_CAMEL_CASE=CV.LEGACY_HELLO_COMMAND=CV.MONGO_CLIENT_EVENTS=CV.LOCAL_SERVER_EVENTS=CV.SERVER_RELAY_EVENTS=CV.APM_EVENTS=void 0;CV.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";CV.SYSTEM_INDEX_COLLECTION="system.indexes";CV.SYSTEM_PROFILE_COLLECTION="system.profile";CV.SYSTEM_USER_COLLECTION="system.users";CV.SYSTEM_COMMAND_COLLECTION="$cmd";CV.SYSTEM_JS_COLLECTION="system.js";CV.ERROR="error";CV.TIMEOUT="timeout";CV.CLOSE="close";CV.OPEN="open";CV.CONNECT="connect";CV.CLOSED="closed";CV.ENDED="ended";CV.MESSAGE="message";CV.PINNED="pinned";CV.UNPINNED="unpinned";CV.DESCRIPTION_RECEIVED="descriptionReceived";CV.SERVER_OPENING="serverOpening";CV.SERVER_CLOSED="serverClosed";CV.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";CV.TOPOLOGY_OPENING="topologyOpening";CV.TOPOLOGY_CLOSED="topologyClosed";CV.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";CV.CONNECTION_POOL_CREATED="connectionPoolCreated";CV.CONNECTION_POOL_CLOSED="connectionPoolClosed";CV.CONNECTION_POOL_CLEARED="connectionPoolCleared";CV.CONNECTION_POOL_READY="connectionPoolReady";CV.CONNECTION_CREATED="connectionCreated";CV.CONNECTION_READY="connectionReady";CV.CONNECTION_CLOSED="connectionClosed";CV.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";CV.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";CV.CONNECTION_CHECKED_OUT="connectionCheckedOut";CV.CONNECTION_CHECKED_IN="connectionCheckedIn";CV.CLUSTER_TIME_RECEIVED="clusterTimeReceived";CV.COMMAND_STARTED="commandStarted";CV.COMMAND_SUCCEEDED="commandSucceeded";CV.COMMAND_FAILED="commandFailed";CV.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";CV.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";CV.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";CV.RESPONSE="response";CV.MORE="more";CV.INIT="init";CV.CHANGE="change";CV.END="end";CV.RESUME_TOKEN_CHANGED="resumeTokenChanged";CV.HEARTBEAT_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED]);CV.CMAP_EVENTS=Object.freeze([CV.CONNECTION_POOL_CREATED,CV.CONNECTION_POOL_READY,CV.CONNECTION_POOL_CLEARED,CV.CONNECTION_POOL_CLOSED,CV.CONNECTION_CREATED,CV.CONNECTION_READY,CV.CONNECTION_CLOSED,CV.CONNECTION_CHECK_OUT_STARTED,CV.CONNECTION_CHECK_OUT_FAILED,CV.CONNECTION_CHECKED_OUT,CV.CONNECTION_CHECKED_IN]);CV.TOPOLOGY_EVENTS=Object.freeze([CV.SERVER_OPENING,CV.SERVER_CLOSED,CV.SERVER_DESCRIPTION_CHANGED,CV.TOPOLOGY_OPENING,CV.TOPOLOGY_CLOSED,CV.TOPOLOGY_DESCRIPTION_CHANGED,CV.ERROR,CV.TIMEOUT,CV.CLOSE]);CV.APM_EVENTS=Object.freeze([CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED]);CV.SERVER_RELAY_EVENTS=Object.freeze([CV.SERVER_HEARTBEAT_STARTED,CV.SERVER_HEARTBEAT_SUCCEEDED,CV.SERVER_HEARTBEAT_FAILED,CV.COMMAND_STARTED,CV.COMMAND_SUCCEEDED,CV.COMMAND_FAILED,...CV.CMAP_EVENTS]);CV.LOCAL_SERVER_EVENTS=Object.freeze([CV.CONNECT,CV.DESCRIPTION_RECEIVED,CV.CLOSED,CV.ENDED]);CV.MONGO_CLIENT_EVENTS=Object.freeze([...CV.CMAP_EVENTS,...CV.APM_EVENTS,...CV.TOPOLOGY_EVENTS,...CV.HEARTBEAT_EVENTS]);CV.LEGACY_HELLO_COMMAND="ismaster";CV.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var d0=z(($U)=>{Object.defineProperty($U,"__esModule",{value:!0});$U.ReadConcern=$U.ReadConcernLevel=void 0;$U.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class o4{constructor(Z){this.level=$U.ReadConcernLevel[Z]??Z}static fromOptions(Z){if(Z==null)return;if(Z.readConcern){const{readConcern:J}=Z;if(J instanceof o4)return J;else if(typeof J==="string")return new o4(J);else if("level"in J&&J.level)return new o4(J.level)}if(Z.level)return new o4(Z.level);return}static get MAJORITY(){return $U.ReadConcernLevel.majority}static get AVAILABLE(){return $U.ReadConcernLevel.available}static get LINEARIZABLE(){return $U.ReadConcernLevel.linearizable}static get SNAPSHOT(){return $U.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}$U.ReadConcern=o4});var y1=z((YU)=>{Object.defineProperty(YU,"__esModule",{value:!0});YU.ReadPreference=YU.ReadPreferenceMode=void 0;var A4=h();YU.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class a{constructor(Z,J,$){if(!a.isValid(Z))throw new A4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(Z)}`);if($==null&&typeof J==="object"&&!Array.isArray(J))$=J,J=void 0;else if(J&&!Array.isArray(J))throw new A4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=Z,this.tags=J,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new A4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===a.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new A4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(Z){return new a(Z)}static fromOptions(Z){if(!Z)return;const J=Z.readPreference??Z.session?.transaction.options.readPreference,$=Z.readPreferenceTags;if(J==null)return;if(typeof J==="string")return new a(J,$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:Z.hedge});else if(!(J instanceof a)&&typeof J==="object"){const X=J.mode||J.preference;if(X&&typeof X==="string")return new a(X,J.tags??$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:Z.hedge})}if($)J.tags=$;return J}static translate(Z){if(Z.readPreference==null)return Z;const J=Z.readPreference;if(typeof J==="string")Z.readPreference=new a(J);else if(J&&!(J instanceof a)&&typeof J==="object"){const $=J.mode||J.preference;if($&&typeof $==="string")Z.readPreference=new a($,J.tags,{maxStalenessSeconds:J.maxStalenessSeconds})}else if(!(J instanceof a))throw new A4.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return Z}static isValid(Z){return(new Set([a.PRIMARY,a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST,null])).has(Z)}isValid(Z){return a.isValid(typeof Z==="string"?Z:this.mode)}secondaryOk(){return(new Set([a.PRIMARY_PREFERRED,a.SECONDARY,a.SECONDARY_PREFERRED,a.NEAREST])).has(this.mode)}equals(Z){return Z.mode===this.mode}toJSON(){const Z={mode:this.mode};if(Array.isArray(this.tags))Z.tags=this.tags;if(this.maxStalenessSeconds)Z.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)Z.hedge=this.hedge;return Z}}a.PRIMARY=YU.ReadPreferenceMode.primary;a.PRIMARY_PREFERRED=YU.ReadPreferenceMode.primaryPreferred;a.SECONDARY=YU.ReadPreferenceMode.secondary;a.SECONDARY_PREFERRED=YU.ReadPreferenceMode.secondaryPreferred;a.NEAREST=YU.ReadPreferenceMode.nearest;a.primary=new a(YU.ReadPreferenceMode.primary);a.primaryPreferred=new a(YU.ReadPreferenceMode.primaryPreferred);a.secondary=new a(YU.ReadPreferenceMode.secondary);a.secondaryPreferred=new a(YU.ReadPreferenceMode.secondaryPreferred);a.nearest=new a(YU.ReadPreferenceMode.nearest);YU.ReadPreference=a});var p0=z((KU)=>{var Vy=function(Z){Z.forEach(zy.clearTimeout),Z.clear()},Uy=function(Z,J){if(Z.clusterTime==null)Z.clusterTime=J;else if(J.clusterTime.greaterThan(Z.clusterTime.clusterTime))Z.clusterTime=J};Object.defineProperty(KU,"__esModule",{value:!0});KU._advanceClusterTime=KU.drainTimerQueue=KU.ServerType=KU.TopologyType=KU.STATE_CONNECTED=KU.STATE_CONNECTING=KU.STATE_CLOSED=KU.STATE_CLOSING=void 0;var zy=import.meta.require("timers");KU.STATE_CLOSING="closing";KU.STATE_CLOSED="closed";KU.STATE_CONNECTING="connecting";KU.STATE_CONNECTED="connected";KU.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});KU.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});KU.drainTimerQueue=Vy;KU._advanceClusterTime=Uy});var A0=z((qU)=>{Object.defineProperty(qU,"__esModule",{value:!0});qU.WriteConcern=qU.WRITE_CONCERN_KEYS=void 0;qU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class z5{constructor(Z,J,$,X){if(Z!=null)if(!Number.isNaN(Number(Z)))this.w=Number(Z);else this.w=Z;if(J!=null)this.wtimeoutMS=this.wtimeout=J;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(Z,J){const $={};if(J.w!=null)$.w=J.w;if(J.wtimeoutMS!=null)$.wtimeout=J.wtimeoutMS;if(J.journal!=null)$.j=J.j;return Z.writeConcern=$,Z}static fromOptions(Z,J){if(Z==null)return;J=J??{};let $;if(typeof Z==="string"||typeof Z==="number")$={w:Z};else if(Z instanceof z5)$=Z;else $=Z.writeConcern;const X=J instanceof z5?J:J.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:q=void 0,wtimeoutMS:F=void 0}={...X,...$};if(Y!=null||Q!=null||F!=null||K!=null||q!=null||G!=null)return new z5(Y,Q??F,K??q,G);return}}qU.WriteConcern=z5});var _=z((RU)=>{var ky=function(Z,J){for(let $ of J)if(Z===$||$.startsWith("*.")&&Z?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&Z?.endsWith($.substring(2,$.length)))return!0;return!1},_y=function(Z){if(typeof Z!=="string")throw new J0.MongoInvalidArgumentError("Collection name must be a String");if(!Z||Z.indexOf("..")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot be empty");if(Z.indexOf("$")!==-1&&Z.match(/((^\$cmd)|(oplog\.\$main))/)==null)throw new J0.MongoInvalidArgumentError("Collection names must not contain '$'");if(Z.match(/^\.|\.$/)!=null)throw new J0.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(Z.indexOf("\0")!==-1)throw new J0.MongoInvalidArgumentError("Collection names cannot contain a null character")},xy=function(Z){let J=void 0;if(typeof Z==="string")J=Z;else if(Array.isArray(Z))J={},Z.forEach(($)=>{J[$]=1});else if(Z!=null&&typeof Z==="object"){J={};for(let $ in Z)J[$]=Z[$]}return J},BX=function(Z){return vy(Z)==="[object Object]"},fy=function(Z,J){return{...Z,...J}},gy=function(Z,J){const $={};for(let X in Z)if(J.includes(X))$[X]=Z[X];return $},by=function(Z,J){if(J&&J.s.options?.retryWrites)Z.retryWrites=!0;return Z},my=function(Z){return!!Z&&typeof Z.then==="function"},uy=function(Z,J,$){const X=zU(J).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)Z.collation=$.collation;else throw new J0.MongoCompatibilityError("Current topology does not support collation")},dy=function(Z,J,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},Z.readConcern||{});if(J.s.readConcern)Object.assign(X,J.s.readConcern);if(Object.keys(X).length>0)Object.assign(Z,{readConcern:X})},py=function(Z,J){if(Z.explain)return Z;return{explain:Z,verbosity:J.verbosity}},zU=function(Z){if("topology"in Z&&Z.topology)return Z.topology;else if("client"in Z&&Z.client.topology)return Z.client.topology;throw new J0.MongoNotConnectedError("MongoClient must be connected to perform this operation")},cy=function(Z){return M5.fromString(Z)};function*ly(Z=0){let J=Z;while(!0){const $=J;J+=1,yield $}}var ay=function(Z,J){const $=Z();if(J==null)return $;$.then((X)=>J(void 0,X),(X)=>J(X));return},iy=function(Z){return Z.split(".")[0]},sy=function(){const Z=Ty.randomBytes(16);return Z[6]=Z[6]&15|64,Z[8]=Z[8]&63|128,Z},ny=function(Z){if(Z){if(Z.loadBalanced)return By.MAX_SUPPORTED_WIRE_VERSION;if(Z.hello)return Z.hello.maxWireVersion;if("lastHello"in Z&&typeof Z.lastHello==="function"){const J=Z.lastHello();if(J)return J.maxWireVersion}if(Z.description&&"maxWireVersion"in Z.description&&Z.description.maxWireVersion!=null)return Z.description.maxWireVersion}return 0},ty=function(Z,J,$){Z=Z||[];let X=0,Y=0;for(X=0;X<Z.length;++X)Y++,J(Z[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===Z.length&&Y<=0)$()}},ry=function(Z,J){if(!Array.isArray(Z)||!Array.isArray(J))return!1;return Z.length===J.length&&Z.every(($,X)=>$===J[X])},oy=function(Z,J){if(Z===J)return!0;if(!Z||!J)return Z===J;if(Z==null&&J!=null||Z!=null&&J==null)return!1;if(Z.constructor.name!==J.constructor.name)return!1;if(Z.message!==J.message)return!1;return!0},ey=function(Z){return function J($,X){const Y=Z[$.s.state];if(Y&&Y.indexOf(X)<0)throw new J0.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},VU=function(){const Z=process.hrtime();return Math.floor(Z[0]*1000+Z[1]/1e6)},Zk=function(Z){if(typeof Z!=="number")throw new J0.MongoInvalidArgumentError("Numeric value required to calculate duration");const J=VU()-Z;return J<0?0:J},UU=function(Z){if(Array.isArray(Z)){for(let $ of Z)if(UU($))return!0;return!1}const J=Object.keys(Z);return J.length>0&&J[0][0]==="$"},Jk=function(Z,J){const $=Object.assign({},J,HU.resolveBSONOptions(J,Z));if(!J?.session?.inTransaction()){const Q=hy.ReadConcern.fromOptions(J)??Z?.readConcern;if(Q)$.readConcern=Q;const K=yy.WriteConcern.fromOptions(J)??Z?.writeConcern;if(K)$.writeConcern=K}const Y=Oy.ReadPreference.fromOptions(J)??Z?.readPreference;if(Y)$.readPreference=Y;return $},MU=function(Z,J){Z=Array.isArray(Z)?new Set(Z):Z,J=Array.isArray(J)?new Set(J):J;for(let $ of J)if(!Z.has($))return!1;return!0},$k=function(Z){return Z[Cy.LEGACY_HELLO_COMMAND]||Z.hello?!0:!1},Xk=function(Z,J){const $=new Set(Z);for(let X of J)$.delete(X);return $},jU=function(Z,J=void 0){if(!BX(Z))return!1;const $=Z.constructor;if($&&$.prototype){if(!BX($.prototype))return!1;if(!Yk($.prototype,"isPrototypeOf"))return!1}if(J){const X=Object.keys(Z);return MU(X,J)}return!0},CX=function(Z){if(Z==null)return Z;else if(Array.isArray(Z))return Z.map(($)=>CX($));else if(jU(Z)){const $={};for(let X in Z)$[X]=CX(Z[X]);return $}const J=Z.constructor;if(J)switch(J.name.toLowerCase()){case"date":return new J(Number(Z));case"map":return new Map(Z);case"set":return new Set(Z);case"buffer":return Buffer.from(Z)}return Z},LU=function(Z){return process.emitWarning(Z,{code:RU.MONGODB_WARNING_CODE})},Qk=function(Z){if(!WU.has(Z))return WU.add(Z),LU(Z)},Kk=function(Z){return Object.values(Z).join(", ")},Gk=function(Z){if(!Z)return!1;if(Z.loadBalanced)return!0;if(Z.description.logicalSessionTimeoutMinutes!=null){if(Z.description.type!==Sy.ServerType.Standalone)return!0}return!1},qk=function(Z,J=0){const $=Array.from(Z);if(J>$.length)throw new J0.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=J%$.length===0?1:$.length-J;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return J%$.length===0?$:$.slice(Y)},Fk=function(Z,J){if(Z.aggregate||Z.count||Z.distinct||Z.find||Z.geoNear)return!0;if(Z.mapReduce&&J&&J.out&&(J.out.inline===1||J.out==="inline"))return!0;return!1},Wk=function(){let Z=null;if(typeof process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE==="string"&&process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE.length>0)try{Z=import.meta.require(process.env.MONGODB_CLIENT_ENCRYPTION_OVERRIDE)}catch{}else try{Z=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch{}return Z},Hk=function(Z,J){if(Z==null&&J==null)return 0;if(Z==null)return-1;if(J==null)return 1;return RU.ByteUtils.compare(Z.id,J.id)},wU=function(Z){if(typeof Z==="number")return Math.trunc(Z);const J=Number.parseInt(String(Z),10);return Number.isNaN(J)?null:J},zk=function(Z){const J=wU(Z);return J!=null&&J>=0?J:null},Vk=function(Z,J){const $=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,X=J.endsWith(".")?J.slice(0,J.length-1):J,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function Uk(Z,J={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Ey.parse(Z),...J},Q=Iy.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(q)=>{G+=q}),K.once("end",()=>{if(J.json===!1){$(G);return}try{const q=JSON.parse(G);$(q)}catch{X(new J0.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new J0.MongoNetworkTimeoutError(`Network request to ${Z} timed out after ${J.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}Object.defineProperty(RU,"__esModule",{value:!0});RU.matchesParentDomain=RU.parseUnsignedInteger=RU.parseInteger=RU.compareObjectId=RU.getMongoDBClientEncryption=RU.commandSupportsReadConcern=RU.shuffle=RU.supportsRetryableWrites=RU.enumToString=RU.emitWarningOnce=RU.emitWarning=RU.MONGODB_WARNING_CODE=RU.DEFAULT_PK_FACTORY=RU.HostAddress=RU.BufferPool=RU.List=RU.deepCopy=RU.isRecord=RU.setDifference=RU.isHello=RU.isSuperset=RU.resolveOptions=RU.hasAtomicOperators=RU.calculateDurationInMs=RU.now=RU.makeStateMachine=RU.errorStrictEqual=RU.arrayStrictEqual=RU.eachAsync=RU.maxWireVersion=RU.uuidV4=RU.databaseNamespace=RU.maybeCallback=RU.makeCounter=RU.MongoDBCollectionNamespace=RU.MongoDBNamespace=RU.ns=RU.getTopology=RU.decorateWithExplain=RU.decorateWithReadConcern=RU.decorateWithCollation=RU.isPromiseLike=RU.applyRetryableWrites=RU.filterOptions=RU.mergeOptions=RU.isObject=RU.normalizeHintField=RU.checkCollectionName=RU.hostMatchesWildcards=RU.ByteUtils=void 0;RU.request=void 0;var Ty=import.meta.require("crypto"),Iy=import.meta.require("http"),Ey=import.meta.require("url"),Ny=import.meta.require("url"),HU=D1(),By=j4(),Cy=f1(),J0=h(),hy=d0(),Oy=y1(),Sy=p0(),yy=A0();RU.ByteUtils={toLocalBufferType(Z){return Buffer.isBuffer(Z)?Z:Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength)},equals(Z,J){return RU.ByteUtils.toLocalBufferType(Z).equals(J)},compare(Z,J){return RU.ByteUtils.toLocalBufferType(Z).compare(J)},toBase64(Z){return RU.ByteUtils.toLocalBufferType(Z).toString("base64")}};RU.hostMatchesWildcards=ky;RU.checkCollectionName=_y;RU.normalizeHintField=xy;var vy=(Z)=>Object.prototype.toString.call(Z);RU.isObject=BX;RU.mergeOptions=fy;RU.filterOptions=gy;RU.applyRetryableWrites=by;RU.isPromiseLike=my;RU.decorateWithCollation=uy;RU.decorateWithReadConcern=dy;RU.decorateWithExplain=py;RU.getTopology=zU;RU.ns=cy;class M5{constructor(Z,J){this.db=Z,this.collection=J,this.collection=J===""?void 0:J}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(Z){return new hX(this.db,Z)}static fromString(Z){if(typeof Z!=="string"||Z==="")throw new J0.MongoRuntimeError(`Cannot parse namespace from "${Z}"`);const[J,...$]=Z.split("."),X=$.join(".");return new M5(J,X===""?void 0:X)}}RU.MongoDBNamespace=M5;class hX extends M5{constructor(Z,J){super(Z,J);this.collection=J}}RU.MongoDBCollectionNamespace=hX;RU.makeCounter=ly;RU.maybeCallback=ay;RU.databaseNamespace=iy;RU.uuidV4=sy;RU.maxWireVersion=ny;RU.eachAsync=ty;RU.arrayStrictEqual=ry;RU.errorStrictEqual=oy;RU.makeStateMachine=ey;RU.now=VU;RU.calculateDurationInMs=Zk;RU.hasAtomicOperators=UU;RU.resolveOptions=Jk;RU.isSuperset=MU;RU.isHello=$k;RU.setDifference=Xk;var Yk=(Z,J)=>Object.prototype.hasOwnProperty.call(Z,J);RU.isRecord=jU;RU.deepCopy=CX;class OX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let Z of this.nodes())yield Z.value}*nodes(){let Z=this.head.next;while(Z!==this.head){const{next:J}=Z;yield Z,Z=J}}push(Z){this.count+=1;const J={next:this.head,prev:this.head.prev,value:Z};this.head.prev.next=J,this.head.prev=J}pushMany(Z){for(let J of Z)this.push(J)}unshift(Z){this.count+=1;const J={next:this.head.next,prev:this.head,value:Z};this.head.next.prev=J,this.head.next=J}remove(Z){if(Z===this.head||this.length===0)return null;this.count-=1;const{prev:J,next:$}=Z;return J.next=$,$.prev=J,Z.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(Z){for(let J of this.nodes())if(Z(J.value))this.remove(J)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}RU.List=OX;class AU{constructor(){this.buffers=new OX,this.totalByteLength=0}get length(){return this.totalByteLength}append(Z){this.buffers.push(Z),this.totalByteLength+=Z.length}getInt32(){if(this.totalByteLength<4)return null;const Z=this.buffers.first();if(Z!=null&&Z.byteLength>=4)return Z.readInt32LE(0);const J=this.read(4),$=J.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(J),$}read(Z){if(typeof Z!=="number"||Z<0)throw new J0.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(Z>this.totalByteLength)return Buffer.alloc(0);const J=Buffer.allocUnsafe(Z);for(let $=0;$<Z;){const X=this.buffers.shift();if(X==null)break;const Y=Z-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(J.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return J}}RU.BufferPool=AU;class U5{constructor(Z){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const J=Z.split(" ").join("%20");if(J.endsWith(".sock")){this.socketPath=decodeURIComponent(J);return}const $=`iLoveJS://${J}`;let X;try{X=new Ny.URL($)}catch(G){const q=new J0.MongoRuntimeError(`Unable to parse ${J} with URL`);throw q.cause=G,q}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new J0.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(Z){return new U5(Z)}static fromHostPort(Z,J){if(Z.includes(":"))Z=`[${Z}]`;return U5.fromString(`${Z}:${J}`)}static fromSrvRecord({name:Z,port:J}){return U5.fromHostPort(Z,J)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const Z=this.host??"",J=this.port??0;return{host:Z,port:J}}}RU.HostAddress=U5;RU.DEFAULT_PK_FACTORY={createPk(){return new HU.ObjectId}};RU.MONGODB_WARNING_CODE="MONGODB DRIVER";RU.emitWarning=LU;var WU=new Set;RU.emitWarningOnce=Qk;RU.enumToString=Kk;RU.supportsRetryableWrites=Gk;RU.shuffle=qk;RU.commandSupportsReadConcern=Fk;RU.getMongoDBClientEncryption=Wk;RU.compareObjectId=Hk;RU.parseInteger=wU;RU.parseUnsignedInteger=zk;RU.matchesParentDomain=Vk;RU.request=Uk});var kX=z((IU)=>{Object.defineProperty(IU,"__esModule",{value:!0});IU.Explain=IU.ExplainVerbosity=void 0;var q_=h();IU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class yX{constructor(Z){if(typeof Z==="boolean")this.verbosity=Z?IU.ExplainVerbosity.allPlansExecution:IU.ExplainVerbosity.queryPlanner;else this.verbosity=Z}static fromOptions(Z){if(Z?.explain==null)return;const J=Z.explain;if(typeof J==="boolean"||typeof J==="string")return new yX(J);throw new q_.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}IU.Explain=yX});var A5=z((BU)=>{var W_=function(){return(Z,J)=>_X(Z,J.filter(($)=>$.isWritable))},H_=function(Z){return(J,$)=>{if(!Z)return[];return $.filter((X)=>{return X.address===Z.address&&X.type!==N0.ServerType.Unknown})}},z_=function(Z,J){if(!J||!Z||Z&&Z<BU.MIN_SECONDARY_WRITE_WIRE_VERSION)return xX(j5.ReadPreference.primary);return xX(J)},V_=function(Z,J,$){if(Z.maxStalenessSeconds==null||Z.maxStalenessSeconds<0)return $;const X=Z.maxStalenessSeconds,Y=(J.heartbeatFrequencyMS+F_)/1000;if(X<Y)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<NU)throw new WZ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${NU} seconds`);if(J.type===N0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(J.servers.values()).filter(FZ)[0];return $.reduce((K,G)=>{const F=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}if(J.type===N0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const F=(Q.lastWriteDate-G.lastWriteDate+J.heartbeatFrequencyMS)/1000,W=Z.maxStalenessSeconds??0;if(F<=W)K.push(G);return K},[])}return $},U_=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||J[Q]!==Z[Q])return!1}return!0},M_=function(Z,J){if(Z.tags==null||Array.isArray(Z.tags)&&Z.tags.length===0)return J;for(let $=0;$<Z.tags.length;++$){const X=Z.tags[$],Y=J.reduce((Q,K)=>{if(U_(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},_X=function(Z,J){const $=J.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+Z.localThresholdMS;return J.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},FZ=function(Z){return Z.type===N0.ServerType.RSPrimary},j_=function(Z){return Z.type===N0.ServerType.RSSecondary},A_=function(Z){return Z.type===N0.ServerType.RSSecondary||Z.type===N0.ServerType.RSPrimary},L_=function(Z){return Z.type!==N0.ServerType.Unknown},w_=function(Z){return Z.type===N0.ServerType.LoadBalancer},xX=function(Z){if(!Z.isValid())throw new WZ.MongoInvalidArgumentError("Invalid read preference specified");return(J,$)=>{const X=J.commonWireVersion;if(X&&Z.minWireVersion&&Z.minWireVersion>X)throw new WZ.MongoCompatibilityError(`Minimum wire version '${Z.minWireVersion}' required, but found '${X}'`);if(J.type===N0.TopologyType.LoadBalanced)return $.filter(w_);if(J.type===N0.TopologyType.Unknown)return[];if(J.type===N0.TopologyType.Single||J.type===N0.TopologyType.Sharded)return _X(J,$.filter(L_));const Y=Z.mode;if(Y===j5.ReadPreference.PRIMARY)return $.filter(FZ);if(Y===j5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(FZ);if(G.length)return G}const Q=Y===j5.ReadPreference.NEAREST?A_:j_,K=_X(J,M_(Z,V_(Z,J,$.filter(Q))));if(Y===j5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(FZ);return K}};Object.defineProperty(BU,"__esModule",{value:!0});BU.readPreferenceServerSelector=BU.secondaryWritableServerSelector=BU.sameServerSelector=BU.writableServerSelector=BU.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var WZ=h(),j5=y1(),N0=p0(),F_=1e4,NU=90;BU.MIN_SECONDARY_WRITE_WIRE_VERSION=13;BU.writableServerSelector=W_;BU.sameServerSelector=H_;BU.secondaryWritableServerSelector=z_;BU.readPreferenceServerSelector=xX});var J1=z((SU)=>{var E_=function(Z,J){if(!Array.isArray(J)&&!(J instanceof Set))J=[J];return J=new Set(J),Object.defineProperty(Z,"aspects",{value:J,writable:!1}),J};Object.defineProperty(SU,"__esModule",{value:!0});SU.defineAspects=SU.AbstractCallbackOperation=SU.AbstractOperation=SU.Aspect=void 0;var T_=import.meta.require("util"),I_=D1(),vX=y1();SU.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"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var fX=Symbol("session");class gX{constructor(Z={}){this.readPreference=this.hasAspect(SU.Aspect.WRITE_OPERATION)?vX.ReadPreference.primary:vX.ReadPreference.fromOptions(Z)??vX.ReadPreference.primary,this.bsonOptions=I_.resolveBSONOptions(Z),this[fX]=Z.session!=null?Z.session:void 0,this.options=Z,this.bypassPinningCheck=!!Z.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(Z){const J=this.constructor;if(J.aspects==null)return!1;return J.aspects.has(Z)}get session(){return this[fX]}clearSession(){this[fX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}SU.AbstractOperation=gX;class OU extends gX{constructor(Z={}){super(Z)}execute(Z,J){return T_.promisify(($)=>{this.executeCallback(Z,J,$)})()}}SU.AbstractCallbackOperation=OU;SU.defineAspects=E_});var T1=z((vU)=>{Object.defineProperty(vU,"__esModule",{value:!0});vU.CommandCallbackOperation=vU.CommandOperation=void 0;var C_=h(),h_=kX(),O_=d0(),S_=A5(),L5=_(),_U=A0(),e4=J1();class bX extends e4.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J??{};const $=J?.dbName||J?.authdb;if($)this.ns=new L5.MongoDBNamespace($,"$cmd");else this.ns=Z?Z.s.namespace.withCollection("$cmd"):new L5.MongoDBNamespace("admin","$cmd");if(this.readConcern=O_.ReadConcern.fromOptions(J),this.writeConcern=_U.WriteConcern.fromOptions(J),this.hasAspect(e4.Aspect.EXPLAINABLE))this.explain=h_.Explain.fromOptions(J);else if(J?.explain!=null)throw new C_.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect(e4.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(Z,J,$){this.server=Z;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:J},Y=L5.maxWireVersion(Z),Q=this.session&&this.session.inTransaction();if(this.readConcern&&L5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<S_.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect(e4.Aspect.WRITE_OPERATION)&&!Q)_U.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect(e4.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect(e4.Aspect.EXPLAINABLE)&&this.explain)$=L5.decorateWithExplain($,this.explain);return Z.commandAsync(this.ns,$,X)}}vU.CommandOperation=bX;class xU extends bX{constructor(Z,J){super(Z,J)}executeCommandCallback(Z,J,$,X){super.executeCommand(Z,J,$).then((Y)=>X(void 0,Y),(Y)=>X(Y,void 0))}}vU.CommandCallbackOperation=xU});var uX=z((mU)=>{Object.defineProperty(mU,"__esModule",{value:!0});mU.AddUserOperation=void 0;var k_=import.meta.require("crypto"),__=h(),gU=_(),x_=T1(),bU=J1();class mX extends x_.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.db=Z,this.username=J,this.password=$,this.options=X??{}}executeCallback(Z,J,$){const X=this.db,Y=this.username,Q=this.password,K=this.options;if("digestPassword"in K&&K.digestPassword!=null)return $(new __.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let G;if(!K.roles||Array.isArray(K.roles)&&K.roles.length===0)if(gU.emitWarningOnce('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),X.databaseName.toLowerCase()==="admin")G=["root"];else G=["dbOwner"];else G=Array.isArray(K.roles)?K.roles:[K.roles];let q;try{q=gU.getTopology(X)}catch(V){return $(V)}const F=q.lastHello().maxWireVersion>=7;let W=Q;if(!F){const V=k_.createHash("md5");V.update(`${Y}:mongo:${Q}`),W=V.digest("hex")}const H={createUser:Y,customData:K.customData||{},roles:G,digestPassword:F};if(typeof Q==="string")H.pwd=W;super.executeCommandCallback(Z,J,H,$)}}mU.AddUserOperation=mX;bU.defineAspects(mX,[bU.Aspect.WRITE_OPERATION])});var B0=z((lU)=>{var f_=function(Z,J,$){return dX.maybeCallback(()=>g_(Z,J),$)};async function g_(Z,J){if(!(J instanceof y6.AbstractCallbackOperation))throw new F0.MongoRuntimeError("This method requires a valid operation instance");if(Z.topology==null){if(Z.s.hasBeenClosed)throw new F0.MongoNotConnectedError("Client must be connected before running operations");Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await Z.connect()}finally{delete Z.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=Z;if($==null)throw new F0.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=J.session,Y;if(X==null)Y=Symbol(),X=Z.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new F0.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new F0.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");const Q=J.readPreference??dU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(dU.ReadPreference.primary))throw new F0.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!J.bypassPinningCheck)X.unpin();let G;if(J.hasAspect(y6.Aspect.MUST_SELECT_SAME_SERVER))G=pU.sameServerSelector(J.server?.description);else if(J.trySecondaryWrite)G=pU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const q=await $.selectServerAsync(G,{session:X});if(X==null)return J.execute(q,void 0);if(!J.hasAspect(y6.Aspect.RETRYABLE))try{return await J.execute(q,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const F=$.s.options.retryReads&&!K&&J.canRetryRead,W=$.s.options.retryWrites&&!K&&dX.supportsRetryableWrites(q)&&J.canRetryWrite,H=J.hasAspect(y6.Aspect.READ_OPERATION),V=J.hasAspect(y6.Aspect.WRITE_OPERATION),j=H&&F||V&&W;if(V&&W)J.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await J.execute(q,X)}catch(U){if(j&&U instanceof F0.MongoError)return await b_(J,U,{session:X,topology:$,selector:G});throw U}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function b_(Z,J,{session:$,topology:X,selector:Y}){const Q=Z.hasAspect(y6.Aspect.WRITE_OPERATION),K=Z.hasAspect(y6.Aspect.READ_OPERATION);if(Q&&J.code===v_)throw new F0.MongoServerError({message:cU,errmsg:cU,originalError:J});if(Q&&!F0.isRetryableWriteError(J))throw J;if(K&&!F0.isRetryableReadError(J))throw J;if(J instanceof F0.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&Z.hasAspect(y6.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!dX.supportsRetryableWrites(G))throw new F0.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await Z.execute(G,$)}catch(q){if(q instanceof F0.MongoError&&q.hasErrorLabel(F0.MongoErrorLabel.NoWritesPerformed))throw J;throw q}}Object.defineProperty(lU,"__esModule",{value:!0});lU.executeOperation=void 0;var F0=h(),dU=y1(),pU=A5(),dX=_(),y6=J1(),v_=F0.MONGODB_ERROR_CODES.IllegalOperation,cU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";lU.executeOperation=f_});var tU=z((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.ListDatabasesOperation=void 0;var iU=_(),m_=T1(),pX=J1();class cX extends m_.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.ns=new iU.MongoDBNamespace("admin","$cmd")}executeCallback(Z,J,$){const X={listDatabases:1};if(typeof this.options.nameOnly==="boolean")X.nameOnly=this.options.nameOnly;if(this.options.filter)X.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")X.authorizedDatabases=this.options.authorizedDatabases;if(iU.maxWireVersion(Z)>=9&&this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,$)}}sU.ListDatabasesOperation=cX;pX.defineAspects(cX,[pX.Aspect.READ_OPERATION,pX.Aspect.RETRYABLE])});var aX=z((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.RemoveUserOperation=void 0;var u_=T1(),rU=J1();class lX extends u_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$,this.username=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropUser:this.username},(X)=>{$(X,X?!1:!0)})}}oU.RemoveUserOperation=lX;rU.defineAspects(lX,[rU.Aspect.WRITE_OPERATION])});var Z7=z((JM)=>{Object.defineProperty(JM,"__esModule",{value:!0});JM.RunAdminCommandOperation=JM.RunCommandOperation=void 0;var d_=_(),p_=T1();class iX extends p_.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.command=J}executeCallback(Z,J,$){const X=this.command;this.executeCommandCallback(Z,J,X,$)}}JM.RunCommandOperation=iX;class ZM extends iX{constructor(Z,J,$){super(Z,J,$);this.ns=new d_.MongoDBNamespace("admin")}}JM.RunAdminCommandOperation=ZM});var KM=z((YM)=>{Object.defineProperty(YM,"__esModule",{value:!0});YM.ValidateCollectionOperation=void 0;var HZ=h(),l_=T1();class XM extends l_.CommandCallbackOperation{constructor(Z,J,$){const X={validate:J},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(Z.s.db,$);this.options=$,this.command=X,this.collectionName=J}executeCallback(Z,J,$){const X=this.collectionName;super.executeCommandCallback(Z,J,this.command,(Y,Q)=>{if(Y!=null)return $(Y);if(Q.ok===0)return $(new HZ.MongoRuntimeError("Error with validate command"));if(Q.result!=null&&typeof Q.result!=="string")return $(new HZ.MongoRuntimeError("Error with validation data"));if(Q.result!=null&&Q.result.match(/exception|corrupt/)!=null)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));if(Q.valid!=null&&!Q.valid)return $(new HZ.MongoRuntimeError(`Invalid collection ${X}`));return $(void 0,Q)})}}YM.ValidateCollectionOperation=XM});var sX=z((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.Admin=void 0;var a_=uX(),w5=B0(),i_=tU(),s_=aX(),n_=Z7(),t_=KM();class GM{constructor(Z){this.s={db:Z}}async command(Z,J){return w5.executeOperation(this.s.db.client,new n_.RunCommandOperation(this.s.db,Z,{dbName:"admin",...J}))}async buildInfo(Z){return this.command({buildinfo:1},Z)}async serverInfo(Z){return this.command({buildinfo:1},Z)}async serverStatus(Z){return this.command({serverStatus:1},Z)}async ping(Z){return this.command({ping:1},Z)}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return w5.executeOperation(this.s.db.client,new a_.AddUserOperation(this.s.db,Z,X,{dbName:"admin",...$}))}async removeUser(Z,J){return w5.executeOperation(this.s.db.client,new s_.RemoveUserOperation(this.s.db,Z,{dbName:"admin",...J}))}async validateCollection(Z,J={}){return w5.executeOperation(this.s.db.client,new t_.ValidateCollectionOperation(this,Z,J))}async listDatabases(Z){return w5.executeOperation(this.s.db.client,new i_.ListDatabasesOperation(this.s.db,Z))}async replSetGetStatus(Z){return this.command({replSetGetStatus:1},Z)}}qM.Admin=GM});var oX=z((WM)=>{var rX=function(Z,J){const $={q:Z,limit:typeof J.limit==="number"?J.limit:0};if(J.collation)$.collation=J.collation;if(J.hint)$.hint=J.hint;return $};Object.defineProperty(WM,"__esModule",{value:!0});WM.makeDeleteStatement=WM.DeleteManyOperation=WM.DeleteOneOperation=WM.DeleteOperation=void 0;var R5=h(),r_=T1(),c0=J1();class P5 extends r_.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.limit!=null?Z.limit>0:!0)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={delete:this.ns.collection,deletes:this.statements,ordered:Y};if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new R5.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}WM.DeleteOperation=P5;class nX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,{...$,limit:1})],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteOneOperation=nX;class tX extends P5{constructor(Z,J,$){super(Z.s.namespace,[rX(J,$)],$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new R5.MongoServerError(Y));if(Y.writeErrors)return $(new R5.MongoServerError(Y.writeErrors[0]));if(this.explain)return $(void 0,Y);$(void 0,{acknowledged:this.writeConcern?.w!==0,deletedCount:Y.n})})}}WM.DeleteManyOperation=tX;WM.makeDeleteStatement=rX;c0.defineAspects(P5,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION]);c0.defineAspects(nX,[c0.Aspect.RETRYABLE,c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION]);c0.defineAspects(tX,[c0.Aspect.WRITE_OPERATION,c0.Aspect.EXPLAINABLE,c0.Aspect.SKIP_COLLATION])});var JY=z((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.BulkWriteOperation=void 0;var eX=J1();class ZY extends eX.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.operations=J}executeCallback(Z,J,$){const X=this.collection,Y=this.operations,Q={...this.options,...this.bsonOptions,readPreference:this.readPreference},K=Q.ordered===!1?X.initializeUnorderedBulkOp(Q):X.initializeOrderedBulkOp(Q);try{for(let G=0;G<Y.length;G++)K.raw(Y[G])}catch(G){return $(G)}K.execute({...Q,session:J}).then((G)=>$(void 0,G),(G)=>$(G))}}zM.BulkWriteOperation=ZY;eX.defineAspects(ZY,[eX.Aspect.WRITE_OPERATION])});var $Y=z((UM)=>{var Xx=function(Z,J,$,X){let Y=$,Q=X;if(typeof $==="function")Q=$,Y={};const K=Y.full==null?!1:Y.full;let G;try{G=$x.getTopology(Z)}catch(F){return Q(F)}if(G.isDestroyed())return Q(new Jx.MongoTopologyClosedError);function q(F){const W={};for(let H=0;H<F.length;H++){const V=F[H];W[V.name]=[];for(let j in V.key)W[V.name].push([j,V.key[j]])}return W}Z.collection(J).listIndexes(Y).toArray().then((F)=>{if(!Array.isArray(F))return Q(void 0,[]);if(K)return Q(void 0,F);Q(void 0,q(F))},(F)=>Q(F))},Yx=function(Z,J,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:Z.s.db.options?.forceServerObjectId)===!0)return J;return J.map((Y)=>{if(Y._id==null)Y._id=Z.s.pkFactory.createPk();return Y})};Object.defineProperty(UM,"__esModule",{value:!0});UM.prepareDocs=UM.indexInformation=void 0;var Jx=h(),$x=_();UM.indexInformation=Xx;UM.prepareDocs=Yx});var QY=z((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.InsertManyOperation=AM.InsertOneOperation=AM.InsertOperation=void 0;var zZ=h(),Kx=A0(),Gx=JY(),qx=T1(),jM=$Y(),J6=J1();class VZ extends qx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=Z,this.documents=J}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={insert:this.ns.collection,documents:this.documents,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.comment!==void 0)Q.comment=X.comment;super.executeCommandCallback(Z,J,Q,$)}}AM.InsertOperation=VZ;class XY extends VZ{constructor(Z,J,$){super(Z.s.namespace,jM.prepareDocs(Z,[J],$),$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||Y==null)return $(X);if(Y.code)return $(new zZ.MongoServerError(Y));if(Y.writeErrors)return $(new zZ.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id})})}}AM.InsertOneOperation=XY;class YY extends J6.AbstractCallbackOperation{constructor(Z,J,$){super($);if(!Array.isArray(J))throw new zZ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=Z,this.docs=J}executeCallback(Z,J,$){const X=this.collection,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Kx.WriteConcern.fromOptions(Y);new Gx.BulkWriteOperation(X,jM.prepareDocs(X,this.docs,Y).map((G)=>({insertOne:{document:G}})),Y).executeCallback(Z,J,(G,q)=>{if(G||q==null){if(G&&G.message==="Operation must be an object with an operation key")G=new zZ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");return $(G)}$(void 0,{acknowledged:Q?.w!==0,insertedCount:q.insertedCount,insertedIds:q.insertedIds})})}}AM.InsertManyOperation=YY;J6.defineAspects(VZ,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(XY,[J6.Aspect.RETRYABLE,J6.Aspect.WRITE_OPERATION]);J6.defineAspects(YY,[J6.Aspect.WRITE_OPERATION])});var WY=z((wM)=>{var UZ=function(Z,J,$){if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:Z,u:J};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(wM,"__esModule",{value:!0});wM.makeUpdateStatement=wM.ReplaceOneOperation=wM.UpdateManyOperation=wM.UpdateOneOperation=wM.UpdateOperation=void 0;var l0=h(),KY=_(),Hx=T1(),u1=J1();class J7 extends Hx.CommandCallbackOperation{constructor(Z,J,$){super(void 0,$);this.options=$,this.ns=Z,this.statements=J}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((Z)=>Z.multi==null||Z.multi===!1)}executeCallback(Z,J,$){const X=this.options??{},Y=typeof X.ordered==="boolean"?X.ordered:!0,Q={update:this.ns.collection,updates:this.statements,ordered:Y};if(typeof X.bypassDocumentValidation==="boolean")Q.bypassDocumentValidation=X.bypassDocumentValidation;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((G)=>G.hint)){$(new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes"));return}}super.executeCommandCallback(Z,J,Q,$)}}wM.UpdateOperation=J7;class GY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateOneOperation=GY;class qY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!0})],X);if(!KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.UpdateManyOperation=qY;class FY extends J7{constructor(Z,J,$,X){super(Z.s.namespace,[UZ(J,$,{...X,multi:!1})],X);if(KY.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);if(this.explain!=null)return $(void 0,Y);if(Y.code)return $(new l0.MongoServerError(Y));if(Y.writeErrors)return $(new l0.MongoServerError(Y.writeErrors[0]));$(void 0,{acknowledged:this.writeConcern?.w!==0,modifiedCount:Y.nModified!=null?Y.nModified:Y.n,upsertedId:Array.isArray(Y.upserted)&&Y.upserted.length>0?Y.upserted[0]._id:null,upsertedCount:Array.isArray(Y.upserted)&&Y.upserted.length?Y.upserted.length:0,matchedCount:Array.isArray(Y.upserted)&&Y.upserted.length>0?0:Y.n})})}}wM.ReplaceOneOperation=FY;wM.makeUpdateStatement=UZ;u1.defineAspects(J7,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(GY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(qY,[u1.Aspect.WRITE_OPERATION,u1.Aspect.EXPLAINABLE,u1.Aspect.SKIP_COLLATION]);u1.defineAspects(FY,[u1.Aspect.RETRYABLE,u1.Aspect.WRITE_OPERATION,u1.Aspect.SKIP_COLLATION])});var N5=z((BM)=>{var LZ=function(Z,J,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&J.ok===1){J.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:Z.operations[0]};J.writeErrors.push(new AZ(Q));return}else if(X.ok===0&&J.ok===0)return;if(NM(Z)&&X.n)J.nInserted=J.nInserted+X.n;if(zY(Z)&&X.n)J.nRemoved=J.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)J.upserted.push({index:X.upserted[Q].index+Z.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,J.upserted.push({index:Z.originalZeroIndex,_id:X.upserted});if(HY(Z)&&X.n){const Q=X.nModified;if(J.nUpserted=J.nUpserted+Y,J.nMatched=J.nMatched+(X.n-Y),typeof Q==="number")J.nModified=J.nModified+Q;else J.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:Z.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:Z.operations[X.writeErrors[Q].index]};J.writeErrors.push(new AZ(K))}if(X.writeConcernError)J.writeConcernErrors.push(new E5(X.writeConcernError))},IM=function(Z,J,$){if(Z.s.batches.length===0)return $(void 0,new _6(Z.s.bulkResult,Z.isOrdered));const X=Z.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof k1.MongoWriteConcernError))return $(new $7(K,new _6(Z.s.bulkResult,Z.isOrdered)));if(K instanceof k1.MongoWriteConcernError)return Lx(X,Z.s.bulkResult,Z.isOrdered,K,$);LZ(X,Z.s.bulkResult,K,G);const q=new _6(Z.s.bulkResult,Z.isOrdered);if(Z.handleWriteError($,q))return;IM(Z,J,$)}const Q=k6.resolveOptions(Z,{...J,ordered:Z.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(Z.operationId)Y.operationId=Z.operationId;if(Z.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(Z.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(HY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(zY(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(NM(X))jZ.executeOperation(Z.s.collection.client,new jx.InsertOperation(Z.s.namespace,X.operations,Q),Y);else if(HY(X))jZ.executeOperation(Z.s.collection.client,new L4.UpdateOperation(Z.s.namespace,X.operations,Q),Y);else if(zY(X))jZ.executeOperation(Z.s.collection.client,new I5.DeleteOperation(Z.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,LZ(X,Z.s.bulkResult,K,void 0),$()}},Lx=function(Z,J,$,X,Y){LZ(Z,J,void 0,X.result),Y(new $7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new _6(J,$)))},DM=function(Z){if(typeof Z.s.options.forceServerObjectId==="boolean")return Z.s.options.forceServerObjectId;if(typeof Z.s.collection.s.db.options?.forceServerObjectId==="boolean")return Z.s.collection.s.db.options?.forceServerObjectId;return!1},NM=function(Z){return Z.batchType===BM.BatchType.INSERT},HY=function(Z){return Z.batchType===BM.BatchType.UPDATE},zY=function(Z){return Z.batchType===BM.BatchType.DELETE},T5=function(Z){let{currentOp:J}=Z.s;if(Z.s.currentOp=void 0,!J)J={};return J};Object.defineProperty(BM,"__esModule",{value:!0});BM.BulkOperationBase=BM.FindOperators=BM.MongoBulkWriteError=BM.mergeBatchResults=BM.WriteError=BM.WriteConcernError=BM.BulkWriteResult=BM.Batch=BM.BatchType=void 0;var MZ=D1(),k1=h(),I5=oX(),jZ=B0(),jx=QY(),Ax=J1(),L4=WY(),k6=_(),PM=A0(),D5=Symbol("serverError");BM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class TM{constructor(Z,J){this.originalZeroIndex=J,this.currentIndex=0,this.originalIndexes=[],this.batchType=Z,this.operations=[],this.size=0,this.sizeBytes=0}}BM.Batch=TM;class _6{static generateIdMap(Z){const J={};for(let $ of Z)J[$.index]=$._id;return J}constructor(Z,J){this.result=Z,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=_6.generateIdMap(this.result.upserted),this.insertedIds=_6.generateIdMap(this.getSuccessfullyInsertedIds(Z,J)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}getSuccessfullyInsertedIds(Z,J){if(Z.writeErrors.length===0)return Z.insertedIds;if(J)return Z.insertedIds.slice(0,Z.writeErrors[0].index);return Z.insertedIds.filter(({index:$})=>!Z.writeErrors.some((X)=>$===X.index))}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(Z){return this.result.upserted[Z]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(Z){return Z<this.result.writeErrors.length?this.result.writeErrors[Z]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let Z="";for(let J=0;J<this.result.writeConcernErrors.length;J++){const $=this.result.writeConcernErrors[J];if(Z=Z+$.errmsg,J===0)Z=Z+" and "}return new E5({errmsg:Z,code:k1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}BM.BulkWriteResult=_6;class E5{constructor(Z){this[D5]=Z}get code(){return this[D5].code}get errmsg(){return this[D5].errmsg}get errInfo(){return this[D5].errInfo}toJSON(){return this[D5]}toString(){return`WriteConcernError(${this.errmsg})`}}BM.WriteConcernError=E5;class AZ{constructor(Z){this.err=Z}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())})`}}BM.WriteError=AZ;BM.mergeBatchResults=LZ;class $7 extends k1.MongoServerError{constructor(Z,J){super(Z);if(this.writeErrors=[],Z instanceof E5)this.err=Z;else if(!(Z instanceof Error))this.message=Z.message,this.code=Z.code,this.writeErrors=Z.writeErrors??[];this.result=J,Object.assign(this,Z)}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}}BM.MongoBulkWriteError=$7;class VY{constructor(Z){this.bulkOperation=Z}update(Z){const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!0}))}updateOne(Z){if(!k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}replaceOne(Z){if(k6.hasAtomicOperators(Z))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const J=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.UPDATE,L4.makeUpdateStatement(J.selector,Z,{...J,multi:!1}))}deleteOne(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:1}))}delete(){const Z=T5(this.bulkOperation);return this.bulkOperation.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.selector,{...Z,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=Z,this}arrayFilters(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=Z,this}hint(Z){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=Z,this}}BM.FindOperators=VY;class EM extends Ax.AbstractCallbackOperation{constructor(Z,J){super(J);this.bulkOperation=Z}executeCallback(Z,J,$){if(this.options.session==null)this.options.session=J;return IM(this.bulkOperation,this.options,$)}}class UY{constructor(Z,J,$){this.isOrdered=$;const X=k6.getTopology(Z);J=J==null?{}:J;const Y=Z.s.namespace,Q=!1,K=void 0,G=X.lastHello(),q=!!(X.s.options&&X.s.options.autoEncrypter),F=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=q?2097152:F,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,V=(H-1).toString(10).length+2;let j=Object.assign({},J);j=k6.applyRetryableWrites(j,Z.s.db);const U={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:U,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:PM.WriteConcern.fromOptions(J),maxBsonObjectSize:F,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:V,namespace:Y,topology:X,options:j,bsonOptions:MZ.resolveBSONOptions(J),currentOp:K,executed:Q,collection:Z,err:void 0,checkKeys:typeof J.checkKeys==="boolean"?J.checkKeys:!1},J.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(Z){if(Z._id==null&&!DM(this))Z._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z)}find(Z){if(!Z)throw new k1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:Z},new VY(this)}raw(Z){if(Z==null||typeof Z!=="object")throw new k1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in Z){const J=DM(this);if(Z.insertOne&&Z.insertOne.document==null){if(J!==!0&&Z.insertOne._id==null)Z.insertOne._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne)}if(J!==!0&&Z.insertOne.document._id==null)Z.insertOne.document._id=new MZ.ObjectId;return this.addToOperationsList(BM.BatchType.INSERT,Z.insertOne.document)}if("replaceOne"in Z||"updateOne"in Z||"updateMany"in Z){if("replaceOne"in Z){if("q"in Z.replaceOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.replaceOne.filter,Z.replaceOne.replacement,{...Z.replaceOne,multi:!1});if(k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateOne"in Z){if("q"in Z.updateOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateOne.filter,Z.updateOne.update,{...Z.updateOne,multi:!1});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}if("updateMany"in Z){if("q"in Z.updateMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");const J=L4.makeUpdateStatement(Z.updateMany.filter,Z.updateMany.update,{...Z.updateMany,multi:!0});if(!k6.hasAtomicOperators(J.u))throw new k1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(BM.BatchType.UPDATE,J)}}if("deleteOne"in Z){if("q"in Z.deleteOne)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteOne.filter,{...Z.deleteOne,limit:1}))}if("deleteMany"in Z){if("q"in Z.deleteMany)throw new k1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(BM.BatchType.DELETE,I5.makeDeleteStatement(Z.deleteMany.filter,{...Z.deleteMany,limit:0}))}throw new k1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const Z=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)Z.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)Z.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)Z.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)Z.push(this.s.currentRemoveBatch)}return Z}async execute(Z={}){if(this.s.executed)throw new k1.MongoBatchReExecutionError;const J=PM.WriteConcern.fromOptions(Z);if(J)this.s.writeConcern=J;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new k1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...Z},X=new EM(this,$);return jZ.executeOperation(this.s.collection.client,X)}handleWriteError(Z,J){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return Z(new $7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},J)),!0}const $=J.getWriteConcernError();if($)return Z(new $7($,J)),!0;return!1}}BM.BulkOperationBase=UY;Object.defineProperty(UY.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var MY=z((SM)=>{Object.defineProperty(SM,"__esModule",{value:!0});SM.OrderedBulkOperation=void 0;var Nx=D1(),hM=h(),wZ=N5();class OM extends wZ.BulkOperationBase{constructor(Z,J){super(Z,J,!0)}addToOperationsList(Z,J){const $=Nx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new hM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new wZ.Batch(Z,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(Z===wZ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:J._id});if(Array.isArray(J))throw new hM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(J),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}SM.OrderedBulkOperation=OM});var jY=z((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.UnorderedBulkOperation=void 0;var Bx=D1(),kM=h(),$6=N5();class _M extends $6.BulkOperationBase{constructor(Z,J){super(Z,J,!1)}handleWriteError(Z,J){if(this.s.batches.length)return!1;return super.handleWriteError(Z,J)}addToOperationsList(Z,J){const $=Bx.calculateObjectSize(J,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new kM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,Z===$6.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(Z===$6.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(Z===$6.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==Z)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new $6.Batch(Z,this.s.currentIndex);if(Array.isArray(J))throw new kM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(J),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,Z===$6.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:J._id});else if(Z===$6.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(Z===$6.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}xM.UnorderedBulkOperation=_M});var RZ=z((gM)=>{Object.defineProperty(gM,"__esModule",{value:!0});gM.AggregateOperation=gM.DB_AGGREGATE_COLLECTION=void 0;var fM=h(),Cx=_(),hx=A0(),Ox=T1(),B5=J1();gM.DB_AGGREGATE_COLLECTION=1;var Sx=8;class AY extends Ox.CommandCallbackOperation{constructor(Z,J,$){super(void 0,{...$,dbName:Z.db});if(this.options={...$},this.target=Z.collection||gM.DB_AGGREGATE_COLLECTION,this.pipeline=J,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(J.length>0){const X=J[J.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new fM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new fM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(Z){this.pipeline.push(Z)}executeCallback(Z,J,$){const X=this.options,Y=Cx.maxWireVersion(Z),Q={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&Y<Sx)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)hx.WriteConcern.apply(Q,this.writeConcern);if(X.bypassDocumentValidation===!0)Q.bypassDocumentValidation=X.bypassDocumentValidation;if(typeof X.allowDiskUse==="boolean")Q.allowDiskUse=X.allowDiskUse;if(X.hint)Q.hint=X.hint;if(X.let)Q.let=X.let;if(X.comment!==void 0)Q.comment=X.comment;if(Q.cursor=X.cursor||{},X.batchSize&&!this.hasWriteStage)Q.cursor.batchSize=X.batchSize;super.executeCommandCallback(Z,J,Q,$)}}gM.AggregateOperation=AY;B5.defineAspects(AY,[B5.Aspect.READ_OPERATION,B5.Aspect.RETRYABLE,B5.Aspect.EXPLAINABLE,B5.Aspect.CURSOR_CREATING])});var C0=z((dM)=>{Object.defineProperty(dM,"__esModule",{value:!0});dM.CancellationToken=dM.TypedEventEmitter=void 0;var yx=import.meta.require("events");class LY extends yx.EventEmitter{emitAndLog(Z,...J){if(this.emit(Z,...J),this.component)this.mongoLogger?.debug(this.component,J[0])}}dM.TypedEventEmitter=LY;class uM extends LY{}dM.CancellationToken=uM});var PY=z((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.GetMoreOperation=void 0;var wY=h(),_x=_(),PZ=J1();class RY extends PZ.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.options=X,this.ns=Z,this.cursorId=J,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new wY.MongoRuntimeError("Getmore must run on the same server operation began on"));if(this.cursorId==null||this.cursorId.isZero())return $(new wY.MongoRuntimeError("Unable to iterate cursor with no id"));const X=this.ns.collection;if(X==null)return $(new wY.MongoRuntimeError("A collection name must be determined before getMore"));const Y={getMore:this.cursorId,collection:X};if(typeof this.options.batchSize==="number")Y.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")Y.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&_x.maxWireVersion(Z)>=9)Y.comment=this.options.comment;const Q={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};Z.command(this.ns,Y,Q,$)}}cM.GetMoreOperation=RY;PZ.defineAspects(RY,[PZ.Aspect.READ_OPERATION,PZ.Aspect.MUST_SELECT_SAME_SERVER])});var nM=z((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.KillCursorsOperation=void 0;var aM=h(),DY=J1();class TY extends DY.AbstractCallbackOperation{constructor(Z,J,$,X){super(X);this.ns=J,this.cursorId=Z,this.server=$}executeCallback(Z,J,$){if(Z!==this.server)return $(new aM.MongoRuntimeError("Killcursor must run on the same server operation began on"));const X=this.ns.collection;if(X==null)return $(new aM.MongoRuntimeError("A collection name must be determined before killCursors"));const Y={killCursors:X,cursors:[this.cursorId]};Z.command(this.ns,Y,{session:J},()=>$())}}iM.KillCursorsOperation=TY;DY.defineAspects(TY,[DY.Aspect.MUST_SELECT_SAME_SERVER])});var IY=z((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.ConnectionPoolMetrics=void 0;class X6{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(Z){if(Z===X6.TXN)this.txnConnections+=1;else if(Z===X6.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(Z){if(Z===X6.TXN)this.txnConnections-=1;else if(Z===X6.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(Z){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${Z}, `+`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}}X6.TXN="txn";X6.CURSOR="cursor";X6.OTHER="other";tM.ConnectionPoolMetrics=X6});var C5=z((Jj)=>{var eM=function(Z,J){if(J?.loadBalanced)return C1.ServerType.LoadBalancer;if(!Z||!Z.ok)return C1.ServerType.Unknown;if(Z.isreplicaset)return C1.ServerType.RSGhost;if(Z.msg&&Z.msg==="isdbgrid")return C1.ServerType.Mongos;if(Z.setName)if(Z.hidden)return C1.ServerType.RSOther;else if(Z.isWritablePrimary)return C1.ServerType.RSPrimary;else if(Z.secondary)return C1.ServerType.RSSecondary;else if(Z.arbiterOnly)return C1.ServerType.RSArbiter;else return C1.ServerType.RSOther;return C1.ServerType.Standalone},gx=function(Z,J){const $=Object.keys(Z),X=Object.keys(J);return $.length===X.length&&$.every((Y)=>J[Y]===Z[Y])},Zj=function(Z,J){if(Z==null||J==null)return-1;if(!Z.processId.equals(J.processId))return-1;const $=DZ.Long.isLong(Z.counter)?Z.counter:DZ.Long.fromNumber(Z.counter),X=DZ.Long.isLong(J.counter)?J.counter:DZ.Long.fromNumber(J.counter);return $.compare(X)};Object.defineProperty(Jj,"__esModule",{value:!0});Jj.compareTopologyVersion=Jj.parseServerType=Jj.ServerDescription=void 0;var DZ=D1(),xx=h(),X7=_(),C1=p0(),vx=new Set([C1.ServerType.RSPrimary,C1.ServerType.Standalone,C1.ServerType.Mongos,C1.ServerType.LoadBalancer]),fx=new Set([C1.ServerType.RSPrimary,C1.ServerType.RSSecondary,C1.ServerType.Mongos,C1.ServerType.Standalone,C1.ServerType.LoadBalancer]);class oM{constructor(Z,J,$={}){if(Z==null||Z==="")throw new xx.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof Z==="string"?X7.HostAddress.fromString(Z).toString():Z.toString(),this.type=eM(J,$),this.hosts=J?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=J?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=J?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=J?.tags??{},this.minWireVersion=J?.minWireVersion??0,this.maxWireVersion=J?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=X7.now(),this.lastWriteDate=J?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??J?.topologyVersion??null,this.setName=J?.setName??null,this.setVersion=J?.setVersion??null,this.electionId=J?.electionId??null,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes??null,this.primary=J?.primary??null,this.me=J?.me?.toLowerCase()??null,this.$clusterTime=J?.$clusterTime??null}get hostAddress(){return X7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===C1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return fx.has(this.type)}get isWritable(){return vx.has(this.type)}get host(){const Z=`:${this.port}`.length;return this.address.slice(0,-Z)}get port(){const Z=this.address.split(":").pop();return Z?Number.parseInt(Z,10):27017}equals(Z){const J=this.topologyVersion===Z?.topologyVersion||Zj(this.topologyVersion,Z?.topologyVersion)===0,$=this.electionId!=null&&Z?.electionId!=null?X7.compareObjectId(this.electionId,Z.electionId)===0:this.electionId===Z?.electionId;return Z!=null&&X7.errorStrictEqual(this.error,Z.error)&&this.type===Z.type&&this.minWireVersion===Z.minWireVersion&&X7.arrayStrictEqual(this.hosts,Z.hosts)&&gx(this.tags,Z.tags)&&this.setName===Z.setName&&this.setVersion===Z.setVersion&&$&&this.primary===Z.primary&&this.logicalSessionTimeoutMinutes===Z.logicalSessionTimeoutMinutes&&J}}Jj.ServerDescription=oM;Jj.parseServerType=eM;Jj.compareTopologyVersion=Zj});var NY=z((qj)=>{var lx=function(Z){switch(Z){case i.ServerType.Standalone:return i.TopologyType.Single;case i.ServerType.Mongos:return i.TopologyType.Sharded;case i.ServerType.RSPrimary:return i.TopologyType.ReplicaSetWithPrimary;case i.ServerType.RSOther:case i.ServerType.RSSecondary:return i.TopologyType.ReplicaSetNoPrimary;default:return i.TopologyType.Unknown}},Gj=function(Z,J,$=null,X=null,Y=null){if($=$||J.setName,$!==J.setName)return Z.delete(J.address),[w4(Z),$,X,Y];if(J.maxWireVersion>=17){const G=EY.compareObjectId(Y,J.electionId),q=G===0,F=G===-1,W=(X??-1)<=(J.setVersion??-1);if(F||q&&W)Y=J.electionId,X=J.setVersion;else return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}else{const G=J.electionId?J.electionId:null;if(J.setVersion&&G){if(X&&Y){if(X>J.setVersion||EY.compareObjectId(Y,G)>0)return Z.set(J.address,new x6.ServerDescription(J.address)),[w4(Z),$,X,Y]}Y=J.electionId}if(J.setVersion!=null&&(X==null||J.setVersion>X))X=J.setVersion}for(let[G,q]of Z)if(q.type===i.ServerType.RSPrimary&&q.address!==J.address){Z.set(G,new x6.ServerDescription(q.address));break}J.allHosts.forEach((G)=>{if(!Z.has(G))Z.set(G,new x6.ServerDescription(G))});const Q=Array.from(Z.keys()),K=J.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{Z.delete(G)}),[w4(Z),$,X,Y]},ax=function(Z,J,$=null){if($==null)throw new ux.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==J.setName||J.me&&J.address!==J.me)Z.delete(J.address);return w4(Z)},ix=function(Z,J,$=null){const X=i.TopologyType.ReplicaSetNoPrimary;if($=$??J.setName,$!==J.setName)return Z.delete(J.address),[X,$];if(J.allHosts.forEach((Y)=>{if(!Z.has(Y))Z.set(Y,new x6.ServerDescription(Y))}),J.me&&J.address!==J.me)Z.delete(J.address);return[X,$]},w4=function(Z){for(let J of Z.values())if(J.type===i.ServerType.RSPrimary)return i.TopologyType.ReplicaSetWithPrimary;return i.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(qj,"__esModule",{value:!0});qj.TopologyDescription=void 0;var TZ=j4(),ux=h(),EY=_(),i=p0(),x6=C5(),dx=TZ.MIN_SUPPORTED_SERVER_VERSION,px=TZ.MAX_SUPPORTED_SERVER_VERSION,Xj=TZ.MIN_SUPPORTED_WIRE_VERSION,Yj=TZ.MAX_SUPPORTED_WIRE_VERSION,cx=new Set([i.ServerType.Mongos,i.ServerType.Unknown]),Qj=new Set([i.ServerType.Mongos,i.ServerType.Standalone]),Kj=new Set([i.ServerType.RSSecondary,i.ServerType.RSArbiter,i.ServerType.RSOther]);class h5{constructor(Z,J=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=Z??i.TopologyType.Unknown,this.servers=J??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===i.ServerType.Unknown||G.type===i.ServerType.LoadBalancer)continue;if(G.minWireVersion>Yj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${Yj} (MongoDB ${px})`;if(G.maxWireVersion<Xj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Xj} (MongoDB ${dx}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(Z,J=0){const $=Z.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(J===0)for(let G of Y)K.set(G,new x6.ServerDescription(G));else if(K.size<J){const G=EY.shuffle(Y,J-K.size);for(let q of G)K.set(q,new x6.ServerDescription(q))}}return new h5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(Z){const J=Z.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=Z.type,q=new Map(this.servers);if(Z.maxWireVersion!==0)if(K==null)K=Z.maxWireVersion;else K=Math.min(K,Z.maxWireVersion);if(typeof Z.setName==="string"&&typeof X==="string"&&Z.setName!==X)if($===i.TopologyType.Single)Z=new x6.ServerDescription(J);else q.delete(J);if(q.set(J,Z),$===i.TopologyType.Single)return new h5(i.TopologyType.Single,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===i.TopologyType.Unknown)if(G===i.ServerType.Standalone&&this.servers.size!==1)q.delete(J);else $=lx(G);if($===i.TopologyType.Sharded){if(!cx.has(G))q.delete(J)}if($===i.TopologyType.ReplicaSetNoPrimary){if(Qj.has(G))q.delete(J);if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G)){const F=ix(q,Z,X);$=F[0],X=F[1]}}if($===i.TopologyType.ReplicaSetWithPrimary)if(Qj.has(G))q.delete(J),$=w4(q);else if(G===i.ServerType.RSPrimary){const F=Gj(q,Z,X,Y,Q);$=F[0],X=F[1],Y=F[2],Q=F[3]}else if(Kj.has(G))$=ax(q,Z,X);else $=w4(q);return new h5($,q,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const Z=Array.from(this.servers.values()).filter((J)=>J.error);if(Z.length>0)return Z[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((Z)=>Z.type!==i.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((Z)=>Z.isDataBearing)}hasServer(Z){return this.servers.has(Z)}}qj.TopologyDescription=h5});var CY=z((Hj)=>{var tx=function(Z){let J=Z?.readPreference??BY.ReadPreference.primary;if(Z?.readPreference)J=Z.readPreference;if(typeof J==="string")J=BY.ReadPreference.fromString(J);if(!(J instanceof BY.ReadPreference))throw new sx.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return J},rx=function(Z){if(Z==null)return!1;if(Z.description&&Z.description.type===Wj.ServerType.Mongos)return!0;if(Z.description&&Z.description instanceof nx.TopologyDescription)return Array.from(Z.description.servers.values()).some(($)=>$.type===Wj.ServerType.Mongos);return!1};Object.defineProperty(Hj,"__esModule",{value:!0});Hj.isSharded=Hj.getReadPreference=void 0;var sx=h(),BY=y1(),Wj=p0(),nx=NY();Hj.getReadPreference=tx;Hj.isSharded=rx});var hY=z((Mj)=>{var Qv=function(Z){return!!(Z.commitTransaction||Z.abortTransaction)};Object.defineProperty(Mj,"__esModule",{value:!0});Mj.isTransactionCommand=Mj.Transaction=Mj.TxnState=void 0;var Vj=h(),ex=d0(),Zv=y1(),Jv=A0();Mj.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"});var $v={[Mj.TxnState.NO_TRANSACTION]:[Mj.TxnState.NO_TRANSACTION,Mj.TxnState.STARTING_TRANSACTION],[Mj.TxnState.STARTING_TRANSACTION]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_IN_PROGRESS]:[Mj.TxnState.TRANSACTION_IN_PROGRESS,Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_ABORTED],[Mj.TxnState.TRANSACTION_COMMITTED]:[Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_ABORTED]:[Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.NO_TRANSACTION],[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.NO_TRANSACTION]},Xv=new Set([Mj.TxnState.STARTING_TRANSACTION,Mj.TxnState.TRANSACTION_IN_PROGRESS]),Yv=new Set([Mj.TxnState.TRANSACTION_COMMITTED,Mj.TxnState.TRANSACTION_COMMITTED_EMPTY,Mj.TxnState.TRANSACTION_ABORTED]);class Uj{constructor(Z){Z=Z??{},this.state=Mj.TxnState.NO_TRANSACTION,this.options={};const J=Jv.WriteConcern.fromOptions(Z);if(J){if(J.w===0)throw new Vj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=J}if(Z.readConcern)this.options.readConcern=ex.ReadConcern.fromOptions(Z);if(Z.readPreference)this.options.readPreference=Zv.ReadPreference.fromOptions(Z);if(Z.maxCommitTimeMS)this.options.maxTimeMS=Z.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===Mj.TxnState.STARTING_TRANSACTION}get isActive(){return Xv.has(this.state)}get isCommitted(){return Yv.has(this.state)}transition(Z){const J=$v[this.state];if(J&&J.includes(Z)){if(this.state=Z,this.state===Mj.TxnState.NO_TRANSACTION||this.state===Mj.TxnState.STARTING_TRANSACTION||this.state===Mj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Vj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${Z}]`)}pinServer(Z){if(this.isActive)this._pinnedServer=Z}unpinServer(){this._pinnedServer=void 0}}Mj.Transaction=Uj;Mj.isTransactionCommand=Qv});var S5=z((Nj)=>{var Ij=function(Z,J){return F8.calculateDurationInMs(Z)<J},Uv=function(Z){const J=Z instanceof b.MongoServerError&&Z.codeName&&Vv.has(Z.codeName);return hZ(Z)||!J&&Z.code!==b.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&Z.code!==b.MONGODB_ERROR_CODES.UnknownReplWriteConcern},CZ=function(Z,J){const $=Z[Q7],X=J?.error;if(Z.inTransaction()&&X&&X instanceof b.MongoError&&X.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return;const Y=Z.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(J?.error==null||J?.force){if(K.pool.checkIn($),$.emit(Dj.UNPINNED,Z.transaction.state!==j1.TxnState.NO_TRANSACTION?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR),J?.forceClear)K.pool.clear({serviceId:$.serviceId})}Z[Q7]=void 0}},hZ=function(Z){if(Z==null||!(Z instanceof b.MongoServerError))return!1;return Z.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired||Z.writeConcernError&&Z.writeConcernError.code===b.MONGODB_ERROR_CODES.MaxTimeMSExpired},Ej=function(Z,J,$,X){return Z.commitTransaction().catch((Y)=>{if(Y instanceof b.MongoError&&Ij(J,Tj)&&!hZ(Y)){if(Y.hasErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult))return Ej(Z,J,$,X);if(Y.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))return yY(Z,J,$,X)}throw Y})},jv=function(Z){return Mv.has(Z.transaction.state)},yY=function(Z,J,$,X){Z.startTransaction(X);let Y;try{Y=$(Z)}catch(Q){Y=Promise.reject(Q)}if(!F8.isPromiseLike(Y))throw Z.abortTransaction().catch(()=>null),new b.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return Y.then(()=>{if(jv(Z))return;return Ej(Z,J,$,X)},(Q)=>{function K(G){if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError)&&Ij(J,Tj))return yY(Z,J,$,X);if(hZ(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(Z.inTransaction())return Z.abortTransaction().then(()=>K(Q));return K(Q)})},Av=function(Z,J,$){const X=Z.transaction.state;if(X===j1.TxnState.NO_TRANSACTION){$(new b.MongoTransactionError("No transaction started"));return}if(J==="commitTransaction"){if(X===j1.TxnState.STARTING_TRANSACTION||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),$();return}if(X===j1.TxnState.TRANSACTION_ABORTED){$(new b.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===j1.TxnState.TRANSACTION_COMMITTED||X===j1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new b.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[J]:1};let Q;if(Z.transaction.options.writeConcern)Q=Object.assign({},Z.transaction.options.writeConcern);else if(Z.clientOptions&&Z.clientOptions.writeConcern)Q={w:Z.clientOptions.writeConcern.w};if(X===j1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)Hv.WriteConcern.apply(Y,Q);if(J==="commitTransaction"&&Z.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:Z.transaction.options.maxTimeMS});function K(G,q){if(J!=="commitTransaction"){if(Z.transaction.transition(j1.TxnState.TRANSACTION_ABORTED),Z.loadBalanced)CZ(Z,{force:!1});return $()}if(Z.transaction.transition(j1.TxnState.TRANSACTION_COMMITTED),G instanceof b.MongoError){if(G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)||G instanceof b.MongoWriteConcernError||hZ(G)){if(Uv(G))G.addErrorLabel(b.MongoErrorLabel.UnknownTransactionCommitResult),Z.unpin({error:G})}else if(G.hasErrorLabel(b.MongoErrorLabel.TransientTransactionError))Z.unpin({error:G})}$(G,q)}if(Z.transaction.recoveryToken)Y.recoveryToken=Z.transaction.recoveryToken;Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),(G,q)=>{if(Y.abortTransaction)Z.unpin();if(G instanceof b.MongoError&&G.hasErrorLabel(b.MongoErrorLabel.RetryableWriteError)){if(Y.commitTransaction)Z.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Aj.executeOperation(Z.client,new Lj.RunAdminCommandOperation(void 0,Y,{session:Z,readPreference:wj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G,q)})},Lv=function(Z,J,$){if(Z.hasEnded)return new b.MongoExpiredSessionError;const X=Z.serverSession;if(X==null)return new b.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(Z&&Z.explicit)return new b.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F8.now(),J.lsid=X.id;const Y=Z.inTransaction()||j1.isTransactionCommand(J);if(!!$.willRetryWrite||Y)X.txnNumber+=Z[BZ],Z[BZ]=0,J.txnNumber=IZ.Long.fromNumber(X.txnNumber);if(!Y){if(Z.transaction.state!==j1.TxnState.NO_TRANSACTION)Z.transaction.transition(j1.TxnState.NO_TRANSACTION);if(Z.supports.causalConsistency&&Z.operationTime&&F8.commandSupportsReadConcern(J,$))J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime});else if(Z[K7]){if(J.readConcern=J.readConcern||{level:Wv.ReadConcernLevel.snapshot},Z[NZ]!=null)Object.assign(J.readConcern,{atClusterTime:Z[NZ]})}return}if(J.autocommit=!1,Z.transaction.state===j1.TxnState.STARTING_TRANSACTION){Z.transaction.transition(j1.TxnState.TRANSACTION_IN_PROGRESS),J.startTransaction=!0;const K=Z.transaction.options.readConcern||Z?.clientOptions?.readConcern;if(K)J.readConcern=K;if(Z.supports.causalConsistency&&Z.operationTime)J.readConcern=J.readConcern||{},Object.assign(J.readConcern,{afterClusterTime:Z.operationTime})}return},wv=function(Z,J){if(J.$clusterTime)OY._advanceClusterTime(Z,J.$clusterTime);if(J.operationTime&&Z&&Z.supports.causalConsistency)Z.advanceOperationTime(J.operationTime);if(J.recoveryToken&&Z&&Z.inTransaction())Z.transaction._recoveryToken=J.recoveryToken;if(Z?.[K7]&&Z[NZ]==null){const $=J.cursor?.atClusterTime||J.atClusterTime;if($)Z[NZ]=$}},Pj;Object.defineProperty(Nj,"__esModule",{value:!0});Nj.updateSessionFromResponse=Nj.applySession=Nj.ServerSessionPool=Nj.ServerSession=Nj.maybeClearPinnedConnection=Nj.ClientSession=void 0;var Gv=import.meta.require("util"),IZ=D1(),EZ=IY(),qv=CY(),Dj=f1(),b=h(),Fv=C0(),Aj=B0(),Lj=Z7(),Wv=d0(),wj=y1(),OY=p0(),j1=hY(),F8=_(),Hv=A0(),zv=8,Y7=Symbol("serverSession"),NZ=Symbol("snapshotTime"),K7=Symbol("snapshotEnabled"),Q7=Symbol("pinnedConnection"),BZ=Symbol("txnNumberIncrement");class SY extends Fv.TypedEventEmitter{constructor(Z,J,$,X){super();if(this[Pj]=!1,Z==null)throw new b.MongoRuntimeError("ClientSession requires a MongoClient");if(J==null||!(J instanceof kY))throw new b.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[K7]=!0,$.causalConsistency===!0)throw new b.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=Z,this.sessionPool=J,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[Y7]=this.explicit?this.sessionPool.acquire():null,this[BZ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new j1.Transaction}get id(){return this[Y7]?.id}get serverSession(){let Z=this[Y7];if(Z==null){if(this.explicit)throw new b.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new b.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");Z=this.sessionPool.acquire(),this[Y7]=Z}return Z}get snapshotEnabled(){return this[K7]}get loadBalanced(){return this.client.topology?.description.type===OY.TopologyType.LoadBalanced}get pinnedConnection(){return this[Q7]}pin(Z){if(this[Q7])throw TypeError("Cannot pin multiple connections to the same session");this[Q7]=Z,Z.emit(Dj.PINNED,this.inTransaction()?EZ.ConnectionPoolMetrics.TXN:EZ.ConnectionPoolMetrics.CURSOR)}unpin(Z){if(this.loadBalanced)return CZ(this,Z);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[Q7]:this.transaction.isPinned}async endSession(Z){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const J=this[Y7];if(J!=null)this.sessionPool.release(J),Object.defineProperty(this,Y7,{value:O5.clone(J),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{CZ(this,{force:!0,...Z})}}advanceOperationTime(Z){if(this.operationTime==null){this.operationTime=Z;return}if(Z.greaterThan(this.operationTime))this.operationTime=Z}advanceClusterTime(Z){if(!Z||typeof Z!=="object")throw new b.MongoInvalidArgumentError("input cluster time must be an object");if(!Z.clusterTime||Z.clusterTime._bsontype!=="Timestamp")throw new b.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!Z.signature||Z.signature.hash?._bsontype!=="Binary"||typeof Z.signature.keyId!=="bigint"&&typeof Z.signature.keyId!=="number"&&Z.signature.keyId?._bsontype!=="Long")throw new b.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');OY._advanceClusterTime(this,Z)}equals(Z){if(!(Z instanceof SY))return!1;if(this.id==null||Z.id==null)return!1;return F8.ByteUtils.equals(this.id.id.buffer,Z.id.id.buffer)}incrementTransactionNumber(){this[BZ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(Z){if(this[K7])throw new b.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new b.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const J=F8.maxWireVersion(this.client.topology);if(qv.isSharded(this.client.topology)&&J!=null&&J<zv)throw new b.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new j1.Transaction({readConcern:Z?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:Z?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:Z?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:Z?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(j1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Rj(this,"commitTransaction")}async abortTransaction(){return Rj(this,"abortTransaction")}toBSON(){throw new b.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(Z,J){const $=F8.now();return yY(this,$,Z,J)}}Nj.ClientSession=SY;Pj=K7;var Tj=120000,Vv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);Nj.maybeClearPinnedConnection=CZ;var Mv=new Set([j1.TxnState.NO_TRANSACTION,j1.TxnState.TRANSACTION_COMMITTED,j1.TxnState.TRANSACTION_ABORTED]),Rj=Gv.promisify(Av);class O5{constructor(){this.id={id:new IZ.Binary(F8.uuidV4(),IZ.Binary.SUBTYPE_UUID)},this.lastUse=F8.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(Z){return Math.round(F8.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>Z-1}static clone(Z){const J=new ArrayBuffer(16),$=Buffer.from(J);$.set(Z.id.id.buffer);const X=new IZ.Binary($,Z.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:Z.lastUse,txnNumber:Z.txnNumber,isDirty:Z.isDirty},O5.prototype)}}Nj.ServerSession=O5;class kY{constructor(Z){if(Z==null)throw new b.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=Z,this.sessions=new F8.List}acquire(){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;let J=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(Z))){J=$;break}}if(J==null)J=new O5;return J}release(Z){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!J)this.sessions.unshift(Z);if(!J)return;if(this.sessions.prune(($)=>$.hasTimedOut(J)),!Z.hasTimedOut(J)){if(Z.isDirty)return;this.sessions.unshift(Z)}}}Nj.ServerSessionPool=kY;Nj.applySession=Lv;Nj.updateSessionFromResponse=wv});var Q6=z((kj)=>{async function yZ(Z,{blocking:J,transform:$}){if(Z.closed)return null;do{if(Z[$0]==null)await _Y.promisify(Z[yj].bind(Z))();if(Z[X0].length!==0){const Y=Z[X0].shift();if(Y!=null&&$&&Z[x5])try{return Z[x5](Y)}catch(Q){throw await q7(Z,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(Z.isDead)return await q7(Z,{}),null;const X=Z[g1].batchSize||1000;try{const Y=await _Y.promisify(Z._getMore.bind(Z))(X);if(Y){const Q=typeof Y.cursor.id==="number"?W8.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?W8.Long.fromBigInt(Y.cursor.id):Y.cursor.id;Z[X0].pushMany(Y.cursor.nextBatch),Z[$0]=Q}}catch(Y){throw await q7(Z,{error:Y}).catch(()=>null),Y}if(Z.isDead)await q7(Z,{});if(Z[X0].length===0&&J===!1)return null}while(!Z.isDead||Z[X0].length!==0);return null}var vY=function(Z,J,$){const X=Z[$0],Y=Z[y5],Q=Z[SZ],K=Z[Y6],G=J?.error,q=J?.needsToEmitClosed??Z[X0].length===0;if(G){if(Z.loadBalanced&&G instanceof h0.MongoNetworkError)return F()}if(X==null||Q==null||X.isZero()||Y==null){if(q)Z[R4]=!0,Z[$0]=W8.Long.ZERO,Z.emit(F7.CLOSE);if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return $()}function F(){if(K){if(K.owner===Z){K.endSession({error:G}).finally(()=>{Z.emit(F7.CLOSE),$()});return}if(!K.inTransaction())xY.maybeClearPinnedConnection(K,{error:G})}return Z.emit(F7.CLOSE),$()}if(Z[_5]=!0,K.hasEnded)return F();Sj.executeOperation(Z[G7],new Bv.KillCursorsOperation(X,Y,Q,{session:K})).catch(()=>null).finally(F)},P4=function(Z){if(Z[k5])throw new h0.MongoCursorInUseError};Object.defineProperty(kj,"__esModule",{value:!0});kj.assertUninitialized=kj.AbstractCursor=kj.CURSOR_FLAGS=void 0;var Oj=import.meta.require("stream"),_Y=import.meta.require("util"),W8=D1(),h0=h(),Ev=C0(),Sj=B0(),Nv=PY(),Bv=nM(),Cj=d0(),OZ=y1(),xY=S5(),hj=_(),$0=Symbol("id"),X0=Symbol("documents"),SZ=Symbol("server"),y5=Symbol("namespace"),G7=Symbol("client"),Y6=Symbol("session"),g1=Symbol("options"),x5=Symbol("transform"),k5=Symbol("initialized"),R4=Symbol("closed"),_5=Symbol("killed"),yj=Symbol("kInit");kj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class F7 extends Ev.TypedEventEmitter{constructor(Z,J,$={}){super();if(!Z.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[G7]=Z,this[y5]=J,this[$0]=null,this[X0]=new hj.List,this[k5]=!1,this[R4]=!1,this[_5]=!1,this[g1]={readPreference:$.readPreference&&$.readPreference instanceof OZ.ReadPreference?$.readPreference:OZ.ReadPreference.primary,...W8.pluckBSONSerializeOptions($)};const X=Cj.ReadConcern.fromOptions($);if(X)this[g1].readConcern=X;if(typeof $.batchSize==="number")this[g1].batchSize=$.batchSize;if($.comment!==void 0)this[g1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[g1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[g1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof xY.ClientSession)this[Y6]=$.session;else this[Y6]=this[G7].startSession({owner:this,explicit:!1})}get id(){return this[$0]??void 0}get isDead(){return(this[$0]?.isZero()??!1)||this[R4]||this[_5]}get client(){return this[G7]}get server(){return this[SZ]}get namespace(){return this[y5]}get readPreference(){return this[g1].readPreference}get readConcern(){return this[g1].readConcern}get session(){return this[Y6]}set session(Z){this[Y6]=Z}get cursorOptions(){return this[g1]}get closed(){return this[R4]}get killed(){return this[_5]}get loadBalanced(){return!!this[G7].topology?.loadBalanced}bufferedCount(){return this[X0].length}readBufferedDocuments(Z){const J=[],$=Math.min(Z??this[X0].length,this[X0].length);for(let X=0;X<$;X++){const Y=this[X0].shift();if(Y!=null)J.push(Y)}return J}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const Z=await this.next();if(Z===null){if(!this.closed)throw await q7(this,{needsToEmitClosed:!0}).catch(()=>null),new h0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield Z,this[$0]===W8.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(Z){if(Z?.transform){const J=Z.transform;return new fY(this).pipe(new Oj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=J(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new fY(this)}async hasNext(){if(this[$0]===W8.Long.ZERO)return!1;if(this[X0].length!==0)return!0;const Z=await yZ(this,{blocking:!0,transform:!1});if(Z)return this[X0].unshift(Z),!0;return!1}async next(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[$0]===W8.Long.ZERO)throw new h0.MongoCursorExhaustedError;return yZ(this,{blocking:!1,transform:!0})}async forEach(Z){if(typeof Z!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let J of this)if(Z(J)===!1)break}async close(){const Z=!this[R4];this[R4]=!0,await q7(this,{needsToEmitClosed:Z})}async toArray(){const Z=[];for await(let J of this)Z.push(J);return Z}addCursorFlag(Z,J){if(P4(this),!kj.CURSOR_FLAGS.includes(Z))throw new h0.MongoInvalidArgumentError(`Flag ${Z} is not one of ${kj.CURSOR_FLAGS}`);if(typeof J!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${Z} must be a boolean value`);return this[g1][Z]=J,this}map(Z){P4(this);const J=this[x5];if(J)this[x5]=($)=>{return Z(J($))};else this[x5]=Z;return this}withReadPreference(Z){if(P4(this),Z instanceof OZ.ReadPreference)this[g1].readPreference=Z;else if(typeof Z==="string")this[g1].readPreference=OZ.ReadPreference.fromString(Z);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return this}withReadConcern(Z){P4(this);const J=Cj.ReadConcern.fromOptions({readConcern:Z});if(J)this[g1].readConcern=J;return this}maxTimeMS(Z){if(P4(this),typeof Z!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[g1].maxTimeMS=Z,this}batchSize(Z){if(P4(this),this[g1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof Z!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[g1].batchSize=Z,this}rewind(){if(!this[k5])return;this[$0]=null,this[X0].clear(),this[R4]=!1,this[_5]=!1,this[k5]=!1;const Z=this[Y6];if(Z){if(Z.explicit===!1){if(!Z.hasEnded)Z.endSession().catch(()=>null);this[Y6]=this.client.startSession({owner:this,explicit:!1})}}}_getMore(Z,J){const $=new Nv.GetMoreOperation(this[y5],this[$0],this[SZ],{...this[g1],session:this[Y6],batchSize:Z});Sj.executeOperation(this[G7],$,J)}[yj](Z){this._initialize(this[Y6],(J,$)=>{if($){const X=$.response;if(this[SZ]=$.server,X.cursor){if(this[$0]=typeof X.cursor.id==="number"?W8.Long.fromNumber(X.cursor.id):typeof X.cursor.id==="bigint"?W8.Long.fromBigInt(X.cursor.id):X.cursor.id,X.cursor.ns)this[y5]=hj.ns(X.cursor.ns);this[X0].pushMany(X.cursor.firstBatch)}if(this[$0]==null)this[$0]=W8.Long.ZERO,this[X0].push($.response)}if(this[k5]=!0,J)return vY(this,{error:J},()=>Z(J,void 0));if(this.isDead)return vY(this,void 0,()=>Z());Z()})}}F7.CLOSE="close";kj.AbstractCursor=F7;var q7=_Y.promisify(vY);kj.assertUninitialized=P4;class fY extends Oj.Readable{constructor(Z){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=Z}_read(Z){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(Z,J){this._cursor.close().then(()=>J(Z),($)=>J($))}_readNext(){yZ(this._cursor,{blocking:!0,transform:!0}).then((Z)=>{if(Z==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(Z))return this._readNext();this._readInProgress=!1}},(Z)=>{if(Z.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(Z.message.match(/operation was interrupted/))return this.push(null);return this.destroy(Z)})}}});var v5=z((fj)=>{Object.defineProperty(fj,"__esModule",{value:!0});fj.AggregationCursor=void 0;var xj=RZ(),vj=B0(),hv=_(),a0=Q6(),Y0=Symbol("pipeline"),kZ=Symbol("options");class bY extends a0.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);this[Y0]=$,this[kZ]=X}get pipeline(){return this[Y0]}clone(){const Z=hv.mergeOptions({},this[kZ]);return delete Z.session,new bY(this.client,this.namespace,this[Y0],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,session:Z});vj.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}async explain(Z){return vj.executeOperation(this.client,new xj.AggregateOperation(this.namespace,this[Y0],{...this[kZ],...this.cursorOptions,explain:Z??!0}))}group(Z){return a0.assertUninitialized(this),this[Y0].push({$group:Z}),this}limit(Z){return a0.assertUninitialized(this),this[Y0].push({$limit:Z}),this}match(Z){return a0.assertUninitialized(this),this[Y0].push({$match:Z}),this}out(Z){return a0.assertUninitialized(this),this[Y0].push({$out:Z}),this}project(Z){return a0.assertUninitialized(this),this[Y0].push({$project:Z}),this}lookup(Z){return a0.assertUninitialized(this),this[Y0].push({$lookup:Z}),this}redact(Z){return a0.assertUninitialized(this),this[Y0].push({$redact:Z}),this}skip(Z){return a0.assertUninitialized(this),this[Y0].push({$skip:Z}),this}sort(Z){return a0.assertUninitialized(this),this[Y0].push({$sort:Z}),this}unwind(Z){return a0.assertUninitialized(this),this[Y0].push({$unwind:Z}),this}geoNear(Z){return a0.assertUninitialized(this),this[Y0].push({$geoNear:Z}),this}}fj.AggregationCursor=bY});var dY=z((bj)=>{Object.defineProperty(bj,"__esModule",{value:!0});bj.CountOperation=void 0;var Ov=T1(),mY=J1();class uY extends Ov.CommandCallbackOperation{constructor(Z,J,$){super({s:{namespace:Z}},$);this.options=$,this.collectionName=Z.collection,this.query=J}executeCallback(Z,J,$){const X=this.options,Y={count:this.collectionName,query:this.query};if(typeof X.limit==="number")Y.limit=X.limit;if(typeof X.skip==="number")Y.skip=X.skip;if(X.hint!=null)Y.hint=X.hint;if(typeof X.maxTimeMS==="number")Y.maxTimeMS=X.maxTimeMS;super.executeCommandCallback(Z,J,Y,(Q,K)=>{$(Q,K?K.n:0)})}}bj.CountOperation=uY;mY.defineAspects(uY,[mY.Aspect.READ_OPERATION,mY.Aspect.RETRYABLE])});var _Z=z((dj)=>{var W7=function(Z=1){const J=`${Z}`.toLowerCase();if(Sv(Z))return Z;switch(J){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new uj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(Z)}`)}},Sv=function(Z){return typeof Z==="object"&&Z!=null&&"$meta"in Z&&typeof Z.$meta==="string"},yv=function(Z){if(Array.isArray(Z)&&Z.length===2)try{return W7(Z[1]),!0}catch(J){return!1}return!1},kv=function(Z){return Array.isArray(Z)&&Array.isArray(Z[0])},_v=function(Z){return Z instanceof Map&&Z.size>0},xv=function(Z){return new Map([[`${Z[0]}`,W7([Z[1]])]])},vv=function(Z){const J=Z.map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},fv=function(Z){const J=Z.map(($)=>[`${$}`,1]);return new Map(J)},gv=function(Z){const J=Object.entries(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},bv=function(Z){const J=Array.from(Z).map(([$,X])=>[`${$}`,W7(X)]);return new Map(J)},mv=function(Z,J){if(Z==null)return;if(typeof Z==="string")return new Map([[Z,W7(J)]]);if(typeof Z!=="object")throw new uj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(Z)} Sort must be a valid object`);if(!Array.isArray(Z))return _v(Z)?bv(Z):Object.keys(Z).length?gv(Z):void 0;if(!Z.length)return;if(kv(Z))return vv(Z);if(yv(Z))return xv(Z);return fv(Z)};Object.defineProperty(dj,"__esModule",{value:!0});dj.formatSort=void 0;var uj=h();dj.formatSort=mv});var ij=z((lj)=>{var lv=function(Z,J,$){const X={find:Z.collection,filter:J};if($.sort)X.sort=pv.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=cj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=dv.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(lj,"__esModule",{value:!0});lj.FindOperation=void 0;var uv=h(),dv=d0(),pv=_Z(),cj=_(),cv=T1(),f5=J1();class pY extends cv.CommandCallbackOperation{constructor(Z,J,$={},X={}){super(Z,X);if(this.options={...X},delete this.options.writeConcern,this.ns=J,typeof $!=="object"||Array.isArray($))throw new uv.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}executeCallback(Z,J,$){this.server=Z;const X=this.options;let Y=lv(this.ns,this.filter,X);if(this.explain)Y=cj.decorateWithExplain(Y,this.explain);Z.command(this.ns,Y,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:J},$)}}lj.FindOperation=pY;f5.defineAspects(pY,[f5.Aspect.READ_OPERATION,f5.Aspect.RETRYABLE,f5.Aspect.EXPLAINABLE,f5.Aspect.CURSOR_CREATING])});var iY=z((tj)=>{Object.defineProperty(tj,"__esModule",{value:!0});tj.FindCursor=tj.FLAGS=void 0;var av=D1(),H8=h(),iv=dY(),cY=B0(),sj=ij(),lY=_Z(),nj=_(),p1=Q6(),D4=Symbol("filter"),g5=Symbol("numReturned"),n=Symbol("builtOptions");tj.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class aY extends p1.AbstractCursor{constructor(Z,J,$={},X={}){super(Z,J,X);if(this[D4]=$,this[n]=X,X.sort!=null)this[n].sort=lY.formatSort(X.sort)}clone(){const Z=nj.mergeOptions({},this[n]);return delete Z.session,new aY(this.client,this.namespace,this[D4],{...Z})}map(Z){return super.map(Z)}_initialize(Z,J){const $=new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,session:Z});cY.executeOperation(this.client,$,(X,Y)=>{if(X||Y==null)return J(X);if(Y.cursor)this[g5]=Y.cursor.firstBatch.length;else this[g5]=Y.documents?Y.documents.length:0;J(void 0,{server:$.server,session:Z,response:Y})})}_getMore(Z,J){const $=this[g5];if($){const X=this[n].limit;if(Z=X&&X>0&&$+Z>X?X-$:Z,Z<=0){this.close().finally(()=>J(void 0,{cursor:{id:av.Long.ZERO,nextBatch:[]}}));return}}super._getMore(Z,(X,Y)=>{if(X)return J(X);if(Y)this[g5]=this[g5]+Y.cursor.nextBatch.length;J(void 0,Y)})}async count(Z){if(nj.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof Z==="boolean")throw new H8.MongoInvalidArgumentError("Invalid first parameter to count");return cY.executeOperation(this.client,new iv.CountOperation(this.namespace,this[D4],{...this[n],...this.cursorOptions,...Z}))}async explain(Z){return cY.executeOperation(this.client,new sj.FindOperation(void 0,this.namespace,this[D4],{...this[n],...this.cursorOptions,explain:Z??!0}))}filter(Z){return p1.assertUninitialized(this),this[D4]=Z,this}hint(Z){return p1.assertUninitialized(this),this[n].hint=Z,this}min(Z){return p1.assertUninitialized(this),this[n].min=Z,this}max(Z){return p1.assertUninitialized(this),this[n].max=Z,this}returnKey(Z){return p1.assertUninitialized(this),this[n].returnKey=Z,this}showRecordId(Z){return p1.assertUninitialized(this),this[n].showRecordId=Z,this}addQueryModifier(Z,J){if(p1.assertUninitialized(this),Z[0]!=="$")throw new H8.MongoInvalidArgumentError(`${Z} is not a valid query modifier`);switch(Z.substr(1)){case"comment":this[n].comment=J;break;case"explain":this[n].explain=J;break;case"hint":this[n].hint=J;break;case"max":this[n].max=J;break;case"maxTimeMS":this[n].maxTimeMS=J;break;case"min":this[n].min=J;break;case"orderby":this[n].sort=lY.formatSort(J);break;case"query":this[D4]=J;break;case"returnKey":this[n].returnKey=J;break;case"showDiskLoc":this[n].showRecordId=J;break;default:throw new H8.MongoInvalidArgumentError(`Invalid query modifier: ${Z}`)}return this}comment(Z){return p1.assertUninitialized(this),this[n].comment=Z,this}maxAwaitTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[n].maxAwaitTimeMS=Z,this}maxTimeMS(Z){if(p1.assertUninitialized(this),typeof Z!=="number")throw new H8.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[n].maxTimeMS=Z,this}project(Z){return p1.assertUninitialized(this),this[n].projection=Z,this}sort(Z,J){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support sorting");return this[n].sort=lY.formatSort(Z,J),this}allowDiskUse(Z=!0){if(p1.assertUninitialized(this),!this[n].sort)throw new H8.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!Z)return this[n].allowDiskUse=!1,this;return this[n].allowDiskUse=!0,this}collation(Z){return p1.assertUninitialized(this),this[n].collation=Z,this}limit(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[n].limit=Z,this}skip(Z){if(p1.assertUninitialized(this),this[n].tailable)throw new H8.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof Z!=="number")throw new H8.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[n].skip=Z,this}}tj.FindCursor=aY});var b5=z((JA)=>{var rv=function(Z){return typeof Z==="number"||Z==="2d"||Z==="2dsphere"||Z==="text"||Z==="geoHaystack"},ov=function(Z){return Array.isArray(Z)&&Z.length===2&&rv(Z[1])},ev=function(Z,J){const $=new Map,X=!Array.isArray(Z)||ov(Z)?[Z]:Z;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(nY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...J,key:$}};Object.defineProperty(JA,"__esModule",{value:!0});JA.IndexInformationOperation=JA.IndexExistsOperation=JA.ListIndexesOperation=JA.DropIndexesOperation=JA.DropIndexOperation=JA.EnsureIndexOperation=JA.CreateIndexOperation=JA.CreateIndexesOperation=JA.IndexesOperation=void 0;var sY=h(),nv=y1(),nY=_(),tY=T1(),rY=$Y(),c1=J1(),tv=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class oj extends c1.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection,Y=this.options;rY.indexInformation(X.s.db,X.collectionName,{full:!0,...Y,readPreference:this.readPreference,session:J},$)}}JA.IndexesOperation=oj;class xZ extends tY.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collectionName=J,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([q])=>tv.has(q))),name:K,key:Q}})}executeCallback(Z,J,$){const X=this.options,Y=this.indexes,Q=nY.maxWireVersion(Z),K={createIndexes:this.collectionName,indexes:Y};if(X.commitQuorum!=null){if(Q<9){$(new sY.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));return}K.commitQuorum=X.commitQuorum}this.options.collation=void 0,super.executeCommandCallback(Z,J,K,(G)=>{if(G){$(G);return}const q=Y.map((F)=>F.name||"");$(void 0,q)})}}JA.CreateIndexesOperation=xZ;class vZ extends xZ{constructor(Z,J,$,X){super(Z,J,[ev($,X)],X)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y)return $(X);return $(void 0,Y[0])})}}JA.CreateIndexOperation=vZ;class oY extends vZ{constructor(Z,J,$,X){super(Z,J,$,X);this.readPreference=nv.ReadPreference.primary,this.db=Z,this.collectionName=J}executeCallback(Z,J,$){const X=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:J}).toArray().then((Q)=>{if(Q=Array.isArray(Q)?Q:[Q],Q.some((K)=>K.name===X)){$(void 0,X);return}super.executeCallback(Z,J,$)},(Q)=>{if(Q instanceof sY.MongoError&&Q.code===sY.MONGODB_ERROR_CODES.NamespaceNotFound)return super.executeCallback(Z,J,$);return $(Q)})}}JA.EnsureIndexOperation=oY;class fZ extends tY.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.collection=Z,this.indexName=J}executeCallback(Z,J,$){const X={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommandCallback(Z,J,X,$)}}JA.DropIndexOperation=fZ;class eY extends fZ{constructor(Z,J){super(Z,"*",J)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X)=>{if(X)return $(X,!1);$(void 0,!0)})}}JA.DropIndexesOperation=eY;class Z3 extends tY.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options={...J},delete this.options.writeConcern,this.collectionNamespace=Z.s.namespace}executeCallback(Z,J,$){const X=nY.maxWireVersion(Z),Y=this.options.batchSize?{batchSize:this.options.batchSize}:{},Q={listIndexes:this.collectionNamespace.collection,cursor:Y};if(X>=9&&this.options.comment!==void 0)Q.comment=this.options.comment;super.executeCommandCallback(Z,J,Q,$)}}JA.ListIndexesOperation=Z3;class ej extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$,this.collection=Z,this.indexes=J}executeCallback(Z,J,$){const X=this.collection,Y=this.indexes;rY.indexInformation(X.s.db,X.collectionName,{...this.options,readPreference:this.readPreference,session:J},(Q,K)=>{if(Q!=null)return $(Q);if(!Array.isArray(Y))return $(void 0,K[Y]!=null);for(let G=0;G<Y.length;G++)if(K[Y[G]]==null)return $(void 0,!1);return $(void 0,!0)})}}JA.IndexExistsOperation=ej;class ZA extends c1.AbstractCallbackOperation{constructor(Z,J,$){super($);this.options=$??{},this.db=Z,this.name=J}executeCallback(Z,J,$){const X=this.db,Y=this.name;rY.indexInformation(X,Y,{...this.options,readPreference:this.readPreference,session:J},$)}}JA.IndexInformationOperation=ZA;c1.defineAspects(Z3,[c1.Aspect.READ_OPERATION,c1.Aspect.RETRYABLE,c1.Aspect.CURSOR_CREATING]);c1.defineAspects(xZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(vZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(oY,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(fZ,[c1.Aspect.WRITE_OPERATION]);c1.defineAspects(eY,[c1.Aspect.WRITE_OPERATION])});var $3=z((XA)=>{Object.defineProperty(XA,"__esModule",{value:!0});XA.ListIndexesCursor=void 0;var qf=B0(),Ff=b5(),Wf=Q6();class J3 extends Wf.AbstractCursor{constructor(Z,J){super(Z.client,Z.s.namespace,J);this.parent=Z,this.options=J}clone(){return new J3(this.parent,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Ff.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:Z});qf.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}XA.ListIndexesCursor=J3});var qA=z((KA)=>{Object.defineProperty(KA,"__esModule",{value:!0});KA.ListSearchIndexesCursor=void 0;var Hf=v5();class QA extends Hf.AggregationCursor{constructor({fullNamespace:Z,client:J},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(J,Z,Y,X)}}KA.ListSearchIndexesCursor=QA});var zA=z((WA)=>{Object.defineProperty(WA,"__esModule",{value:!0});WA.CountDocumentsOperation=void 0;var zf=RZ();class FA extends zf.AggregateOperation{constructor(Z,J,$){const X=[];if(X.push({$match:J}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(Z.s.namespace,X,$)}executeCallback(Z,J,$){super.executeCallback(Z,J,(X,Y)=>{if(X||!Y){$(X);return}const Q=Y;if(Q.cursor==null||Q.cursor.firstBatch==null){$(void 0,0);return}const K=Q.cursor.firstBatch;$(void 0,K.length?K[0].n:0)})}}WA.CountDocumentsOperation=FA});var jA=z((UA)=>{Object.defineProperty(UA,"__esModule",{value:!0});UA.DistinctOperation=void 0;var VA=_(),Vf=T1(),gZ=J1();class X3 extends Vf.CommandCallbackOperation{constructor(Z,J,$,X){super(Z,X);this.options=X??{},this.collection=Z,this.key=J,this.query=$}executeCallback(Z,J,$){const X=this.collection,Y=this.key,Q=this.query,K=this.options,G={distinct:X.collectionName,key:Y,query:Q};if(typeof K.maxTimeMS==="number")G.maxTimeMS=K.maxTimeMS;if(typeof K.comment!=="undefined")G.comment=K.comment;VA.decorateWithReadConcern(G,X,K);try{VA.decorateWithCollation(G,X,K)}catch(q){return $(q)}super.executeCommandCallback(Z,J,G,(q,F)=>{if(q){$(q);return}$(void 0,this.explain?F:F.values)})}}UA.DistinctOperation=X3;gZ.defineAspects(X3,[gZ.Aspect.READ_OPERATION,gZ.Aspect.RETRYABLE,gZ.Aspect.EXPLAINABLE])});var Q3=z((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.DropDatabaseOperation=wA.DropCollectionOperation=void 0;var AA=h(),LA=T1(),bZ=J1();class mZ extends LA.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.db=Z,this.options=$,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.options,Q=this.name,K=X.client.options.autoEncryption?.encryptedFieldsMap;let G=Y.encryptedFields??K?.[`${X.databaseName}.${Q}`];if(!G&&K)G=(await X.listCollections({name:Q},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(G){const q=G.escCollection||`enxcol_.${Q}.esc`,F=G.ecocCollection||`enxcol_.${Q}.ecoc`;for(let W of[q,F]){const H=new mZ(X,W);try{await H.executeWithoutEncryptedFieldsCheck(Z,J)}catch(V){if(!(V instanceof AA.MongoServerError)||V.code!==AA.MONGODB_ERROR_CODES.NamespaceNotFound)throw V}}}return this.executeWithoutEncryptedFieldsCheck(Z,J)})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{super.executeCommandCallback(Z,J,{drop:this.name},(Y,Q)=>{if(Y)return X(Y);$(!!Q.ok)})})}}wA.DropCollectionOperation=mZ;class Y3 extends LA.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{dropDatabase:1},(X,Y)=>{if(X)return $(X);if(Y.ok)return $(void 0,!0);$(void 0,!1)})}}wA.DropDatabaseOperation=Y3;bZ.defineAspects(mZ,[bZ.Aspect.WRITE_OPERATION]);bZ.defineAspects(Y3,[bZ.Aspect.WRITE_OPERATION])});var TA=z((PA)=>{Object.defineProperty(PA,"__esModule",{value:!0});PA.EstimatedDocumentCountOperation=void 0;var Mf=T1(),uZ=J1();class K3 extends Mf.CommandCallbackOperation{constructor(Z,J={}){super(Z,J);this.options=J,this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")X.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)X.comment=this.options.comment;super.executeCommandCallback(Z,J,X,(Y,Q)=>{if(Y){$(Y);return}$(void 0,Q?.n||0)})}}PA.EstimatedDocumentCountOperation=K3;uZ.defineAspects(K3,[uZ.Aspect.READ_OPERATION,uZ.Aspect.RETRYABLE,uZ.Aspect.CURSOR_CREATING])});var G3=z((CA)=>{var IA=function(Z,J){if(Z.new=J.returnDocument===CA.ReturnDocument.AFTER,Z.upsert=J.upsert===!0,J.bypassDocumentValidation===!0)Z.bypassDocumentValidation=J.bypassDocumentValidation;return Z};Object.defineProperty(CA,"__esModule",{value:!0});CA.FindOneAndUpdateOperation=CA.FindOneAndReplaceOperation=CA.FindOneAndDeleteOperation=CA.ReturnDocument=void 0;var v6=h(),jf=y1(),Af=_Z(),pZ=_(),Lf=T1(),dZ=J1();CA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class m5 extends Lf.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??($.includeResultMetadata=!0);const X=Af.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=jf.ReadPreference.primary,this.collection=Z,this.query=J}executeCallback(Z,J,$){const X=this.collection,Y=this.query,Q={...this.options,...this.bsonOptions},K={findAndModify:X.collectionName,query:Y,...this.cmdBase};try{pZ.decorateWithCollation(K,X,Q)}catch(G){return $(G)}if(Q.hint){if(this.writeConcern?.w===0||pZ.maxWireVersion(Z)<8){$(new v6.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));return}K.hint=Q.hint}super.executeCommandCallback(Z,J,K,(G,q)=>{if(G)return $(G);return $(void 0,Q.includeResultMetadata?q:q.value??null)})}}class EA extends m5{constructor(Z,J,$){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');super(Z,J,$);this.cmdBase.remove=!0}}CA.FindOneAndDeleteOperation=EA;class NA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "replacement" must be an object');if(pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(Z,J,X);this.cmdBase.update=$,IA(this.cmdBase,X)}}CA.FindOneAndReplaceOperation=NA;class BA extends m5{constructor(Z,J,$,X){if(J==null||typeof J!=="object")throw new v6.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new v6.MongoInvalidArgumentError('Argument "update" must be an object');if(!pZ.hasAtomicOperators($))throw new v6.MongoInvalidArgumentError("Update document requires atomic operators");super(Z,J,X);if(this.cmdBase.update=$,IA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}CA.FindOneAndUpdateOperation=BA;dZ.defineAspects(m5,[dZ.Aspect.WRITE_OPERATION,dZ.Aspect.RETRYABLE,dZ.Aspect.EXPLAINABLE])});var _A=z((yA)=>{Object.defineProperty(yA,"__esModule",{value:!0});yA.IsCappedOperation=void 0;var Pf=h(),Df=J1();class SA extends Df.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Pf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,!!Y[0].options?.capped)},(Y)=>$(Y))}}yA.IsCappedOperation=SA});var gA=z((vA)=>{Object.defineProperty(vA,"__esModule",{value:!0});vA.OptionsOperation=void 0;var Tf=h(),If=J1();class xA extends If.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.collection=Z}executeCallback(Z,J,$){const X=this.collection;X.s.db.listCollections({name:X.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:J}).toArray().then((Y)=>{if(Y.length===0)return $(new Tf.MongoAPIError(`collection ${X.namespace} not found`));$(void 0,Y[0].options)},(Y)=>$(Y))}}vA.OptionsOperation=xA});var F3=z((mA)=>{Object.defineProperty(mA,"__esModule",{value:!0});mA.RenameOperation=void 0;var Ef=T4(),Nf=h(),Bf=_(),bA=J1(),Cf=Z7();class q3 extends Cf.RunAdminCommandOperation{constructor(Z,J,$){Bf.checkCollectionName(J);const X=Z.namespace,Y=Z.s.namespace.withCollection(J).toString(),Q=typeof $.dropTarget==="boolean"?$.dropTarget:!1,K={renameCollection:X,to:Y,dropTarget:Q};super(Z,K,$);this.options=$,this.collection=Z,this.newName=J}executeCallback(Z,J,$){const X=this.collection;super.executeCallback(Z,J,(Y,Q)=>{if(Y)return $(Y);if(Q?.errmsg)return $(new Nf.MongoServerError(Q));let K;try{K=new Ef.Collection(X.s.db,this.newName,X.s.options)}catch(G){return $(G)}return $(void 0,K)})}}mA.RenameOperation=q3;bA.defineAspects(q3,[bA.Aspect.WRITE_OPERATION])});var lA=z((pA)=>{Object.defineProperty(pA,"__esModule",{value:!0});pA.CreateSearchIndexesOperation=void 0;var hf=J1();class dA extends hf.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.descriptions=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={createSearchIndexes:X.collection,indexes:this.descriptions};Z.command(X,Y,{session:J},(Q,K)=>{if(Q||!K){$(Q);return}const G=K?.indexesCreated??[];$(void 0,G.map(({name:q})=>q))})}}pA.CreateSearchIndexesOperation=dA});var nA=z((iA)=>{Object.defineProperty(iA,"__esModule",{value:!0});iA.DropSearchIndexOperation=void 0;var Of=J1();class aA extends Of.AbstractCallbackOperation{constructor(Z,J){super();this.collection=Z,this.name=J}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={dropSearchIndex:X.collection};if(typeof this.name==="string")Y.name=this.name;Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}iA.DropSearchIndexOperation=aA});var eA=z((rA)=>{Object.defineProperty(rA,"__esModule",{value:!0});rA.UpdateSearchIndexOperation=void 0;var Sf=J1();class tA extends Sf.AbstractCallbackOperation{constructor(Z,J,$){super();this.collection=Z,this.name=J,this.definition=$}executeCallback(Z,J,$){const X=this.collection.fullNamespace,Y={updateSearchIndex:X.collection,name:this.name,definition:this.definition};Z.command(X,Y,{session:J},(Q)=>{if(Q){$(Q);return}$()})}}rA.UpdateSearchIndexOperation=tA});var z3=z((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.DbStatsOperation=JL.CollStatsOperation=void 0;var ZL=T1(),cZ=J1();class W3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J??{},this.collectionName=Z.collectionName}executeCallback(Z,J,$){const X={collStats:this.collectionName};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.CollStatsOperation=W3;class H3 extends ZL.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){const X={dbStats:!0};if(this.options.scale!=null)X.scale=this.options.scale;super.executeCommandCallback(Z,J,X,$)}}JL.DbStatsOperation=H3;cZ.defineAspects(W3,[cZ.Aspect.READ_OPERATION]);cZ.defineAspects(H3,[cZ.Aspect.READ_OPERATION])});var T4=z((GL)=>{Object.defineProperty(GL,"__esModule",{value:!0});GL.Collection=void 0;var kf=D1(),_f=MY(),xf=jY(),vf=H7(),ff=v5(),gf=iY(),bf=$3(),mf=qA(),XL=h(),uf=JY(),df=dY(),pf=zA(),YL=oX(),cf=jA(),lf=Q3(),af=TA(),X1=B0(),V3=G3(),I4=b5(),QL=QY(),sf=_A(),nf=gA(),tf=F3(),rf=lA(),of=nA(),ef=eA(),Zg=z3(),U3=WY(),Jg=d0(),M3=y1(),o=_(),$g=A0();class KL{constructor(Z,J,$){o.checkCollectionName(J),this.s={db:Z,options:$,namespace:new o.MongoDBCollectionNamespace(Z.databaseName,J),pkFactory:Z.options?.pkFactory??o.DEFAULT_PK_FACTORY,readPreference:M3.ReadPreference.fromOptions($),bsonOptions:kf.resolveBSONOptions($,Z),readConcern:Jg.ReadConcern.fromOptions($),writeConcern:$g.WriteConcern.fromOptions($)},this.client=Z.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(Z){this.s.collectionHint=o.normalizeHintField(Z)}async insertOne(Z,J){return X1.executeOperation(this.client,new QL.InsertOneOperation(this,Z,o.resolveOptions(this,J)))}async insertMany(Z,J){return X1.executeOperation(this.client,new QL.InsertManyOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async bulkWrite(Z,J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return X1.executeOperation(this.client,new uf.BulkWriteOperation(this,Z,o.resolveOptions(this,J??{ordered:!0})))}async updateOne(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateOneOperation(this,Z,J,o.resolveOptions(this,$)))}async replaceOne(Z,J,$){return X1.executeOperation(this.client,new U3.ReplaceOneOperation(this,Z,J,o.resolveOptions(this,$)))}async updateMany(Z,J,$){return X1.executeOperation(this.client,new U3.UpdateManyOperation(this,Z,J,o.resolveOptions(this,$)))}async deleteOne(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteOneOperation(this,Z,o.resolveOptions(this,J)))}async deleteMany(Z={},J={}){return X1.executeOperation(this.client,new YL.DeleteManyOperation(this,Z,o.resolveOptions(this,J)))}async rename(Z,J){return X1.executeOperation(this.client,new tf.RenameOperation(this,Z,{...J,readPreference:M3.ReadPreference.PRIMARY}))}async drop(Z){return X1.executeOperation(this.client,new lf.DropCollectionOperation(this.s.db,this.collectionName,Z))}async findOne(Z={},J={}){const $=this.find(Z,J).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(Z={},J={}){return new gf.FindCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}async options(Z){return X1.executeOperation(this.client,new nf.OptionsOperation(this,o.resolveOptions(this,Z)))}async isCapped(Z){return X1.executeOperation(this.client,new sf.IsCappedOperation(this,o.resolveOptions(this,Z)))}async createIndex(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexOperation(this,this.collectionName,Z,o.resolveOptions(this,J)))}async createIndexes(Z,J){return X1.executeOperation(this.client,new I4.CreateIndexesOperation(this,this.collectionName,Z,o.resolveOptions(this,{...J,maxTimeMS:void 0})))}async dropIndex(Z,J){return X1.executeOperation(this.client,new I4.DropIndexOperation(this,Z,{...o.resolveOptions(this,J),readPreference:M3.ReadPreference.primary}))}async dropIndexes(Z){return X1.executeOperation(this.client,new I4.DropIndexesOperation(this,o.resolveOptions(this,Z)))}listIndexes(Z){return new bf.ListIndexesCursor(this,o.resolveOptions(this,Z))}async indexExists(Z,J){return X1.executeOperation(this.client,new I4.IndexExistsOperation(this,Z,o.resolveOptions(this,J)))}async indexInformation(Z){return X1.executeOperation(this.client,new I4.IndexInformationOperation(this.s.db,this.collectionName,o.resolveOptions(this,Z)))}async estimatedDocumentCount(Z){return X1.executeOperation(this.client,new af.EstimatedDocumentCountOperation(this,o.resolveOptions(this,Z)))}async countDocuments(Z={},J={}){return X1.executeOperation(this.client,new pf.CountDocumentsOperation(this,Z,o.resolveOptions(this,J)))}async distinct(Z,J={},$={}){return X1.executeOperation(this.client,new cf.DistinctOperation(this,Z,J,o.resolveOptions(this,$)))}async indexes(Z){return X1.executeOperation(this.client,new I4.IndexesOperation(this,o.resolveOptions(this,Z)))}async stats(Z){return X1.executeOperation(this.client,new Zg.CollStatsOperation(this,Z))}async findOneAndDelete(Z,J){return X1.executeOperation(this.client,new V3.FindOneAndDeleteOperation(this,Z,o.resolveOptions(this,J)))}async findOneAndReplace(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndReplaceOperation(this,Z,J,o.resolveOptions(this,$)))}async findOneAndUpdate(Z,J,$){return X1.executeOperation(this.client,new V3.FindOneAndUpdateOperation(this,Z,J,o.resolveOptions(this,$)))}aggregate(Z=[],J){if(!Array.isArray(Z))throw new XL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new ff.AggregationCursor(this.client,this.s.namespace,Z,o.resolveOptions(this,J))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new vf.ChangeStream(this,Z,o.resolveOptions(this,J))}initializeUnorderedBulkOp(Z){return new xf.UnorderedBulkOperation(this,o.resolveOptions(this,Z))}initializeOrderedBulkOp(Z){return new _f.OrderedBulkOperation(this,o.resolveOptions(this,Z))}async count(Z={},J={}){return X1.executeOperation(this.client,new df.CountOperation(this.fullNamespace,Z,o.resolveOptions(this,J)))}listSearchIndexes(Z,J){J=typeof Z==="object"?Z:J==null?{}:J;const $=Z==null?null:typeof Z==="object"?null:Z;return new mf.ListSearchIndexesCursor(this,$,J)}async createSearchIndex(Z){const[J]=await this.createSearchIndexes([Z]);return J}async createSearchIndexes(Z){return X1.executeOperation(this.client,new rf.CreateSearchIndexesOperation(this,Z))}async dropSearchIndex(Z){return X1.executeOperation(this.client,new of.DropSearchIndexOperation(this,Z))}async updateSearchIndex(Z,J){return X1.executeOperation(this.client,new ef.UpdateSearchIndexOperation(this,Z,J))}}GL.Collection=KL});var w3=z((WL)=>{Object.defineProperty(WL,"__esModule",{value:!0});WL.ChangeStreamCursor=void 0;var j3=H7(),FL=f1(),Xg=RZ(),Yg=B0(),A3=_(),Qg=Q6();class L3 extends Qg.AbstractCursor{constructor(Z,J,$=[],X={}){super(Z,J,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(Z){this._resumeToken=Z,this.emit(j3.ChangeStream.RESUME_TOKEN_CHANGED,Z)}get resumeToken(){return this._resumeToken}get resumeOptions(){const Z={...this.options};for(let J of["resumeAfter","startAfter","startAtOperationTime"])delete Z[J];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)Z.startAfter=this.resumeToken;else Z.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&A3.maxWireVersion(this.server)>=7)Z.startAtOperationTime=this.startAtOperationTime;return Z}cacheResumeToken(Z){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=Z;this.hasReceived=!0}_processBatch(Z){const J=Z.cursor;if(J.postBatchResumeToken){if(this.postBatchResumeToken=Z.cursor.postBatchResumeToken,("firstBatch"in Z.cursor?Z.cursor.firstBatch:Z.cursor.nextBatch).length===0)this.resumeToken=J.postBatchResumeToken}}clone(){return new L3(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(Z,J){const $=new Xg.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:Z});Yg.executeOperation(Z.client,$,(X,Y)=>{if(X||Y==null)return J(X);const Q=$.server;if(this.maxWireVersion=A3.maxWireVersion(Q),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=Y.operationTime;this._processBatch(Y),this.emit(FL.INIT,Y),this.emit(FL.RESPONSE),J(void 0,{server:Q,session:Z,response:Y})})}_getMore(Z,J){super._getMore(Z,($,X)=>{if($)return J($);this.maxWireVersion=A3.maxWireVersion(this.server),this._processBatch(X),this.emit(j3.ChangeStream.MORE,X),this.emit(j3.ChangeStream.RESPONSE),J($,X)})}}WL.ChangeStreamCursor=L3});var UL=z((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.ListCollectionsOperation=void 0;var Kg=_(),Gg=T1(),lZ=J1();class R3 extends Gg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);if(this.options={...$},delete this.options.writeConcern,this.db=Z,this.filter=J,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}executeCallback(Z,J,$){return super.executeCommandCallback(Z,J,this.generateCommand(Kg.maxWireVersion(Z)),$)}generateCommand(Z){const J={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(Z>=9&&this.options.comment!==void 0)J.comment=this.options.comment;return J}}zL.ListCollectionsOperation=R3;lZ.defineAspects(R3,[lZ.Aspect.READ_OPERATION,lZ.Aspect.RETRYABLE,lZ.Aspect.CURSOR_CREATING])});var D3=z((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.ListCollectionsCursor=void 0;var qg=B0(),Fg=UL(),Wg=Q6();class P3 extends Wg.AbstractCursor{constructor(Z,J,$){super(Z.client,Z.s.namespace,$);this.parent=Z,this.filter=J,this.options=$}clone(){return new P3(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(Z,J){const $=new Fg.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:Z});qg.executeOperation(this.parent.client,$,(X,Y)=>{if(X||Y==null)return J(X);J(void 0,{server:$.server,session:Z,response:Y})})}}ML.ListCollectionsCursor=P3});var PL=z((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.RunCommandCursor=void 0;var z7=h(),AL=B0(),Hg=PY(),zg=Z7(),Vg=_(),Ug=Q6();class LL extends Ug.AbstractCursor{setComment(Z){return this.getMoreOptions.comment=Z,this}setMaxTimeMS(Z){return this.getMoreOptions.maxAwaitTimeMS=Z,this}setBatchSize(Z){return this.getMoreOptions.batchSize=Z,this}clone(){throw new z7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(Z){throw new z7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(Z,J){throw new z7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(Z){throw new z7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(Z){throw new z7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(Z,J,$={}){super(Z.client,Vg.ns(Z.namespace),$);this.getMoreOptions={},this.db=Z,this.command=Object.freeze({...J})}_initialize(Z,J){const $=new zg.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:Z,readPreference:this.cursorOptions.readPreference});AL.executeOperation(this.client,$).then((X)=>{if(X.cursor==null){J(new z7.MongoUnexpectedServerResponseError("Expected server to respond with cursor"));return}J(void 0,{server:$.server,session:Z,response:X})},(X)=>J(X))}_getMore(Z,J){const $=new Hg.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});AL.executeOperation(this.client,$,J)}}wL.RunCommandCursor=LL});var EL=z((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.CollectionsOperation=void 0;var Mg=T4(),jg=J1();class DL extends jg.AbstractCallbackOperation{constructor(Z,J){super(J);this.options=J,this.db=Z}executeCallback(Z,J,$){this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:J}).toArray().then((X)=>{const Y=[];for(let{name:Q}of X)if(!Q.includes("$"))Y.push(new Mg.Collection(this.db,Q,this.db.s.options));$(void 0,Y)},(X)=>$(X))}}TL.CollectionsOperation=DL});var OL=z((CL)=>{Object.defineProperty(CL,"__esModule",{value:!0});CL.CreateCollectionOperation=void 0;var NL=j4(),Ag=T4(),Lg=h(),wg=T1(),Rg=b5(),BL=J1(),Pg=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),Dg="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class aZ extends wg.CommandCallbackOperation{constructor(Z,J,$={}){super(Z,$);this.options=$,this.db=Z,this.name=J}executeCallback(Z,J,$){(async()=>{const X=this.db,Y=this.name,Q=this.options,K=Q.encryptedFields??X.client.options.autoEncryption?.encryptedFieldsMap?.[`${X.databaseName}.${Y}`];if(K){if(!Z.loadBalanced&&Z.description.maxWireVersion<NL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new Lg.MongoCompatibilityError(`${Dg} The minimum server version required is ${NL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const q=K.escCollection??`enxcol_.${Y}.esc`,F=K.ecocCollection??`enxcol_.${Y}.ecoc`;for(let W of[q,F])await new aZ(X,W,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(Z,J);if(!Q.encryptedFields)this.options={...this.options,encryptedFields:K}}const G=await this.executeWithoutEncryptedFieldsCheck(Z,J);if(K)await new Rg.CreateIndexOperation(X,Y,{__safeContent__:1},{}).execute(Z,J);return G})().then((X)=>$(void 0,X),(X)=>$(X))}executeWithoutEncryptedFieldsCheck(Z,J){return new Promise(($,X)=>{const Y=this.db,Q=this.name,K=this.options,G=(F)=>{if(F)return X(F);$(new Ag.Collection(Y,Q,K))},q={create:Q};for(let F in K)if(K[F]!=null&&typeof K[F]!=="function"&&!Pg.has(F))q[F]=K[F];super.executeCommandCallback(Z,J,q,G)})}}CL.CreateCollectionOperation=aZ;BL.defineAspects(aZ,[BL.Aspect.WRITE_OPERATION])});var xL=z((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.ProfilingLevelOperation=void 0;var SL=h(),Tg=T1();class yL extends Tg.CommandCallbackOperation{constructor(Z,J){super(Z,J);this.options=J}executeCallback(Z,J,$){super.executeCommandCallback(Z,J,{profile:-1},(X,Y)=>{if(X==null&&Y.ok===1){const Q=Y.was;if(Q===0)return $(void 0,"off");if(Q===1)return $(void 0,"slow_only");if(Q===2)return $(void 0,"all");return $(new SL.MongoRuntimeError(`Illegal profiling level value ${Q}`))}else X!=null?$(X):$(new SL.MongoRuntimeError("Error with profile command"))})}}kL.ProfilingLevelOperation=yL});var T3=z((gL)=>{Object.defineProperty(gL,"__esModule",{value:!0});gL.SetProfilingLevelOperation=gL.ProfilingLevel=void 0;var vL=h(),Ig=_(),Eg=T1(),Ng=new Set(["off","slow_only","all"]);gL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class fL extends Eg.CommandCallbackOperation{constructor(Z,J,$){super(Z,$);switch(this.options=$,J){case gL.ProfilingLevel.off:this.profile=0;break;case gL.ProfilingLevel.slowOnly:this.profile=1;break;case gL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=J}executeCallback(Z,J,$){const X=this.level;if(!Ng.has(X))return $(new vL.MongoInvalidArgumentError(`Profiling level must be one of "${Ig.enumToString(gL.ProfilingLevel)}"`));super.executeCommandCallback(Z,J,{profile:this.profile},(Y,Q)=>{if(Y==null&&Q.ok===1)return $(void 0,X);return Y!=null?$(Y):$(new vL.MongoRuntimeError("Error with profile command"))})}}gL.SetProfilingLevelOperation=fL});var sZ=z((pL)=>{var ag=function(Z){if(typeof Z!=="string")throw new iZ.MongoInvalidArgumentError("Database name must be a string");if(Z.length===0)throw new iZ.MongoInvalidArgumentError("Database name cannot be the empty string");if(Z==="$external")return;const J=[" ",".","$","/","\\"];for(let $=0;$<J.length;$++)if(Z.indexOf(J[$])!==-1)throw new iZ.MongoAPIError(`database names cannot contain the character '${J[$]}'`)};Object.defineProperty(pL,"__esModule",{value:!0});pL.Db=void 0;var Bg=sX(),Cg=D1(),hg=H7(),Og=T4(),V7=f1(),Sg=v5(),yg=D3(),kg=PL(),iZ=h(),_g=uX(),xg=EL(),vg=OL(),mL=Q3(),O0=B0(),uL=b5(),fg=xL(),gg=aX(),bg=F3(),mg=Z7(),ug=T3(),dg=z3(),pg=d0(),dL=y1(),b1=_(),cg=A0(),lg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class f6{constructor(Z,J,$){$=$??{},$=b1.filterOptions($,lg),ag(J),this.s={options:$,readPreference:dL.ReadPreference.fromOptions($),bsonOptions:Cg.resolveBSONOptions($,Z),pkFactory:$?.pkFactory??b1.DEFAULT_PK_FACTORY,readConcern:pg.ReadConcern.fromOptions($),writeConcern:cg.WriteConcern.fromOptions($),namespace:new b1.MongoDBNamespace(J)},this.client=Z}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(Z,J){return O0.executeOperation(this.client,new vg.CreateCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async command(Z,J){return O0.executeOperation(this.client,new mg.RunCommandOperation(this,Z,J))}aggregate(Z=[],J){return new Sg.AggregationCursor(this.client,this.s.namespace,Z,b1.resolveOptions(this,J))}admin(){return new Bg.Admin(this)}collection(Z,J={}){if(typeof J==="function")throw new iZ.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Og.Collection(this,Z,b1.resolveOptions(this,J))}async stats(Z){return O0.executeOperation(this.client,new dg.DbStatsOperation(this,b1.resolveOptions(this,Z)))}listCollections(Z={},J={}){return new yg.ListCollectionsCursor(this,Z,b1.resolveOptions(this,J))}async renameCollection(Z,J,$){return O0.executeOperation(this.client,new bg.RenameOperation(this.collection(Z),J,{...$,new_collection:!0,readPreference:dL.ReadPreference.primary}))}async dropCollection(Z,J){return O0.executeOperation(this.client,new mL.DropCollectionOperation(this,Z,b1.resolveOptions(this,J)))}async dropDatabase(Z){return O0.executeOperation(this.client,new mL.DropDatabaseOperation(this,b1.resolveOptions(this,Z)))}async collections(Z){return O0.executeOperation(this.client,new xg.CollectionsOperation(this,b1.resolveOptions(this,Z)))}async createIndex(Z,J,$){return O0.executeOperation(this.client,new uL.CreateIndexOperation(this,Z,J,b1.resolveOptions(this,$)))}async addUser(Z,J,$){$=$!=null&&typeof $==="object"?$:J!=null&&typeof J==="object"?J:void 0;const X=typeof J==="string"?J:void 0;return O0.executeOperation(this.client,new _g.AddUserOperation(this,Z,X,b1.resolveOptions(this,$)))}async removeUser(Z,J){return O0.executeOperation(this.client,new gg.RemoveUserOperation(this,Z,b1.resolveOptions(this,J)))}async setProfilingLevel(Z,J){return O0.executeOperation(this.client,new ug.SetProfilingLevelOperation(this,Z,b1.resolveOptions(this,J)))}async profilingLevel(Z){return O0.executeOperation(this.client,new fg.ProfilingLevelOperation(this,b1.resolveOptions(this,Z)))}async indexInformation(Z,J){return O0.executeOperation(this.client,new uL.IndexInformationOperation(this,Z,b1.resolveOptions(this,J)))}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new hg.ChangeStream(this,Z,b1.resolveOptions(this,J))}runCursorCommand(Z,J){return new kg.RunCommandCursor(this,Z,J)}}f6.SYSTEM_NAMESPACE_COLLECTION=V7.SYSTEM_NAMESPACE_COLLECTION;f6.SYSTEM_INDEX_COLLECTION=V7.SYSTEM_INDEX_COLLECTION;f6.SYSTEM_PROFILE_COLLECTION=V7.SYSTEM_PROFILE_COLLECTION;f6.SYSTEM_USER_COLLECTION=V7.SYSTEM_USER_COLLECTION;f6.SYSTEM_COMMAND_COLLECTION=V7.SYSTEM_COMMAND_COLLECTION;f6.SYSTEM_JS_COLLECTION=V7.SYSTEM_JS_COLLECTION;pL.Db=f6});var iL=z((H11,aL)=>{var K6=function(Z,J){if(!(this instanceof K6))return new K6(Z,J);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=Z||1024,this.deduplicate=J?J.deduplicate:null,this.zeros=this.deduplicate?nZ(this.deduplicate.length):null},ig=function(Z,J){while(Z.maxPages<J){var $=Z.pages;Z.pages=new Array(32768),Z.pages[0]=$,Z.level++,Z.maxPages*=32768}},sg=function(Z,J){if(Z.length===J)return Z;if(Z.length>J)return Z.slice(0,J);var $=nZ(J);return Z.copy($),$},nZ=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},ng=function(Z){var J=Buffer.allocUnsafe?Buffer.allocUnsafe(Z.length):new Buffer(Z.length);return Z.copy(J),J},lL=function(Z,J){this.offset=Z*J.length,this.buffer=J,this.updated=!1,this.deduplicate=0},tg=function(Z,J){Z=(Z-(J[0]=Z&32767))/32768,Z=(Z-(J[1]=Z&32767))/32768,J[3]=(Z-(J[2]=Z&32767))/32768&32767};aL.exports=K6;K6.prototype.updated=function(Z){while(this.deduplicate&&Z.buffer[Z.deduplicate]===this.deduplicate[Z.deduplicate])if(Z.deduplicate++,Z.deduplicate===this.deduplicate.length){if(Z.deduplicate=0,Z.buffer.equals&&Z.buffer.equals(this.deduplicate))Z.buffer=this.deduplicate;break}if(Z.updated||!this.updates)return;Z.updated=!0,this.updates.push(Z)};K6.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var Z=this.updates.pop();return Z.updated=!1,Z};K6.prototype._array=function(Z,J){if(Z>=this.maxPages){if(J)return;ig(this,Z)}tg(Z,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(J)return;Q=$[Y]=new Array(32768)}$=Q}return $};K6.prototype.get=function(Z,J){var $=this._array(Z,J),X=this.path[0],Y=$&&$[X];if(!Y&&!J){if(Y=$[X]=new lL(Z,nZ(this.pageSize)),Z>=this.length)this.length=Z+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!J)Y.buffer=ng(Y.buffer),Y.deduplicate=0;return Y};K6.prototype.set=function(Z,J){var $=this._array(Z,!1),X=this.path[0];if(Z>=this.length)this.length=Z+1;if(!J||this.zeros&&J.equals&&J.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&J.equals&&J.equals(this.deduplicate))J=this.deduplicate;var Y=$[X],Q=sg(J,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new lL(Z,Q)};K6.prototype.toBuffer=function(){var Z=new Array(this.length),J=nZ(this.pageSize),$=0;while($<Z.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<Z.length;Y++)Z[$++]=X&&X[Y]?X[Y].buffer:J}return Buffer.concat(Z)}});var nL=z((z11,sL)=>{var g6=function(Z){if(!(this instanceof g6))return new g6(Z);if(!Z)Z={};if(Buffer.isBuffer(Z))Z={buffer:Z};if(this.pageOffset=Z.pageOffset||0,this.pageSize=Z.pageSize||1024,this.pages=Z.pages||rg(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!eg(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!Z.trackUpdates,this._pageMask=this.pageSize-1,Z.buffer){for(var J=0;J<Z.buffer.length;J+=this.pageSize)this.pages.set(J/this.pageSize,Z.buffer.slice(J,J+this.pageSize));this.byteLength=Z.buffer.length,this.length=8*this.byteLength}},og=function(Z){if(Buffer.alloc)return Buffer.alloc(Z);var J=new Buffer(Z);return J.fill(0),J},eg=function(Z){return!(Z&Z-1)},rg=iL();sL.exports=g6;g6.prototype.get=function(Z){var J=Z&7,$=(Z-J)/8;return!!(this.getByte($)&128>>J)};g6.prototype.getByte=function(Z){var J=Z&this._pageMask,$=(Z-J)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[J+this.pageOffset]:0};g6.prototype.set=function(Z,J){var $=Z&7,X=(Z-$)/8,Y=this.getByte(X);return this.setByte(X,J?Y|128>>$:Y&(255^128>>$))};g6.prototype.toBuffer=function(){var Z=og(this.pages.length*this.pageSize);for(var J=0;J<this.pages.length;J++){var $=this.pages.get(J,!0),X=J*this.pageSize;if($)$.buffer.copy(Z,X,this.pageOffset,this.pageOffset+this.pageSize)}return Z};g6.prototype.setByte=function(Z,J){var $=Z&this._pageMask,X=(Z-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===J)return!1;if(Y.buffer[$]=J,Z>=this.byteLength)this.byteLength=Z+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var rL=z((tL)=>{Object.defineProperty(tL,"__esModule",{value:!0});var Zb=import.meta.require("zlib");tL.default=Zb.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"))});var Zw=z((Q0)=>{var U7=function(){const Z=oL.default.readUInt32BE(d5);d5+=4;const J=oL.default.slice(d5,d5+Z);return d5+=Z,$b.default({buffer:J})},eL=Q0&&Q0.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.bidirectional_l=Q0.bidirectional_r_al=Q0.prohibited_characters=Q0.non_ASCII_space_characters=Q0.commonly_mapped_to_nothing=Q0.unassigned_code_points=void 0;var $b=eL(nL()),oL=eL(rL()),d5=0;Q0.unassigned_code_points=U7();Q0.commonly_mapped_to_nothing=U7();Q0.non_ASCII_space_characters=U7();Q0.prohibited_characters=U7();Q0.bidirectional_r_al=U7();Q0.bidirectional_l=U7()});var Yw=z((M11,Xw)=>{var $w=function(Z){const J=[],$=Z.length;for(let X=0;X<$;X+=1){const Y=Z.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=Z.charCodeAt(X+1);if(Q>=56320&&Q<=57343){J.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}J.push(Y)}return J},p5=function(Z,J={}){if(typeof Z!=="string")throw new TypeError("Expected string.");if(Z.length===0)return"";const $=$w(Z).map((W)=>Xb.get(W)?32:W).filter((W)=>!Yb.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=$w(X);if(Y.some((W)=>b6.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(J.allowUnassigned!==!0){if(Y.some((H)=>b6.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((W)=>b6.bidirectional_r_al.get(W)),G=Y.some((W)=>b6.bidirectional_l.get(W));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const q=b6.bidirectional_r_al.get(Jw(Qb(X))),F=b6.bidirectional_r_al.get(Jw(Kb(X)));if(K&&!(q&&F))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 X},b6=Zw(),Xb=b6.non_ASCII_space_characters,Yb=b6.commonly_mapped_to_nothing,Jw=(Z)=>Z.codePointAt(0),Qb=(Z)=>Z[0],Kb=(Z)=>Z[Z.length-1];p5.saslprep=p5;p5.default=p5;Xw.exports=p5});var j7=z((Qw)=>{var c5=function(Z){return new Proxy(Z?{kModuleError:Z}:{},{get:($,X)=>{if(X==="kModuleError")return Z;throw Z},set:()=>{throw Z}})},Gb=function(){try{return Qw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Qw.Kerberos}catch{return Qw.Kerberos}},qb=function(){try{return Qw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Qw.ZStandard}catch{return Qw.ZStandard}},Fb=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return c5(new M7.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Wb=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(Z){return{kModuleError:new M7.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:Z})}}};Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AutoEncryptionLoggerLevel=Qw.aws4=Qw.saslprep=Qw.getSnappy=Qw.getAwsCredentialProvider=Qw.getZstdLibrary=Qw.ZStandard=Qw.getKerberos=Qw.Kerberos=void 0;var M7=h();Qw.Kerberos=c5(new M7.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Qw.getKerberos=Gb;Qw.ZStandard=c5(new M7.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Qw.getZstdLibrary=qb;Qw.getAwsCredentialProvider=Fb;Qw.getSnappy=Wb;Qw.saslprep=c5(new M7.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{Qw.saslprep=Yw()}catch{}Qw.aws4=c5(new M7.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Qw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Qw.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})});var G6=z((Hw)=>{Object.defineProperty(Hw,"__esModule",{value:!0});Hw.AuthProvider=Hw.AuthContext=void 0;var Mb=h();class Fw{constructor(Z,J,$){this.reauthenticating=!1,this.connection=Z,this.credentials=J,this.options=$}}Hw.AuthContext=Fw;class Ww{async prepare(Z,J){return Z}async reauth(Z){if(Z.reauthenticating)throw new Mb.MongoRuntimeError("Reauthentication already in progress.");try{Z.reauthenticating=!0,await this.auth(Z)}finally{Z.reauthenticating=!1}}}Hw.AuthProvider=Ww});var eZ=z((Aw)=>{async function I3(Z,J){return Z.commandAsync(Lb.ns("$external.$cmd"),J,void 0)}async function Rb(Z){const{hostAddress:J}=Z.options,{credentials:$}=Z;if(!J||typeof J.host!=="string"||!$)throw new Vw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(Ib(),"kModuleError"in l5)throw l5.kModuleError;const{initializeClient:X}=l5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",q=await jw(J.host,K),F={};if(Q!=null)Object.assign(F,{user:Y,password:Q});const W=K.SERVICE_HOST??q;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,F)}var Pb=function(Z){return{saslStart:1,mechanism:"GSSAPI",payload:Z,autoAuthorize:1}},Db=function(Z,J){return{saslContinue:1,conversationId:J,payload:Z}};async function Mw(Z,J,$){try{return await Z.step($)||""}catch(X){if(J===0)throw X;return Mw(Z,J-1,$)}}async function Tb(Z,J,$){const X=await Z.unwrap($);return Z.wrap(X||"",{user:J})}async function jw(Z,J){const $=J.CANONICALIZE_HOST_NAME;if(!$||$===Aw.GSSAPICanonicalizationValue.none)return Z;if($===Aw.GSSAPICanonicalizationValue.on||$===Aw.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await E3.promises.lookup(Z);try{const Y=await E3.promises.resolvePtr(X);return Y.length>0?Y[0]:Z}catch(Y){return N3(Z)}}else return N3(Z)}async function N3(Z){try{const J=await E3.promises.resolveCname(Z);return J.length>0?J[0]:Z}catch{return Z}}var Ib=function(){if(!l5)l5=Ab.getKerberos()};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.resolveCname=Aw.performGSSAPICanonicalizeHostName=Aw.GSSAPI=Aw.GSSAPICanonicalizationValue=void 0;var E3=import.meta.require("dns"),Ab=j7(),Vw=h(),Lb=_(),wb=G6();Aw.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var l5;class Uw extends wb.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if($==null)throw new Vw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await Rb(Z),Q=await Y.step(""),K=await I3(J,Pb(Q)),G=await Mw(Y,10,K.payload),q=await I3(J,Db(G,K.conversationId)),F=await Tb(Y,X,q.payload);await I3(J,{saslContinue:1,conversationId:q.conversationId,payload:F})}}Aw.GSSAPI=Uw;Aw.performGSSAPICanonicalizeHostName=jw;Aw.resolveCname=N3});var k8=z((ww)=>{Object.defineProperty(ww,"__esModule",{value:!0});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=ww.AuthMechanism=void 0;ww.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",MONGODB_OIDC:"MONGODB-OIDC"});ww.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([ww.AuthMechanism.MONGODB_GSSAPI,ww.AuthMechanism.MONGODB_AWS,ww.AuthMechanism.MONGODB_OIDC,ww.AuthMechanism.MONGODB_X509])});var JJ=z((Tw)=>{var Cb=function(Z){if(Z){if(Array.isArray(Z.saslSupportedMechs))return Z.saslSupportedMechs.includes(l1.AuthMechanism.MONGODB_SCRAM_SHA256)?l1.AuthMechanism.MONGODB_SCRAM_SHA256:l1.AuthMechanism.MONGODB_SCRAM_SHA1;if(Z.maxWireVersion>=3)return l1.AuthMechanism.MONGODB_SCRAM_SHA1}return l1.AuthMechanism.MONGODB_CR};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.MongoCredentials=Tw.DEFAULT_ALLOWED_HOSTS=void 0;var i0=h(),Bb=eZ(),l1=k8(),Pw=["aws","azure"],Dw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Tw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var hb="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class ZJ{constructor(Z){if(this.username=Z.username??"",this.password=Z.password,this.source=Z.source,!this.source&&Z.db)this.source=Z.db;if(this.mechanism=Z.mechanism||l1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=Z.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Tw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(Z){return this.mechanism===Z.mechanism&&this.username===Z.username&&this.password===Z.password&&this.source===Z.source}resolveAuthMechanism(Z){if(this.mechanism.match(/DEFAULT/i))return new ZJ({username:this.username,password:this.password,source:this.source,mechanism:Cb(Z),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===l1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===l1.AuthMechanism.MONGODB_CR||this.mechanism===l1.AuthMechanism.MONGODB_PLAIN||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===l1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new i0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===l1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new i0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new i0.MongoAzureError(hb);if(this.mechanismProperties.PROVIDER_NAME&&!Pw.includes(this.mechanismProperties.PROVIDER_NAME))throw new i0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${Pw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new i0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const J=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(J))throw new i0.MongoInvalidArgumentError(Dw);for(let $ of J)if(typeof $!=="string")throw new i0.MongoInvalidArgumentError(Dw)}}if(l1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new i0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===l1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new i0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===l1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new i0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const Z=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(Bb.GSSAPICanonicalizationValue).includes(Z))throw new i0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${Z}`)}static merge(Z,J){return new ZJ({username:J.username??Z?.username??"",password:J.password??Z?.password??"",mechanism:J.mechanism??Z?.mechanism??l1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:J.mechanismProperties??Z?.mechanismProperties??{},source:J.source??J.db??Z?.source??"admin"})}}Tw.MongoCredentials=ZJ});var XJ=z((hw)=>{var q1=function(Z,J,$){if($.globals)Z=$.globals[Z.name];return new Z(`${$.context?$.context:"Value"} ${J}.`)},w7=function(Z,J){if(typeof Z==="bigint")throw q1(TypeError,"is a BigInt which cannot be converted to a number",J);if(!J.globals)return Number(Z);return J.globals.Number(Z)},Bw=function(Z){if(Z>0&&Z%1===0.5&&(Z&1)===0||Z<0&&Z%1===-0.5&&(Z&1)===1)return i5(Math.floor(Z));return i5(Math.round(Z))},$J=function(Z){return i5(Math.trunc(Z))},Nw=function(Z){return Z<0?-1:1},Ob=function(Z,J){const $=Z%J;if(Nw(J)!==Nw($))return $+J;return $},i5=function(Z){return Z===0?0:Z},R7=function(Z,{unsigned:J}){let $,X;if(J)$=0,X=2**Z-1;else $=-(2**(Z-1)),X=2**(Z-1)-1;const Y=2**Z,Q=2**(Z-1);return(K,G={})=>{let q=w7(K,G);if(q=i5(q),G.enforceRange){if(!Number.isFinite(q))throw q1(TypeError,"is not a finite number",G);if(q=$J(q),q<$||q>X)throw q1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return q}if(!Number.isNaN(q)&&G.clamp)return q=Math.min(Math.max(q,$),X),q=Bw(q),q;if(!Number.isFinite(q)||q===0)return 0;if(q=$J(q),q>=$&&q<=X)return q;if(q=Ob(q,Y),!J&&q>=Q)return q-Y;return q}},Cw=function(Z,{unsigned:J}){const $=Number.MAX_SAFE_INTEGER,X=J?0:Number.MIN_SAFE_INTEGER,Y=J?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=i5(G),K.enforceRange){if(!Number.isFinite(G))throw q1(TypeError,"is not a finite number",K);if(G=$J(G),G<X||G>$)throw q1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=Bw(G),G;if(!Number.isFinite(G)||G===0)return 0;let q=BigInt($J(G));return q=Y(Z,q),Number(q)}},B3=function(Z){try{return Sb.call(Z),!0}catch{return!1}},A7=function(Z){try{return yb.call(Z),!0}catch{return!1}},L7=function(Z){try{return new Uint8Array(Z),!1}catch{return!0}};hw.any=(Z)=>{return Z};hw.undefined=()=>{return};hw.boolean=(Z)=>{return Boolean(Z)};hw.byte=R7(8,{unsigned:!1});hw.octet=R7(8,{unsigned:!0});hw.short=R7(16,{unsigned:!1});hw["unsigned short"]=R7(16,{unsigned:!0});hw.long=R7(32,{unsigned:!1});hw["unsigned long"]=R7(32,{unsigned:!0});hw["long long"]=Cw(64,{unsigned:!1});hw["unsigned long long"]=Cw(64,{unsigned:!0});hw.double=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);return $};hw["unrestricted double"]=(Z,J={})=>{return w7(Z,J)};hw.float=(Z,J={})=>{const $=w7(Z,J);if(!Number.isFinite($))throw q1(TypeError,"is not a finite floating-point value",J);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw q1(TypeError,"is outside the range of a single-precision floating-point value",J);return X};hw["unrestricted float"]=(Z,J={})=>{const $=w7(Z,J);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};hw.DOMString=(Z,J={})=>{if(J.treatNullAsEmptyString&&Z===null)return"";if(typeof Z==="symbol")throw q1(TypeError,"is a symbol, which cannot be converted to a string",J);return(J.globals?J.globals.String:String)(Z)};hw.ByteString=(Z,J={})=>{const $=hw.DOMString(Z,J);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw q1(TypeError,"is not a valid ByteString",J);return $};hw.USVString=(Z,J={})=>{const $=hw.DOMString(Z,J),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const q=K&1023,F=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*q+F)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};hw.object=(Z,J={})=>{if(Z===null||typeof Z!=="object"&&typeof Z!=="function")throw q1(TypeError,"is not an object",J);return Z};var Sb=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,yb=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;hw.ArrayBuffer=(Z,J={})=>{if(!B3(Z)){if(J.allowShared&&!A7(Z))throw q1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",J);throw q1(TypeError,"is not an ArrayBuffer",J)}if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};var kb=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;hw.DataView=(Z,J={})=>{try{kb.call(Z)}catch($){throw q1(TypeError,"is not a DataView",J)}if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is backed by a detached ArrayBuffer",J);return Z};var _b=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((Z)=>{const{name:J}=Z,$=/^[AEIOU]/u.test(J)?"an":"a";hw[J]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||_b.call(X)!==J)throw q1(TypeError,`is not ${$} ${J} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});hw.ArrayBufferView=(Z,J={})=>{if(!ArrayBuffer.isView(Z))throw q1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",J);if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z};hw.BufferSource=(Z,J={})=>{if(ArrayBuffer.isView(Z)){if(!J.allowShared&&A7(Z.buffer))throw q1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",J);if(L7(Z.buffer))throw q1(TypeError,"is a view on a detached ArrayBuffer",J);return Z}if(!J.allowShared&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer or a view on one",J);if(J.allowShared&&!A7(Z)&&!B3(Z))throw q1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",J);if(L7(Z))throw q1(TypeError,"is a detached ArrayBuffer",J);return Z};hw.DOMTimeStamp=hw["unsigned long long"]});var QJ=z((fw,gw)=>{var Xm=function(Z){return typeof Z==="object"&&Z!==null||typeof Z==="function"},Ym=function(Z,J){for(let $ of Reflect.ownKeys(J)){const X=Reflect.getOwnPropertyDescriptor(J,$);if(X&&!Reflect.defineProperty(Z,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Qm=function(Z,J){const $=_w(Z);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(J))},_w=function(Z){if(Sw(Z,YJ))return Z[YJ];const J=Object.create(null);J["%Object.prototype%"]=Z.Object.prototype,J["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new Z.Array()[Symbol.iterator]()));try{J["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(Z.eval("(async function* () {})").prototype))}catch{J["%AsyncIteratorPrototype%"]=Km}return Z[YJ]=J,J},Gm=function(Z,J,$){if(!Z[P7])Z[P7]=Object.create(null);if(J in Z[P7])return Z[P7][J];return Z[P7][J]=$(),Z[P7][J]},xw=function(Z){return Z?Z[yw]:null},vw=function(Z){return Z?Z[kw]:null},qm=function(Z){const J=xw(Z);return J?J:Z},Fm=function(Z){const J=vw(Z);return J?J:Z},Hm=function(Z){if(typeof Z!=="string")return!1;const J=Z>>>0;if(J===4294967295)return!1;const $=`${J}`;if(Z!==$)return!1;return!0},Vm=function(Z){try{return zm.call(Z),!0}catch(J){return!1}},Um=function([Z,J],$){let X;switch($){case"key":X=Z;break;case"value":X=J;break;case"key+value":X=[Z,J];break}return{value:X,done:!1}},Sw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),yw=Symbol("wrapper"),kw=Symbol("impl"),P7=Symbol("SameObject caches"),YJ=Symbol.for("[webidl2js] constructor registry"),Km=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Wm=Symbol("internal"),zm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,Mm=Symbol("supports property index"),jm=Symbol("supported property indices"),Am=Symbol("supports property name"),Lm=Symbol("supported property names"),wm=Symbol("indexed property get"),Rm=Symbol("indexed property set new"),Pm=Symbol("indexed property set existing"),Dm=Symbol("named property get"),Tm=Symbol("named property set new"),Im=Symbol("named property set existing"),Em=Symbol("named property delete"),Nm=Symbol("async iterator get the next iteration result"),Bm=Symbol("async iterator return steps"),Cm=Symbol("async iterator initialization steps"),hm=Symbol("async iterator end of iteration");gw.exports=fw={isObject:Xm,hasOwn:Sw,define:Ym,newObjectInRealm:Qm,wrapperSymbol:yw,implSymbol:kw,getSameObject:Gm,ctorRegistrySymbol:YJ,initCtorRegistry:_w,wrapperForImpl:xw,implForWrapper:vw,tryWrapperForImpl:qm,tryImplForWrapper:Fm,iterInternalSymbol:Wm,isArrayBuffer:Vm,isArrayIndexPropName:Hm,supportsPropertyIndex:Mm,supportedPropertyIndices:jm,supportsPropertyName:Am,supportedPropertyNames:Lm,indexedGet:wm,indexedSetNew:Rm,indexedSetExisting:Pm,namedGet:Dm,namedSetNew:Tm,namedSetExisting:Im,namedDelete:Em,asyncIteratorNext:Nm,asyncIteratorReturn:Bm,asyncIteratorInit:Cm,asyncIteratorEOI:hm,iteratorResult:Um}});var mw=z((D11,bw)=>{var Om=/[\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,Sm=/[\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,ym=/[\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,km=/[\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,_m=/[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,xm=/[\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,vm=/^[\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,fm=/[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,gm=/[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,bm=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,mm=/^[\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,um=/[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;bw.exports={combiningMarks:Om,combiningClassVirama:Sm,validZWNJ:ym,bidiDomain:km,bidiS1LTR:_m,bidiS1RTL:xm,bidiS2:vm,bidiS3:fm,bidiS4EN:gm,bidiS4AN:bm,bidiS5:mm,bidiS6:um}});var uw=z((T11,dm)=>{dm.exports=[[[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," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[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,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[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,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[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,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[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,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[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,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[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,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[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,"\u0E4D\u0E32"],[[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,"\u0ECD\u0EB2"],[[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,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[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,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[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,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[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,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[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,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[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,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[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,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[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,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[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,"\u2212"],[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,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[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,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[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,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[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,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[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\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[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\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[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,"\u3008"],[9002,1,"\u3009"],[[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,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[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,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[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,"\u2D61"],[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,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[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,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[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," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[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,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[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\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[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,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[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,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[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\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[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\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[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,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[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,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[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,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[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,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[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,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[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," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[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,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[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,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[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,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[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,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[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,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[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,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[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,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[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,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[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,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[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,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[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,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[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,"\u3014s\u3015"],[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,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[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,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[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]]});var pw=z((pm,dw)=>{pm.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var sw=z((I11,iw)=>{var lm=function(Z){return/[^\x00-\x7F]/u.test(Z)},lw=function(Z,{useSTD3ASCIIRules:J}){let $=0,X=cw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=cw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=Z&&G>=Z){if(J&&(Q[1]===W0.disallowed_STD3_valid||Q[1]===W0.disallowed_STD3_mapped))return[W0.disallowed,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_valid)return[W0.valid,...Q.slice(2)];else if(Q[1]===W0.disallowed_STD3_mapped)return[W0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>Z)X=Y-1;else $=Y+1}return null},am=function(Z,{useSTD3ASCIIRules:J,processingOption:$}){let X=!1,Y="";for(let Q of Z){const[K,G]=lw(Q.codePointAt(0),{useSTD3ASCIIRules:J});switch(K){case W0.disallowed:X=!0,Y+=Q;break;case W0.ignored:break;case W0.mapped:Y+=G;break;case W0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case W0.valid:Y+=Q;break}}return{string:Y,error:X}},im=function(Z,{checkHyphens:J,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(Z.normalize("NFC")!==Z)return!1;const K=Array.from(Z);if(J){if(K[2]==="-"&&K[3]==="-"||(Z.startsWith("-")||Z.endsWith("-")))return!1}if(Z.includes(".")||K.length>0&&s0.combiningMarks.test(K[0]))return!1;for(let G of K){const[q]=lw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&q!==W0.valid||Y==="nontransitional"&&q!==W0.valid&&q!==W0.deviation)return!1}if(X){let G=0;for(let[q,F]of K.entries())if(F==="\u200C"||F==="\u200D"){if(q>0){if(s0.combiningClassVirama.test(K[q-1]))continue;if(F==="\u200C"){const W=K.indexOf("\u200C",q+1),H=W<0?K.slice(G):K.slice(G,W);if(s0.validZWNJ.test(H.join(""))){G=q+1;continue}}}return!1}}if($){let G;if(s0.bidiS1LTR.test(K[0]))G=!1;else if(s0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!s0.bidiS2.test(Z)||!s0.bidiS3.test(Z)||s0.bidiS4EN.test(Z)&&s0.bidiS4AN.test(Z))return!1}else if(!s0.bidiS5.test(Z)||!s0.bidiS6.test(Z))return!1}return!0},sm=function(Z){const J=Z.map(($)=>{if($.startsWith("xn--"))try{return h3.decode($.substring(4))}catch(X){return""}return $}).join(".");return s0.bidiDomain.test(J)},aw=function(Z,J){const{processingOption:$}=J;let{string:X,error:Y}=am(Z,J);X=X.normalize("NFC");const Q=X.split("."),K=sm(Q);for(let[G,q]of Q.entries()){let F=q,W=$;if(F.startsWith("xn--")){try{F=h3.decode(F.substring(4)),Q[G]=F}catch(V){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!im(F,{...J,processingOption:W,checkBidi:J.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},nm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let q=G.string.split(".");if(q=q.map((F)=>{if(lm(F))try{return`xn--${h3.encode(F)}`}catch(W){G.error=!0}return F}),K){const F=q.join(".").length;if(F>253||F===0)G.error=!0;for(let W=0;W<q.length;++W)if(q[W].length>63||q[W].length===0){G.error=!0;break}}if(G.error)return null;return q.join(".")},tm=function(Z,{checkHyphens:J=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=aw(Z,{processingOption:Q,checkHyphens:J,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},h3=import.meta.require("punycode"),s0=mw(),cw=uw(),{STATUS_MAPPING:W0}=pw();iw.exports={toASCII:nm,toUnicode:tm}});var S3=z((E11,tw)=>{var O3=function(Z){return Z>=48&&Z<=57},nw=function(Z){return Z>=65&&Z<=90||Z>=97&&Z<=122},rm=function(Z){return nw(Z)||O3(Z)},om=function(Z){return O3(Z)||Z>=65&&Z<=70||Z>=97&&Z<=102};tw.exports={isASCIIDigit:O3,isASCIIAlpha:nw,isASCIIAlphanumeric:rm,isASCIIHex:om}});var KJ=z((N11,rw)=>{var Ju=function(Z){return em.encode(Z)},$u=function(Z){return Zu.decode(Z)},em=new TextEncoder,Zu=new TextDecoder("utf-8",{ignoreBOM:!0});rw.exports={utf8Encode:Ju,utf8DecodeWithoutBOM:$u}});var GJ=z((B11,YR)=>{var t=function(Z){return Z.codePointAt(0)},Xu=function(Z){let J=Z.toString(16).toUpperCase();if(J.length===1)J=`0${J}`;return`%${J}`},ZR=function(Z){const J=new Uint8Array(Z.byteLength);let $=0;for(let X=0;X<Z.byteLength;++X){const Y=Z[X];if(Y!==37)J[$++]=Y;else if(Y===37&&(!ow(Z[X+1])||!ow(Z[X+2])))J[$++]=Y;else{const Q=parseInt(String.fromCodePoint(Z[X+1],Z[X+2]),16);J[$++]=Q,X+=2}}return J.slice(0,$)},Yu=function(Z){const J=ew(Z);return ZR(J)},y3=function(Z){return Z<=31||Z>126},Ku=function(Z){return y3(Z)||Qu.has(Z)},k3=function(Z){return y3(Z)||Gu.has(Z)},qu=function(Z){return k3(Z)||Z===t("'")},JR=function(Z){return k3(Z)||Fu.has(Z)},$R=function(Z){return JR(Z)||Wu.has(Z)},zu=function(Z){return $R(Z)||Hu.has(Z)},Uu=function(Z){return zu(Z)||Vu.has(Z)},XR=function(Z,J){const $=ew(Z);let X="";for(let Y of $)if(!J(Y))X+=String.fromCharCode(Y);else X+=Xu(Y);return X},Mu=function(Z,J){return XR(String.fromCodePoint(Z),J)},ju=function(Z,J,$=!1){let X="";for(let Y of Z)if($&&Y===" ")X+="+";else X+=XR(Y,J);return X},{isASCIIHex:ow}=S3(),{utf8Encode:ew}=KJ(),Qu=new Set([t(" "),t("\""),t("<"),t(">"),t("`")]),Gu=new Set([t(" "),t("\""),t("#"),t("<"),t(">")]),Fu=new Set([t("?"),t("`"),t("{"),t("}")]),Wu=new Set([t("/"),t(":"),t(";"),t("="),t("@"),t("["),t("\\"),t("]"),t("^"),t("|")]),Hu=new Set([t("$"),t("%"),t("&"),t("+"),t(",")]),Vu=new Set([t("!"),t("'"),t("("),t(")"),t("~")]);YR.exports={isC0ControlPercentEncode:y3,isFragmentPercentEncode:Ku,isQueryPercentEncode:k3,isSpecialQueryPercentEncode:qu,isPathPercentEncode:JR,isUserinfoPercentEncode:$R,isURLEncodedPercentEncode:Uu,percentDecodeString:Yu,percentDecodeBytes:ZR,utf8PercentEncodeString:ju,utf8PercentEncodeCodePoint:Mu}});var b3=z((cu,H0)=>{var E=function(Z){return Z.codePointAt(0)},QR=function(Z){return[...Z].length},KR=function(Z,J){const $=Z[J];return isNaN($)?void 0:String.fromCodePoint($)},GR=function(Z){return Z==="."||Z.toLowerCase()==="%2e"},Iu=function(Z){return Z=Z.toLowerCase(),Z===".."||Z==="%2e."||Z===".%2e"||Z==="%2e%2e"},Eu=function(Z,J){return i1.isASCIIAlpha(Z)&&(J===E(":")||J===E("|"))},HR=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&(Z[1]===":"||Z[1]==="|")},Nu=function(Z){return Z.length===2&&i1.isASCIIAlpha(Z.codePointAt(0))&&Z[1]===":"},Bu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Cu=function(Z){return Z.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},qJ=function(Z){return WR[Z]!==void 0},a1=function(Z){return qJ(Z.scheme)},_3=function(Z){return!qJ(Z.scheme)},zR=function(Z){return WR[Z]},VR=function(Z){if(Z==="")return m;let J=10;if(Z.length>=2&&Z.charAt(0)==="0"&&Z.charAt(1).toLowerCase()==="x")Z=Z.substring(2),J=16;else if(Z.length>=2&&Z.charAt(0)==="0")Z=Z.substring(1),J=8;if(Z==="")return 0;let $=/[^0-7]/u;if(J===10)$=/[^0-9]/u;if(J===16)$=/[^0-9A-Fa-f]/u;if($.test(Z))return m;return parseInt(Z,J)},hu=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length>1)J.pop()}if(J.length>4)return m;const $=[];for(let Q of J){const K=VR(Q);if(K===m)return m;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return m;if($[$.length-1]>=256**(5-$.length))return m;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Ou=function(Z){let J="",$=Z;for(let X=1;X<=4;++X){if(J=String($%256)+J,X!==4)J=`.${J}`;$=Math.floor($/256)}return J},Su=function(Z){const J=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(Z=Array.from(Z,(Q)=>Q.codePointAt(0)),Z[Y]===E(":")){if(Z[Y+1]!==E(":"))return m;Y+=2,++$,X=$}while(Y<Z.length){if($===8)return m;if(Z[Y]===E(":")){if(X!==null)return m;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&i1.isASCIIHex(Z[Y]))Q=Q*16+parseInt(KR(Z,Y),16),++Y,++K;if(Z[Y]===E(".")){if(K===0)return m;if(Y-=K,$>6)return m;let G=0;while(Z[Y]!==void 0){let q=null;if(G>0)if(Z[Y]===E(".")&&G<4)++Y;else return m;if(!i1.isASCIIDigit(Z[Y]))return m;while(i1.isASCIIDigit(Z[Y])){const F=parseInt(KR(Z,Y));if(q===null)q=F;else if(q===0)return m;else q=q*10+F;if(q>255)return m;++Y}if(J[$]=J[$]*256+q,++G,G===2||G===4)++$}if(G!==4)return m;break}else if(Z[Y]===E(":")){if(++Y,Z[Y]===void 0)return m}else if(Z[Y]!==void 0)return m;J[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=J[X+Q-1];J[X+Q-1]=J[$],J[$]=K,--$,--Q}}else if(X===null&&$!==8)return m;return J},yu=function(Z){let J="";const $=xu(Z);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&Z[Y]===0)continue;else if(X)X=!1;if($===Y){J+=Y===0?"::":":",X=!0;continue}if(J+=Z[Y].toString(16),Y!==7)J+=":"}return J},x3=function(Z,J=!1){if(Z[0]==="["){if(Z[Z.length-1]!=="]")return m;return Su(Z.substring(1,Z.length-1))}if(J)return _u(Z);const $=Lu(wu(Z)),X=vu($);if(X===m)return m;if(Bu(X))return m;if(ku(X))return hu(X);return X},ku=function(Z){const J=Z.split(".");if(J[J.length-1]===""){if(J.length===1)return!1;J.pop()}const $=J[J.length-1];if(VR($)!==m)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},_u=function(Z){if(Cu(Z))return m;return WJ(Z,FR)},xu=function(Z){let J=null,$=1,X=null,Y=0;for(let Q=0;Q<Z.length;++Q)if(Z[Q]!==0){if(Y>$)J=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return J},f3=function(Z){if(typeof Z==="number")return Ou(Z);if(Z instanceof Array)return`[${yu(Z)}]`;return Z},vu=function(Z,J=!1){const $=Au.toASCII(Z,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:J,verifyDNSLength:J});if($===null||$==="")return m;return $},fu=function(Z){return Z.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},gu=function(Z){return Z.replace(/\u0009|\u000A|\u000D/ug,"")},UR=function(Z){const{path:J}=Z;if(J.length===0)return;if(Z.scheme==="file"&&J.length===1&&mu(J[0]))return;J.pop()},MR=function(Z){return Z.username!==""||Z.password!==""},bu=function(Z){return Z.host===null||Z.host===""||D7(Z)||Z.scheme==="file"},D7=function(Z){return typeof Z.path==="string"},mu=function(Z){return/^[A-Za-z]:$/u.test(Z)},I1=function(Z,J,$,X,Y){if(this.pointer=0,this.input=Z,this.base=J||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=fu(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=gu(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),q=this[`parse ${this.state}`](K,G);if(!q)break;else if(q===m){this.failure=!0;break}}},jR=function(Z,J){const $=Z.length-J;return $>=2&&Eu(Z[J],Z[J+1])&&($===2||uu.has(Z[J+2]))},du=function(Z,J){let $=`${Z.scheme}:`;if(Z.host!==null){if($+="//",Z.username!==""||Z.password!==""){if($+=Z.username,Z.password!=="")$+=`:${Z.password}`;$+="@"}if($+=f3(Z.host),Z.port!==null)$+=`:${Z.port}`}if(Z.host===null&&!D7(Z)&&Z.path.length>1&&Z.path[0]==="")$+="/.";if($+=g3(Z),Z.query!==null)$+=`?${Z.query}`;if(!J&&Z.fragment!==null)$+=`#${Z.fragment}`;return $},pu=function(Z){let J=`${Z.scheme}://`;if(J+=f3(Z.host),Z.port!==null)J+=`:${Z.port}`;return J},g3=function(Z){if(D7(Z))return Z.path;let J="";for(let $ of Z.path)J+=`/${$}`;return J},Au=sw(),i1=S3(),{utf8DecodeWithoutBOM:Lu}=KJ(),{percentDecodeString:wu,utf8PercentEncodeCodePoint:FJ,utf8PercentEncodeString:WJ,isC0ControlPercentEncode:FR,isFragmentPercentEncode:Ru,isQueryPercentEncode:Pu,isSpecialQueryPercentEncode:Du,isPathPercentEncode:Tu,isUserinfoPercentEncode:v3}=GJ(),WR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},m=Symbol("failure");I1.prototype["parse scheme start"]=function Z(J,$){if(i1.isASCIIAlpha(J))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,m;return!0};I1.prototype["parse scheme"]=function Z(J,$){if(i1.isASCIIAlphanumeric(J)||J===E("+")||J===E("-")||J===E("."))this.buffer+=$.toLowerCase();else if(J===E(":")){if(this.stateOverride){if(a1(this.url)&&!qJ(this.buffer))return!1;if(!a1(this.url)&&qJ(this.buffer))return!1;if((MR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===zR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==E("/")||this.input[this.pointer+2]!==E("/"))this.parseError=!0;this.state="file"}else if(a1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(a1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===E("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,m;return!0};I1.prototype["parse no scheme"]=function Z(J){if(this.base===null||D7(this.base)&&J!==E("#"))return m;else if(D7(this.base)&&J===E("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};I1.prototype["parse special relative or authority"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};I1.prototype["parse path or authority"]=function Z(J){if(J===E("/"))this.state="authority";else this.state="path",--this.pointer;return!0};I1.prototype["parse relative"]=function Z(J){if(this.url.scheme=this.base.scheme,J===E("/"))this.state="relative slash";else if(a1(this.url)&&J===E("\\"))this.parseError=!0,this.state="relative slash";else if(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,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};I1.prototype["parse relative slash"]=function Z(J){if(a1(this.url)&&(J===E("/")||J===E("\\"))){if(J===E("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(J===E("/"))this.state="authority";else 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;return!0};I1.prototype["parse special authority slashes"]=function Z(J){if(J===E("/")&&this.input[this.pointer+1]===E("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};I1.prototype["parse special authority ignore slashes"]=function Z(J){if(J!==E("/")&&J!==E("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};I1.prototype["parse authority"]=function Z(J,$){if(J===E("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=QR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===E(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=FJ(Q,v3);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,m;this.pointer-=QR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};I1.prototype["parse hostname"]=I1.prototype["parse host"]=function Z(J,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(J===E(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,m;if(this.stateOverride==="hostname")return!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")){if(--this.pointer,a1(this.url)&&this.buffer==="")return this.parseError=!0,m;else if(this.stateOverride&&this.buffer===""&&(MR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=x3(this.buffer,_3(this.url));if(X===m)return m;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(J===E("["))this.arrFlag=!0;else if(J===E("]"))this.arrFlag=!1;this.buffer+=$}return!0};I1.prototype["parse port"]=function Z(J,$){if(i1.isASCIIDigit(J))this.buffer+=$;else if(isNaN(J)||J===E("/")||J===E("?")||J===E("#")||a1(this.url)&&J===E("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,m;this.url.port=X===zR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,m;return!0};var uu=new Set([E("/"),E("\\"),E("?"),E("#")]);I1.prototype["parse file"]=function Z(J){if(this.url.scheme="file",this.url.host="",J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(J)){if(this.url.query=null,!jR(this.input,this.pointer))UR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};I1.prototype["parse file slash"]=function Z(J){if(J===E("/")||J===E("\\")){if(J===E("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!jR(this.input,this.pointer)&&Nu(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};I1.prototype["parse file host"]=function Z(J,$){if(isNaN(J)||J===E("/")||J===E("\\")||J===E("?")||J===E("#"))if(--this.pointer,!this.stateOverride&&HR(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 X=x3(this.buffer,_3(this.url));if(X===m)return m;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};I1.prototype["parse path start"]=function Z(J){if(a1(this.url)){if(J===E("\\"))this.parseError=!0;if(this.state="path",J!==E("/")&&J!==E("\\"))--this.pointer}else if(!this.stateOverride&&J===E("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&J===E("#"))this.url.fragment="",this.state="fragment";else if(J!==void 0){if(this.state="path",J!==E("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};I1.prototype["parse path"]=function Z(J){if(isNaN(J)||J===E("/")||a1(this.url)&&J===E("\\")||!this.stateOverride&&(J===E("?")||J===E("#"))){if(a1(this.url)&&J===E("\\"))this.parseError=!0;if(Iu(this.buffer)){if(UR(this.url),J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("")}else if(GR(this.buffer)&&J!==E("/")&&!(a1(this.url)&&J===E("\\")))this.url.path.push("");else if(!GR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&HR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",J===E("?"))this.url.query="",this.state="query";if(J===E("#"))this.url.fragment="",this.state="fragment"}else{if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=FJ(J,Tu)}return!0};I1.prototype["parse opaque path"]=function Z(J){if(J===E("?"))this.url.query="",this.state="query";else if(J===E("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(J)&&J!==E("%"))this.parseError=!0;if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(J))this.url.path+=FJ(J,FR)}return!0};I1.prototype["parse query"]=function Z(J,$){if(!a1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&J===E("#")||isNaN(J)){const X=a1(this.url)?Du:Pu;if(this.url.query+=WJ(this.buffer,X),this.buffer="",J===E("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};I1.prototype["parse fragment"]=function Z(J){if(!isNaN(J)){if(J===E("%")&&(!i1.isASCIIHex(this.input[this.pointer+1])||!i1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=FJ(J,Ru)}return!0};cu.serializeURL=du;cu.serializePath=g3;cu.serializeURLOrigin=function(Z){switch(Z.scheme){case"blob":try{return cu.serializeURLOrigin(cu.parseURL(g3(Z)))}catch(J){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return pu({scheme:Z.scheme,host:Z.host,port:Z.port});case"file":return"null";default:return"null"}};cu.basicURLParse=function(Z,J){if(J===void 0)J={};const $=new I1(Z,J.baseURL,J.encodingOverride,J.url,J.stateOverride);if($.failure)return null;return $.url};cu.setTheUsername=function(Z,J){Z.username=WJ(J,v3)};cu.setThePassword=function(Z,J){Z.password=WJ(J,v3)};cu.serializeHost=f3;cu.cannotHaveAUsernamePasswordPort=bu;cu.hasAnOpaquePath=D7;cu.serializeInteger=function(Z){return String(Z)};cu.parseURL=function(Z,J){if(J===void 0)J={};return cu.basicURLParse(Z,{baseURL:J.baseURL,encodingOverride:J.encodingOverride})}});var m3=z((C11,IR)=>{var DR=function(Z){return Z.codePointAt(0)},Jd=function(Z){const J=Yd(Z,DR("&")),$=[];for(let X of J){if(X.length===0)continue;let Y,Q;const K=X.indexOf(DR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=TR(Y,43,32),Q=TR(Q,43,32);const G=LR(wR(Y)),q=LR(wR(Q));$.push([G,q])}return $},$d=function(Z){return Jd(Zd(Z))},Xd=function(Z,J=void 0){let $="utf-8";if(J!==void 0)$=J;let X="";for(let[Y,Q]of Z.entries()){const K=RR(Q[0],PR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=RR(G,PR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},Yd=function(Z,J){const $=[];let X=0,Y=Z.indexOf(J);while(Y>=0)$.push(Z.slice(X,Y)),X=Y+1,Y=Z.indexOf(J,X);if(X!==Z.length)$.push(Z.slice(X));return $},TR=function(Z,J,$){let X=Z.indexOf(J);while(X>=0)Z[X]=$,X=Z.indexOf(J,X+1);return Z},{utf8Encode:Zd,utf8DecodeWithoutBOM:LR}=KJ(),{percentDecodeBytes:wR,utf8PercentEncodeString:RR,isURLEncodedPercentEncode:PR}=GJ();IR.exports={parseUrlencodedString:$d,serializeUrlencoded:Xd}});var NR=z((Qd)=>{var ER=XJ(),HJ=QJ();Qd.convert=(Z,J,{context:$="The provided value"}={})=>{if(typeof J!=="function")throw new Z.TypeError($+" is not a function");function X(...Y){const Q=HJ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=HJ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(J,Q,Y),K=ER.any(K,{context:$,globals:Z}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=HJ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(J,Y);return Q=ER.any(Q,{context:$,globals:Z}),Q},X[HJ.wrapperSymbol]=J,X.objectReference=J,X}});var BR=z((Gd)=>{var u3=m3();Gd.implementation=class Z{constructor(J,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=u3.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let J=u3.serializeUrlencoded(this._list);if(J==="")J=null;this._url._url.query=J}}append(J,$){this._list.push([J,$]),this._updateSteps()}delete(J){let $=0;while($<this._list.length)if(this._list[$][0]===J)this._list.splice($,1);else $++;this._updateSteps()}get(J){for(let $ of this._list)if($[0]===J)return $[1];return null}getAll(J){const $=[];for(let X of this._list)if(X[0]===J)$.push(X[1]);return $}has(J){for(let $ of this._list)if($[0]===J)return!0;return!1}set(J,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===J)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([J,$]);this._updateSteps()}sort(){this._list.sort((J,$)=>{if(J[0]<$[0])return-1;if(J[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return u3.serializeUrlencoded(this._list)}}});var p3=z((Hd)=>{var OR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!F1.isObject($))$=Z[hR].URLSearchParams.prototype;return Object.create($)},n0=XJ(),F1=QJ(),Fd=NR(),CR=F1.newObjectInRealm,h1=F1.implSymbol,hR=F1.ctorRegistrySymbol;Hd.is=(Z)=>{return F1.isObject(Z)&&F1.hasOwn(Z,h1)&&Z[h1]instanceof m6.implementation};Hd.isImpl=(Z)=>{return F1.isObject(Z)&&Z instanceof m6.implementation};Hd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Hd.is(J))return F1.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URLSearchParams'.`)};Hd.createDefaultIterator=(Z,J,$)=>{const Y=Z[hR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,F1.iterInternalSymbol,{value:{target:J,kind:$,index:0},configurable:!0}),Q};Hd.create=(Z,J,$)=>{const X=OR(Z);return Hd.setup(X,Z,J,$)};Hd.createImpl=(Z,J,$)=>{const X=Hd.create(Z,J,$);return F1.implForWrapper(X)};Hd._internalSetup=(Z,J)=>{};Hd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Hd._internalSetup(Z,J),Object.defineProperty(Z,h1,{value:new m6.implementation(J,$,X),configurable:!0}),Z[h1][F1.wrapperSymbol]=Z,m6.init)m6.init(Z[h1]);return Z};Hd.new=(Z,J)=>{const $=OR(Z,J);if(Hd._internalSetup($,Z),Object.defineProperty($,h1,{value:Object.create(m6.implementation.prototype),configurable:!0}),$[h1][F1.wrapperSymbol]=$,m6.init)m6.init($[h1]);return $[h1]};var Wd=new Set(["Window","Worker"]);Hd.install=(Z,J)=>{if(!J.some((Y)=>Wd.has(Y)))return;const $=F1.initCtorRegistry(Z);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(F1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let q of G){if(!F1.isObject(q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const F=[],W=q;for(let H of W)H=n0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:Z}),F.push(H);q=F}K.push(q)}Q=K}else if(!F1.isObject(Q))throw new Z.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const q=Object.getOwnPropertyDescriptor(Q,G);if(q&&q.enumerable){let F=G;F=n0.USVString(F,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:Z});let W=Q[G];W=n0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:Z}),K[F]=W}}Q=K}else Q=n0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:Z});else Q="";Y.push(Q)}return Hd.setup(Object.create(new.target.prototype),Z,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return F1.tryWrapperForImpl(Q[h1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Hd.is(Q))throw new Z.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=n0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:Z}),K.push(G)}return Q[h1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:Z;if(!Hd.is(K))throw new Z.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new Z.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let q=arguments[0];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:Z}),G.push(q)}{let q=arguments[1];q=n0.USVString(q,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:Z}),G.push(q)}return F1.tryWrapperForImpl(K[h1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return F1.tryWrapperForImpl(Y[h1].sort())}toString(){const Y=this!==null&&this!==void 0?this:Z;if(!Hd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[h1].toString()}keys(){if(!Hd.is(this))throw new Z.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key")}values(){if(!Hd.is(this))throw new Z.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"value")}entries(){if(!Hd.is(this))throw new Z.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return Hd.createDefaultIterator(Z,this,"key+value")}forEach(Y){if(!Hd.is(this))throw new Z.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new Z.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=Fd.convert(Z,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[h1]),G=0;while(G<K.length){const[q,F]=K[G].map(F1.tryWrapperForImpl);Y.call(Q,F,q,this),K=Array.from(this[h1]),G++}}}Object.defineProperties(X.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:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),F1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[F1.iterInternalSymbol];if(!Y)throw new Z.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,q=Array.from(Q[h1]),F=q.length;if(G>=F)return CR(Z,{value:void 0,done:!0});const W=q[G];return Y.index=G+1,CR(Z,F1.iteratorResult(W.map(F1.tryWrapperForImpl),K))}}),Object.defineProperty(Z,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var m6=BR()});var _R=z((Ld)=>{var U1=b3(),kR=m3(),Ad=p3();Ld.implementation=class Z{constructor(J,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=U1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=U1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=Ad.createImpl(J,[G],{doNotStripQMark:!0}),this._query._url=this}get href(){return U1.serializeURL(this._url)}set href(J){const $=U1.basicURLParse(J);if($===null)throw new TypeError(`Invalid URL: ${J}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=kR.parseUrlencodedString(X)}get origin(){return U1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(J){U1.basicURLParse(`${J}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setTheUsername(this._url,J)}get password(){return this._url.password}set password(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;U1.setThePassword(this._url,J)}get host(){const J=this._url;if(J.host===null)return"";if(J.port===null)return U1.serializeHost(J.host);return`${U1.serializeHost(J.host)}:${U1.serializeInteger(J.port)}`}set host(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return U1.serializeHost(this._url.host)}set hostname(J){if(U1.hasAnOpaquePath(this._url))return;U1.basicURLParse(J,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return U1.serializeInteger(this._url.port)}set port(J){if(U1.cannotHaveAUsernamePasswordPort(this._url))return;if(J==="")this._url.port=null;else U1.basicURLParse(J,{url:this._url,stateOverride:"port"})}get pathname(){return U1.serializePath(this._url)}set pathname(J){if(U1.hasAnOpaquePath(this._url))return;this._url.path=[],U1.basicURLParse(J,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(J){const $=this._url;if(J===""){$.query=null,this._query._list=[];return}const X=J[0]==="?"?J.substring(1):J;$.query="",U1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=kR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(J){if(J===""){this._url.fragment=null;return}const $=J[0]==="#"?J.substring(1):J;this._url.fragment="",U1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}});var gR=z((Dd)=>{var xR=function(Z,J){let $;if(J!==void 0)$=J.prototype;if(!S0.isObject($))$=Z[Rd].URL.prototype;return Object.create($)},t0=XJ(),S0=QJ(),e=S0.implSymbol,Rd=S0.ctorRegistrySymbol;Dd.is=(Z)=>{return S0.isObject(Z)&&S0.hasOwn(Z,e)&&Z[e]instanceof u6.implementation};Dd.isImpl=(Z)=>{return S0.isObject(Z)&&Z instanceof u6.implementation};Dd.convert=(Z,J,{context:$="The provided value"}={})=>{if(Dd.is(J))return S0.implForWrapper(J);throw new Z.TypeError(`${$} is not of type 'URL'.`)};Dd.create=(Z,J,$)=>{const X=xR(Z);return Dd.setup(X,Z,J,$)};Dd.createImpl=(Z,J,$)=>{const X=Dd.create(Z,J,$);return S0.implForWrapper(X)};Dd._internalSetup=(Z,J)=>{};Dd.setup=(Z,J,$=[],X={})=>{if(X.wrapper=Z,Dd._internalSetup(Z,J),Object.defineProperty(Z,e,{value:new u6.implementation(J,$,X),configurable:!0}),Z[e][S0.wrapperSymbol]=Z,u6.init)u6.init(Z[e]);return Z};Dd.new=(Z,J)=>{const $=xR(Z,J);if(Dd._internalSetup($,Z),Object.defineProperty($,e,{value:Object.create(u6.implementation.prototype),configurable:!0}),$[e][S0.wrapperSymbol]=$,u6.init)u6.init($[e]);return $[e]};var Pd=new Set(["Window","Worker"]);Dd.install=(Z,J)=>{if(!J.some((Y)=>Pd.has(Y)))return;const $=S0.initCtorRegistry(Z);class X{constructor(Y){if(arguments.length<1)throw new Z.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:Z}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=t0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:Z});Q.push(K)}return Dd.setup(Object.create(new.target.prototype),Z,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[e].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[e].href}set href(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:Z}),Q[e].href=Y}toString(){const Y=this;if(!Dd.is(Y))throw new Z.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[e].href}get origin(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[e].origin}get protocol(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[e].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:Z}),Q[e].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[e].username}set username(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:Z}),Q[e].username=Y}get password(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[e].password}set password(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:Z}),Q[e].password=Y}get host(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[e].host}set host(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:Z}),Q[e].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[e].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:Z}),Q[e].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[e].port}set port(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:Z}),Q[e].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[e].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:Z}),Q[e].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[e].search}set search(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:Z}),Q[e].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[e].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:Z;if(!Dd.is(Y))throw new Z.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[e].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:Z;if(!Dd.is(Q))throw new Z.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=t0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:Z}),Q[e].hash=Y}}if(Object.defineProperties(X.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}}),$["URL"]=X,Object.defineProperty(Z,"URL",{configurable:!0,writable:!0,value:X}),J.includes("Window"))Object.defineProperty(Z,"webkitURL",{configurable:!0,writable:!0,value:X})};var u6=_R()});var bR=z((Od)=>{var Cd=gR(),hd=p3();Od.URL=Cd;Od.URLSearchParams=hd});var uR=z((xd)=>{var{URL:kd,URLSearchParams:_d}=bR(),z8=b3(),mR=GJ(),VJ={Array,Object,Promise,String,TypeError};kd.install(VJ,["Window"]);_d.install(VJ,["Window"]);xd.URL=VJ.URL;xd.URLSearchParams=VJ.URLSearchParams;xd.parseURL=z8.parseURL;xd.basicURLParse=z8.basicURLParse;xd.serializeURL=z8.serializeURL;xd.serializePath=z8.serializePath;xd.serializeHost=z8.serializeHost;xd.serializeInteger=z8.serializeInteger;xd.serializeURLOrigin=z8.serializeURLOrigin;xd.setTheUsername=z8.setTheUsername;xd.setThePassword=z8.setThePassword;xd.cannotHaveAUsernamePasswordPort=z8.cannotHaveAUsernamePasswordPort;xd.hasAnOpaquePath=z8.hasAnOpaquePath;xd.percentDecodeString=mR.percentDecodeString;xd.percentDecodeBytes=mR.percentDecodeBytes});var pR=z((r0)=>{var Zp=function(Z,J){var $,X;const Y=Z.clone(),Q=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new dR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Jp=function(Z,J){var $,X;const Y=($=J===null||J===void 0?void 0:J.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=J===null||J===void 0?void 0:J.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new dR.default(Z)}catch(F){}if(K)return J={...J,replacementString:"___credentials___"},K.redact(J).toString().replace(/___credentials___/g,Y);const G=Y,q=[(F)=>F.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(F)=>F.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(F)=>F.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(F)=>Q?F.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):F,(F)=>F.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let F of q)Z=F(Z);return Z},rd=r0&&r0.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),od=r0&&r0.__setModuleDefault||(Object.create?function(Z,J){Object.defineProperty(Z,"default",{enumerable:!0,value:J})}:function(Z,J){Z.default=J}),ed=r0&&r0.__importStar||function(Z){if(Z&&Z.__esModule)return Z;var J={};if(Z!=null){for(var $ in Z)if($!=="default"&&Object.prototype.hasOwnProperty.call(Z,$))rd(J,Z,$)}return od(J,Z),J};Object.defineProperty(r0,"__esModule",{value:!0});r0.redactConnectionString=r0.redactValidConnectionString=void 0;var dR=ed(l3());r0.redactValidConnectionString=Zp;r0.redactConnectionString=Jp});var l3=z((i3)=>{var Xp=function(Z){return Z.startsWith("mongodb://")||Z.startsWith("mongodb+srv://")},Qp=function(Z){return class J extends Z{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return a3.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(i3,"__esModule",{value:!0});i3.CommaAndColonSeparatedRecord=i3.ConnectionString=i3.redactConnectionString=void 0;var $p=uR(),cR=pR();Object.defineProperty(i3,"redactConnectionString",{enumerable:!0,get:function(){return cR.redactConnectionString}});var s5="__this_is_a_placeholder__",Yp=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a3 extends Map{delete(Z){return super.delete(this._normalizeKey(Z))}get(Z){return super.get(this._normalizeKey(Z))}has(Z){return super.has(this._normalizeKey(Z))}set(Z,J){return super.set(this._normalizeKey(Z),J)}_normalizeKey(Z){Z=`${Z}`;for(let J of this.keys())if(J.toLowerCase()===Z.toLowerCase()){Z=J;break}return Z}}class lR extends $p.URL{}class _8 extends Error{get name(){return"MongoParseError"}}class n5 extends lR{constructor(Z,J={}){var $;const{looseValidation:X}=J;if(!X&&!Xp(Z))throw new _8('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=Z.match(Yp);if(!Y)throw new _8(`Invalid connection string "${Z}"`);const{protocol:Q,username:K,password:G,hosts:q,rest:F}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!q)throw new _8(`Protocol and host list are required in "${Z}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(V){throw new _8(V.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new _8(`Username contains unescaped characters ${K}`);if(!K||!G){const V=Z.replace(`${Q}://`,"");if(V.startsWith("@")||V.startsWith(":"))throw new _8("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new _8("Password contains unescaped characters")}let W="";if(typeof K==="string")W+=K;if(typeof G==="string")W+=`:${G}`;if(W)W+="@";try{super(`${Q.toLowerCase()}://${W}${s5}${F}`)}catch(H){if(X)new n5(Z,{...J,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(s5,q);throw H}if(this._hosts=q.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new _8("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new _8("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,Qp(this.searchParams.constructor).prototype)}get host(){return s5}set host(Z){throw new Error("No single host for connection string")}get hostname(){return s5}set hostname(Z){throw new Error("No single host for connection string")}get port(){return""}set port(Z){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(Z){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(Z){this._hosts=Z}toString(){return super.toString().replace(s5,this.hosts.join(","))}clone(){return new n5(this.toString(),{looseValidation:!0})}redact(Z){return cR.redactValidConnectionString(this,Z)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}=this;return{href:Z,origin:J,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:q,hash:F}}}i3.ConnectionString=n5;class aR extends a3{constructor(Z){super();for(let J of(Z!==null&&Z!==void 0?Z:"").split(",")){if(!J)continue;const $=J.indexOf(":");if($===-1)this.set(J,"");else this.set(J.slice(0,$),J.slice($+1))}}toString(){return[...this].map((Z)=>Z.join(":")).join(",")}}i3.CommaAndColonSeparatedRecord=aR;i3.default=n5});var sR=z((b11,qp)=>{qp.exports={name:"mongodb",version:"5.9.2",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{bson:"^5.5.0","mongodb-connection-string-url":"^2.6.0",socks:"^2.7.1"},optionalDependencies:{"@mongodb-js/saslprep":"^1.1.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.0.0",kerberos:"^1.0.0 || ^2.0.0","mongodb-client-encryption":">=2.3.0 <3",snappy:"^7.2.2"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.35.1","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.1.0","@types/semver":"^7.5.0","@types/sinon":"^10.0.14","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.40.0","eslint-config-prettier":"^8.8.0","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17",express:"^4.18.2","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-legacy":"^5.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.0",sinon:"^15.0.4","sinon-chai":"^3.7.0",snappy:"^7.2.2","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.2.0",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=14.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.spec.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.js","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var ZP=z((oR)=>{var Fp=function(Z){const J=new s3(512),{appName:$=""}=Z;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?Z.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");J.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=Z.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${tR}|${Y}`:tR};if(!J.ifItFitsItSits("driver",K))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=Wp();if(Q.length>0)G=`${G}|${Q}`;if(!J.ifItFitsItSits("platform",G))throw new nR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const q=(new Map()).set("name",UJ.platform).set("architecture",UJ.arch).set("version",t5.release()).set("type",t5.type());if(!J.ifItFitsItSits("os",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(J.ifItFitsItSits("os",q))break}const F=rR();if(F!=null){if(!J.ifItFitsItSits("env",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(J.ifItFitsItSits("env",F))break}}return J.toObject()},rR=function(){const{AWS_EXECUTION_ENV:Z="",AWS_LAMBDA_RUNTIME_API:J="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:q="",FUNCTION_REGION:F="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=UJ.env,V=Z.startsWith("AWS_Lambda_")||J.length>0,j=$.length>0,U=X.length>0||Y.length>0,L=Q.length>0,D=new Map;if(L&&!(j||U)){if(H.length>0)D.set("region",H);return D.set("name","vercel"),D}if(V&&!(j||U||L)){if(G.length>0)D.set("region",G);if(K.length>0&&Number.isInteger(+K))D.set("memory_mb",new T7.Int32(K));return D.set("name","aws.lambda"),D}if(j&&!(U||V||L))return D.set("name","azure.func"),D;if(U&&!(j||V||L)){if(F.length>0)D.set("region",F);if(q.length>0&&Number.isInteger(+q))D.set("memory_mb",new T7.Int32(q));if(W.length>0&&Number.isInteger(+W))D.set("timeout_sec",new T7.Int32(W));return D.set("name","gcp.func"),D}return null},Wp=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${t5.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${t5.endianness()}`;return`Node.js ${UJ.version}, ${t5.endianness()}`};Object.defineProperty(oR,"__esModule",{value:!0});oR.getFAASEnv=oR.makeClientMetadata=oR.LimitedSizeDocument=void 0;var t5=import.meta.require("os"),UJ=import.meta.require("process"),T7=D1(),nR=h(),tR=sR().version;class s3{constructor(Z){this.maxSize=Z,this.document=new Map,this.documentSize=5}ifItFitsItSits(Z,J){const $=T7.BSON.serialize((new Map()).set(Z,J)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(Z,J),!0}toObject(){return T7.BSON.deserialize(T7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}oR.LimitedSizeDocument=s3;oR.makeClientMetadata=Fp;oR.getFAASEnv=rR});var jJ=z((KP)=>{var YP=function(){if(q6==null){const Z=$P.getSnappy();if("kModuleError"in Z)throw Z.kModuleError;q6=Z}return q6};async function Ap(Z,J){const $={};switch(Z.agreedCompressor){case"snappy":return q6??(q6=YP()),q6.compress(J);case"zstd":{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.compress(J,Up)}case"zlib":{if(Z.zlibCompressionLevel)$.level=Z.zlibCompressionLevel;return jp(J,$)}default:throw new XP.MongoInvalidArgumentError(`Unknown compressor ${Z.agreedCompressor} failed to compress`)}}async function Lp(Z,J){if(Z!==KP.Compressor.snappy&&Z!==KP.Compressor.zstd&&Z!==KP.Compressor.zlib&&Z!==KP.Compressor.none)throw new XP.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${Z})`);switch(Z){case KP.Compressor.snappy:return q6??(q6=YP()),q6.uncompress(J,{asBuffer:!0});case KP.Compressor.zstd:{if(QP(),"kModuleError"in p6)throw p6.kModuleError;return p6.decompress(J)}case KP.Compressor.zlib:return Mp(J);default:return J}}var QP=function(){if(!p6)p6=$P.getZstdLibrary()};Object.defineProperty(KP,"__esModule",{value:!0});KP.decompress=KP.compress=KP.uncompressibleCommands=KP.Compressor=void 0;var JP=import.meta.require("util"),MJ=import.meta.require("zlib"),Vp=f1(),$P=j7(),XP=h();KP.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});KP.uncompressibleCommands=new Set([Vp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var Up=3,Mp=JP.promisify(MJ.inflate.bind(MJ)),jp=JP.promisify(MJ.deflate.bind(MJ)),p6,q6=null;KP.compress=Ap;KP.decompress=Lp});var VP=z((HP)=>{Object.defineProperty(HP,"__esModule",{value:!0});HP.Encrypter=void 0;var Pp=f1(),qP=h(),Dp=I7(),Tp=_(),FP,r5=Symbol("internalClient");class WP{constructor(Z,J,$){if(typeof $.autoEncryption!=="object")throw new qP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[r5]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=Z;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(Z,J,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=Z;else $.autoEncryption.metadataClient=this.getInternalClient(Z,J,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new FP(Z,$.autoEncryption)}getInternalClient(Z,J,$){let X=this[r5];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new Dp.MongoClient(J,Y),this[r5]=X;for(let Q of Pp.MONGO_CLIENT_EVENTS)for(let K of Z.listeners(Q))X.on(Q,K);Z.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const Z=this[r5];if(this.needsConnecting&&Z!=null)this.needsConnecting=!1,await Z.connect()}close(Z,J,$){this.autoEncrypter.teardown(!!J,(X)=>{const Y=this[r5];if(Y!=null&&Z!==Y){Y.close(J).then(()=>$(),(Q)=>$(Q));return}$(X)})}static checkForMongoCrypt(){const Z=Tp.getMongoDBClientEncryption();if(Z==null)throw new qP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project");FP=Z.extension(o5()).AutoEncrypter}}HP.Encrypter=WP});var e3=z((jP)=>{var e5=function(Z){const J=Object.values(jP.SeverityLevel),$=Z?.toLowerCase();if($!=null&&J.includes($))return $;return null},E7=function(Z){return{write:(J)=>{Z.write(Ep.inspect(J,{compact:!0,breakLength:Infinity}),"utf-8");return}}},Np=function({MONGODB_LOG_PATH:Z},{mongodbLogPath:J}){if(typeof J==="string"&&/^stderr$/i.test(J))return E7(process.stderr);if(typeof J==="string"&&/^stdout$/i.test(J))return E7(process.stdout);if(typeof J==="object"&&typeof J?.write==="function")return J;if(Z&&/^stderr$/i.test(Z))return E7(process.stderr);if(Z&&/^stdout$/i.test(Z))return E7(process.stdout);return E7(process.stderr)},Bp=function(Z,J){const $=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z),X=jP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J);return $<X?-1:$>X?1:0},t3=function(Z,J){const $=Ip.EJSON.stringify(Z);return J!==0&&$.length>J?`${$.slice(0,J)}...`:$},Cp=function(Z){const J=Z;return J.toLog!==void 0&&typeof J.toLog==="function"},n3=function(Z,J){Z.commandName=J.commandName,Z.requestId=J.requestId,Z.driverConnectionId=J?.connectionId;const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();if(Z.serverHost=$,Z.serverPort=X,J?.serviceId)Z.serviceId=J.serviceId.toHexString();return Z},V8=function(Z,J){const{host:$,port:X}=o3.HostAddress.fromString(J.address).toHostPort();return Z.serverHost=$,Z.serverPort=X,Z},hp=function(Z,J=jP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(Z.name){case w0.COMMAND_STARTED:return $=n3($,Z),$.message="Command started",$.command=t3(Z.command,J),$.databaseName=Z.databaseName,$;case w0.COMMAND_SUCCEEDED:return $=n3($,Z),$.message="Command succeeded",$.durationMS=Z.duration,$.reply=t3(Z.reply,J),$;case w0.COMMAND_FAILED:return $=n3($,Z),$.message="Command failed",$.durationMS=Z.duration,$.failure=Z.failure,$;case w0.CONNECTION_POOL_CREATED:if($=V8($,Z),$.message="Connection pool created",Z.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=Z.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case w0.CONNECTION_POOL_READY:return $=V8($,Z),$.message="Connection pool ready",$;case w0.CONNECTION_POOL_CLEARED:if($=V8($,Z),$.message="Connection pool cleared",Z.serviceId?._bsontype==="ObjectId")$.serviceId=Z.serviceId.toHexString();return $;case w0.CONNECTION_POOL_CLOSED:return $=V8($,Z),$.message="Connection pool closed",$;case w0.CONNECTION_CREATED:return $=V8($,Z),$.message="Connection created",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_READY:return $=V8($,Z),$.message="Connection ready",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CLOSED:switch($=V8($,Z),$.message="Connection closed",$.driverConnectionId=Z.connectionId,Z.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",Z.error)$.error=Z.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECK_OUT_STARTED:return $=V8($,Z),$.message="Connection checkout started",$;case w0.CONNECTION_CHECK_OUT_FAILED:switch($=V8($,Z),$.message="Connection checkout failed",Z.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",Z.error)$.error=Z.error;break;default:$.reason=`Unknown close reason: ${Z.reason}`}return $;case w0.CONNECTION_CHECKED_OUT:return $=V8($,Z),$.message="Connection checked out",$.driverConnectionId=Z.connectionId,$;case w0.CONNECTION_CHECKED_IN:return $=V8($,Z),$.message="Connection checked in",$.driverConnectionId=Z.connectionId,$;default:for(let[X,Y]of Object.entries(Z))if(Y!=null)$[X]=Y}return $};Object.defineProperty(jP,"__esModule",{value:!0});jP.MongoLogger=jP.stringifyWithMaxLen=jP.createStdioLogger=jP.MongoLoggableComponent=jP.SEVERITY_LEVEL_MAP=jP.DEFAULT_MAX_DOCUMENT_LENGTH=jP.SeverityLevel=void 0;var Ip=H5(),Ep=import.meta.require("util"),w0=f1(),o3=_();jP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});jP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class UP extends Map{constructor(Z){const J=[];for(let[$,X]of Z)J.push([X,$]);J.push(...Z);super(J)}getNumericSeverityLevel(Z){return this.get(Z)}getSeverityLevelName(Z){return this.get(Z)}}jP.SEVERITY_LEVEL_MAP=new UP([[jP.SeverityLevel.OFF,(-Infinity)],[jP.SeverityLevel.EMERGENCY,0],[jP.SeverityLevel.ALERT,1],[jP.SeverityLevel.CRITICAL,2],[jP.SeverityLevel.ERROR,3],[jP.SeverityLevel.WARNING,4],[jP.SeverityLevel.NOTICE,5],[jP.SeverityLevel.INFORMATIONAL,6],[jP.SeverityLevel.DEBUG,7],[jP.SeverityLevel.TRACE,8]]);jP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection"});jP.createStdioLogger=E7;jP.stringifyWithMaxLen=t3;class MP{constructor(Z){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=Z.componentSeverities,this.maxDocumentLength=Z.maxDocumentLength,this.logDestination=Z.logDestination}log(Z,J,$){if(Bp(Z,this.componentSeverities[J])>0)return;let X={t:new Date,c:J,s:Z};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Cp($))X={...X,...$.toLog()};else X={...X,...hp($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(Z,J){const $={...Z,...J,mongodbLogPath:Np(Z,J)},X=e5($.MONGODB_LOG_ALL)??jP.SeverityLevel.OFF;return{componentSeverities:{command:e5($.MONGODB_LOG_COMMAND)??X,topology:e5($.MONGODB_LOG_TOPOLOGY)??X,serverSelection:e5($.MONGODB_LOG_SERVER_SELECTION)??X,connection:e5($.MONGODB_LOG_CONNECTION)??X,default:X},maxDocumentLength:o3.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}jP.MongoLogger=MP});var KQ=z((IP)=>{async function mp(Z){if(typeof Z.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(Z.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const J=Z.srvHost,$=await wP.promises.resolveSrv(`_${Z.srvServiceName}._tcp.${J}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!s1.matchesParentDomain(W,J))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>s1.HostAddress.fromString(`${W.name}:${W.port??27017}`));$Q(X,Z,!0);let Y;try{Y=await wP.promises.resolveTxt(J)}catch(W){if(W.code!=="ENODATA"&&W.code!=="ENOTFOUND")throw W;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new _p.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!JQ.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${JQ.join(", ")}`);if(JQ.some((W)=>Q.get(W)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,q=Q.get("replicaSet")??void 0,F=Q.get("loadBalanced")??void 0;if(!Z.userSpecifiedAuthSource&&G&&Z.credentials&&!x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(Z.credentials.mechanism))Z.credentials=N7.MongoCredentials.merge(Z.credentials,{source:G});if(!Z.userSpecifiedReplicaSet&&q)Z.replicaSet=q;if(F==="true")Z.loadBalanced=!0;if(Z.replicaSet&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return $Q(X,Z,!0),X}var up=function(Z){if(!Z)return;const J=($,X)=>{if(Z.has($)&&Z.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};J("tlsInsecure","tlsAllowInvalidCertificates"),J("tlsInsecure","tlsAllowInvalidHostnames"),J("tlsInsecure","tlsDisableCertificateRevocationCheck"),J("tlsInsecure","tlsDisableOCSPEndpointCheck"),J("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),J("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),J("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},W6=function(Z,J){if(typeof J==="boolean")return J;const $=String(J).toLowerCase();if(dp.has($)){if($!=="true")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : true instead`);return!0}if(pp.has($)){if($!=="false")s1.emitWarningOnce(`deprecated value for ${Z} : ${$} - please update to ${Z} : false instead`);return!1}throw new S.MongoParseError(`Expected ${Z} to be stringified boolean value, got: ${J}`)},YQ=function(Z,J){const $=s1.parseInteger(J);if($!=null)return $;throw new S.MongoParseError(`Expected ${Z} to be stringified int value, got: ${J}`)},Z9=function(Z,J){const $=YQ(Z,J);if($<0)throw new S.MongoParseError(`${Z} can only be a positive int value, got: ${J}`);return $};function*DP(Z){const J=Z.split(",");for(let $ of J){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var cp=function(Z,J=void 0,$={}){if(J!=null&&!(J instanceof AJ.MongoClient))$=J,J=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new kp.default(Z),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(IP.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(s1.HostAddress.fromString);const G=new J9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const T=[...X.searchParams.getAll(w)];if(T.includes(""))throw new S.MongoAPIError("URI cannot contain options with no value");if(!G.has(w))G.set(w,T)}const q=new J9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const F=G.get("authMechanismProperties");if(F){for(let w of F)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(q.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const W=new J9,H=new Set([...G.keys(),...q.keys()]);for(let w of H){const T=[],f=q.get(w);if(f!=null)T.push(f);const N1=G.get(w)??[];T.push(...N1),W.set(w,T)}const V=W.has("tlsCertificateKeyFile")&&!W.has("tlsCertificateFile");if(V)W.set("tlsCertificateFile",W.get("tlsCertificateKeyFile"));if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(W6.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}up(W);const j=s1.setDifference(H,Array.from(Object.keys(IP.OPTIONS)).map((w)=>w.toLowerCase()));if(j.size!==0){const w=j.size>1?"options":"option",T=j.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(j).join(", ")} ${T} not supported`)}for(let[w,T]of Object.entries(IP.OPTIONS)){const f=W.get(w);if(!f||f.length===0){if(IP.DEFAULT_OPTIONS.has(w))TP(K,w,T,[IP.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:N1}=T;if(N1&&!(V&&w==="tlsCertificateFile")){const y=typeof N1==="string"?`: ${N1}`:"";s1.emitWarning(`${w} is a deprecated option${y}`)}TP(K,w,T,f)}}if(K.credentials){const w=K.credentials.mechanism===x8.AuthMechanism.MONGODB_GSSAPI,T=K.credentials.mechanism===x8.AuthMechanism.MONGODB_X509,f=K.credentials.mechanism===x8.AuthMechanism.MONGODB_AWS,N1=K.credentials.mechanism===x8.AuthMechanism.MONGODB_OIDC;if((w||T)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||T||f||N1)&&K.dbName&&!W.has("authSource"))K.credentials=N7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(f&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===x8.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if($Q(Y,K,Q),J&&K.autoEncryption)PP.Encrypter.checkForMongoCrypt(),K.encrypter=new PP.Encrypter(J,Z,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=q.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=q.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!q.has("tls")&&!G.has("tls"),T=!q.has("ssl")&&!G.has("ssl");if(w&&T)K.tls=!0}else if(G.has("srvMaxHosts")||q.has("srvMaxHosts")||G.has("srvServiceName")||q.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const L=Symbol.for("@@mdb.enableMongoLogger");K[L]=K[L]??!1;let D={},B={};if(K[L])D={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},B={mongodbLogPath:K.mongodbLogPath};return K.mongoLoggerOptions=vp.MongoLogger.resolveOptions(D,B),K.metadata=xp.makeClientMetadata(K),K},$Q=function(Z,J,$){if(J.loadBalanced){if(Z.length>1)throw new S.MongoParseError(fp);if(J.replicaSet)throw new S.MongoParseError(gp);if(J.directConnection)throw new S.MongoParseError(bp);if($&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},TP=function(Z,J,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??J;switch(Q){case"boolean":Z[G]=W6(G,X[0]);break;case"int":Z[G]=YQ(G,X[0]);break;case"uint":Z[G]=Z9(G,X[0]);break;case"string":if(X[0]==null)break;Z[G]=String(X[0]);break;case"record":if(!s1.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);Z[G]=X[0];break;case"any":Z[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const q=K({name:G,options:Z,values:X});Z[G]=q;break}}};Object.defineProperty(IP,"__esModule",{value:!0});IP.FEATURE_FLAGS=IP.DEFAULT_OPTIONS=IP.OPTIONS=IP.parseOptions=IP.resolveSRVRecord=void 0;var wP=import.meta.require("dns"),E4=import.meta.require("fs"),kp=l3(),_p=import.meta.require("url"),N7=JJ(),x8=k8(),xp=ZP(),RP=jJ(),PP=VP(),S=h(),AJ=I7(),vp=e3(),ZQ=d0(),c6=y1(),s1=_(),F6=A0(),JQ=["authSource","replicaSet","loadBalanced"],fp="loadBalanced option only supported with a single host in the URI",gp="loadBalanced option not supported with a replicaSet option",bp="loadBalanced option not supported when directConnection is provided";IP.resolveSRVRecord=mp;var dp=new Set(["true","t","1","y","yes"]),pp=new Set(["false","f","0","n","no","-1"]);class J9 extends Map{constructor(Z=[]){super(Z.map(([J,$])=>[J.toLowerCase(),$]))}has(Z){return super.has(Z.toLowerCase())}get(Z){return super.get(Z.toLowerCase())}set(Z,J){return super.set(Z.toLowerCase(),J)}delete(Z){return super.delete(Z.toLowerCase())}}IP.parseOptions=cp;IP.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:Z,options:J,values:[$]}){if(!s1.isRecord($,["username","password"]))throw new S.MongoParseError(`${Z} must be an object with 'username' and 'password' properties`);return N7.MongoCredentials.merge(J.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:Z,values:[J]}){const $=Object.values(x8.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${J}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${J}`);let Y=Z.credentials?.source;if(X===x8.AuthMechanism.MONGODB_PLAIN||x8.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=Z.credentials?.password;if(X===x8.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return N7.MongoCredentials.merge(Z.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:Z,values:J}){let $=Object.create(null);for(let X of J)if(typeof X==="string")for(let[Y,Q]of DP(X))try{$[Y]=W6(Y,Q)}catch{$[Y]=Q}else{if(!s1.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return N7.MongoCredentials.merge(Z.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:Z,values:[J]}){const $=String(J);return N7.MongoCredentials.merge(Z.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[Z]}){const J=typeof Z==="string"?{version:Z}:Z,$=J&&J.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);if(!Object.values(AJ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(AJ.ServerApiVersion).join('", "')}"]`);return J}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:Z}){const J=new Set;for(let $ of Z){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(RP.Compressor).includes(String(Y)))J.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(RP.Compressor)}.`)}return[...J]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:Z,values:[J]}){const $=YQ(Z,J);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,fsync:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:Z,options:J,values:[$]}){const X=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,journal:W6(Z,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},keepAlive:{default:!0,type:"boolean",deprecated:"Will not be able to turn off in the future."},keepAliveInitialDelay:{default:120000,type:"uint",deprecated:"Will not be configurable in the future."},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:Z,values:[J]}){const $=Z9(Z,J);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:Z,options:J,values:[$]}){const X=Z9(Z,$);if(J.readPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,maxStalenessSeconds:X}});else return new c6.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[Z],options:J}){return{...J.driverInfo,name:String(Z)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:s1.DEFAULT_PK_FACTORY,transform({values:[Z]}){if(s1.isRecord(Z,["createPk"])&&typeof Z.createPk==="function")return Z;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${Z}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[Z],options:J}){if(Z instanceof ZQ.ReadConcern||s1.isRecord(Z,["level"]))return ZQ.ReadConcern.fromOptions({...J.readConcern,...Z});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(Z)}`)}},readConcernLevel:{target:"readConcern",transform({values:[Z],options:J}){return ZQ.ReadConcern.fromOptions({...J.readConcern,level:Z})}},readPreference:{default:c6.ReadPreference.primary,transform({values:[Z],options:J}){if(Z instanceof c6.ReadPreference)return c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if(s1.isRecord(Z,["mode"])){const $=c6.ReadPreference.fromOptions({readPreference:{...J.readPreference,...Z},...Z});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(Z)}`)}if(typeof Z==="string"){const $={hedge:J.readPreference?.hedge,maxStalenessSeconds:J.readPreference?.maxStalenessSeconds};return new c6.ReadPreference(Z,J.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${Z}`)}},readPreferenceTags:{target:"readPreference",transform({values:Z,options:J}){const $=Array.isArray(Z[0])?Z[0]:Z,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of DP(Y))Q[K]=G;if(s1.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return c6.ReadPreference.fromOptions({readPreference:J.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:30000,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:{deprecated:"sslCA is deprecated and will be removed in the next major version. Please use tlsCAFile instead.",target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCRL:{deprecated:"sslCRL is deprecated and will be removed in the next major version and be replaced by tlsCRLFile in that release.",target:"crl",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslCert:{deprecated:"sslCert is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslKey:{deprecated:"sslKey is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},sslPass:{deprecated:"sslPass is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFilePassword instead.",target:"passphrase",type:"string"},sslValidate:{deprecated:"sslValidate is deprecated and will be removed in the next major version. Please use tlsAllowInvalidCertificates instead.",target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:Z,values:[J]}){return!W6(Z,J)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:Z,values:[J]}){return W6(Z,J)?()=>{return}:void 0}},tlsCAFile:{target:"ca",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateFile:{deprecated:"tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.",target:"cert",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFile:{target:"key",transform({values:[Z]}){return E4.readFileSync(String(Z),{encoding:"ascii"})}},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:Z,options:J,values:[$]}){const X=W6(Z,$);if(X)J.checkServerIdentity=()=>{return},J.rejectUnauthorized=!1;else J.checkServerIdentity=J.tlsAllowInvalidHostnames?()=>{return}:void 0,J.rejectUnauthorized=J.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[Z],options:J}){return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[Z],options:J}){if(s1.isRecord(Z)||Z instanceof F6.WriteConcern)return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,...Z}});else if(Z==="majority"||typeof Z==="number")return F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,w:Z}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(Z)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeout:Z9("wtimeout",Z)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[Z],options:J}){const $=F6.WriteConcern.fromOptions({writeConcern:{...J.writeConcern,wtimeoutMS:Z9("wtimeoutMS",Z)}});if($)return $;throw new S.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"},mongodbLogPath:{type:"any"}};IP.DEFAULT_OPTIONS=new J9(Object.entries(IP.OPTIONS).filter(([,Z])=>Z.default!=null).map(([Z,J])=>[Z,J.default]));IP.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var wJ=z((_P)=>{Object.defineProperty(_P,"__esModule",{value:!0});_P.ServerHeartbeatFailedEvent=_P.ServerHeartbeatSucceededEvent=_P.ServerHeartbeatStartedEvent=_P.TopologyClosedEvent=_P.TopologyOpeningEvent=_P.TopologyDescriptionChangedEvent=_P.ServerClosedEvent=_P.ServerOpeningEvent=_P.ServerDescriptionChangedEvent=void 0;class EP{constructor(Z,J,$,X){this.topologyId=Z,this.address=J,this.previousDescription=$,this.newDescription=X}}_P.ServerDescriptionChangedEvent=EP;class NP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerOpeningEvent=NP;class BP{constructor(Z,J){this.topologyId=Z,this.address=J}}_P.ServerClosedEvent=BP;class CP{constructor(Z,J,$){this.topologyId=Z,this.previousDescription=J,this.newDescription=$}}_P.TopologyDescriptionChangedEvent=CP;class hP{constructor(Z){this.topologyId=Z}}_P.TopologyOpeningEvent=hP;class OP{constructor(Z){this.topologyId=Z}}_P.TopologyClosedEvent=OP;class SP{constructor(Z){this.connectionId=Z}}_P.ServerHeartbeatStartedEvent=SP;class yP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.reply=$??{}}}_P.ServerHeartbeatSucceededEvent=yP;class kP{constructor(Z,J,$){this.connectionId=Z,this.duration=J,this.failure=$}}_P.ServerHeartbeatFailedEvent=kP});var RJ=z((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.BinMsg=uP.Msg=uP.Response=uP.Query=void 0;var l6=D1(),X9=h(),Jc=y1(),$c=_(),$9=j4(),B7=0,Xc=2,Yc=4,Qc=8,Kc=16,Gc=32,qc=64,Fc=128,Wc=1,Hc=2,zc=4,Vc=8;class GQ{constructor(Z,J,$){if(Z==null)throw new X9.MongoRuntimeError("Namespace must be specified for query");if(J==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(Z.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=Z,this.query=J,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=GQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=B7++}nextRequestId(){return B7+1}static getRequestId(){return++B7}toBin(){const Z=[];let J=null,$=0;if(this.tailable)$|=Xc;if(this.secondaryOk)$|=Yc;if(this.oplogReplay)$|=Qc;if(this.noCursorTimeout)$|=Kc;if(this.awaitData)$|=Gc;if(this.exhaust)$|=qc;if(this.partial)$|=Fc;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);Z.push(X);const Y=l6.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(Z.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)J=l6.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),Z.push(J);const Q=X.length+Y.length+(J?J.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=$9.OP_QUERY>>24&255,X[K+2]=$9.OP_QUERY>>16&255,X[K+1]=$9.OP_QUERY>>8&255,X[K]=$9.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,Z}}uP.Query=GQ;class vP{constructor(Z,J,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{};const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp;let q;const F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new l6.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=(this.responseFlags&Wc)!==0,this.queryFailure=(this.responseFlags&Hc)!==0,this.shardConfigStale=(this.responseFlags&zc)!==0,this.awaitCapable=(this.responseFlags&Vc)!==0;for(let W=0;W<this.numberReturned;W++){if(q=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,J)this.documents[W]=this.data.slice(this.index,this.index+q);else this.documents[W]=l6.deserialize(this.data.slice(this.index,this.index+q),F);this.index=this.index+q}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}}uP.Response=vP;var fP=1,gP=2,bP=1<<16;class qQ{constructor(Z,J,$){if(J==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.ns=Z,this.command=J,this.command.$db=$c.databaseNamespace(Z),$.readPreference&&$.readPreference.mode!==Jc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:qQ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const Z=[];let J=0;if(this.checksumPresent)J|=fP;if(this.moreToCome)J|=gP;if(this.exhaustAllowed)J|=bP;const $=Buffer.alloc(20);Z.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(Z,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE($9.OP_MSG,12),$.writeUInt32LE(J,16),Z}makeDocumentSegment(Z,J){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(J);return Z.push($),Z.push(X),$.length+X.length}serializeBson(Z){return l6.serialize(Z,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return B7=B7+1&2147483647,B7}}uP.Msg=qQ;class mP{constructor(Z,J,$,X){this.parsed=!1,this.raw=Z,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=J.length,this.requestId=J.requestId,this.responseTo=J.responseTo,this.opCode=J.opCode,this.fromCompressed=J.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&fP)!==0,this.moreToCome=(this.responseFlags&gP)!==0,this.exhaustAllowed=(this.responseFlags&bP)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(Z){if(this.parsed)return;Z=Z??{},this.index=4;const J=Z.raw||!1,$=Z.documentsReturnedIn||null,X=Z.useBigInt64??this.opts.useBigInt64,Y=Z.promoteLongs??this.opts.promoteLongs,Q=Z.promoteValues??this.opts.promoteValues,K=Z.promoteBuffers??this.opts.promoteBuffers,G=Z.bsonRegExp??this.opts.bsonRegExp,q=this.parseBsonSerializationOptions(Z),F={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:q};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),V=this.data.slice(this.index,this.index+H);this.documents.push(J?V:l6.deserialize(V,F)),this.index+=H}else if(W===1)throw new X9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&J){const W={};W[$]=!0,F.fieldsAsRaw=W;const H=l6.deserialize(this.documents[0],F);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:Z}){if(Z===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}uP.BinMsg=mP});var VQ=z((nP)=>{var HQ=function(Z){if(Z instanceof lP.Msg)return U8.deepCopy(Z.command);if(Z.query?.$query){let X;if(Z.ns==="admin.$cmd")X=Object.assign({},Z.query.$query);else X={find:Rc(Z)},Object.keys(pP).forEach((Y)=>{if(Z.query[Y]!=null)X[pP[Y]]=U8.deepCopy(Z.query[Y])});if(Object.keys(cP).forEach((Y)=>{const Q=Y;if(Z[Q]!=null)X[cP[Q]]=U8.deepCopy(Z[Q])}),Pc.forEach((Y)=>{if(Z[Y])X[Y]=Z[Y]}),Z.pre32Limit!=null)X.limit=Z.pre32Limit;if(Z.query.$explain)return{explain:X};return X}const J={},$={};if(Z.query){for(let X in Z.query)J[X]=U8.deepCopy(Z.query[X]);$.query=J}for(let X in Z){if(X==="query")continue;$[X]=U8.deepCopy(Z[X])}return Z.query?J:$},Dc=function(Z,J){if(!J)return J;if(Z instanceof lP.Msg)return U8.deepCopy(J.result?J.result:J);if(Z.query&&Z.query.$query!=null)return{ok:1,cursor:{id:U8.deepCopy(J.cursorId),ns:Lc(Z),firstBatch:U8.deepCopy(J.documents)}};return U8.deepCopy(J.result?J.result:J)},zQ=function(Z){let J;if("id"in Z)J=Z.id;return{address:Z.address,serviceId:Z.serviceId,connectionId:J}};Object.defineProperty(nP,"__esModule",{value:!0});nP.SENSITIVE_COMMANDS=nP.CommandFailedEvent=nP.CommandSucceededEvent=nP.CommandStartedEvent=void 0;var Y9=f1(),U8=_(),lP=RJ();class aP{constructor(Z,J){this.name=Y9.COMMAND_STARTED;const $=HQ(J),X=FQ($),{address:Y,connectionId:Q,serviceId:K}=zQ(Z);if(nP.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=J.requestId,this.databaseName=wc(J),this.commandName=X,this.command=WQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandStartedEvent=aP;class iP{constructor(Z,J,$,X){this.name=Y9.COMMAND_SUCCEEDED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.reply=WQ(Q,Y,Dc(J,$))}get hasServiceId(){return!!this.serviceId}}nP.CommandSucceededEvent=iP;class sP{constructor(Z,J,$,X){this.name=Y9.COMMAND_FAILED;const Y=HQ(J),Q=FQ(Y),{address:K,connectionId:G,serviceId:q}=zQ(Z);this.address=K,this.connectionId=G,this.serviceId=q,this.requestId=J.requestId,this.commandName=Q,this.duration=U8.calculateDurationInMs(X),this.failure=WQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}nP.CommandFailedEvent=sP;nP.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var Ac=new Set(["hello",Y9.LEGACY_HELLO_COMMAND,Y9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),FQ=(Z)=>Object.keys(Z)[0],Lc=(Z)=>Z.ns,wc=(Z)=>Z.ns.split(".")[0],Rc=(Z)=>Z.ns.split(".")[1],WQ=(Z,J,$)=>nP.SENSITIVE_COMMANDS.has(Z)||Ac.has(Z)&&J.speculativeAuthenticate?{}:$,pP={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},cP={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Pc=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var ZD=z((oP)=>{var hc=function(Z){const J=Z instanceof Q9.Msg?Z.command:Z.query,$=Object.keys(J)[0];return!IJ.uncompressibleCommands.has($)},K9=function(Z,J){const $=Z[TJ],X=$.getInt32();if(X==null)return J();if(X<0)return J(new UQ.MongoParseError(`Invalid message size: ${X}`));if(X>Z.maxBsonMessageSize)return J(new UQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${Z.maxBsonMessageSize}`));if(X>$.length)return J();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(Z.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response;if(Q.opCode!==DJ.OP_COMPRESSED){const W=Y.subarray(a6);if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(a6),Q.length=Y.readInt32LE(a6+4);const q=Y[a6+8],F=Y.slice(a6+9);G=Q.opCode===DJ.OP_MSG?Q9.BinMsg:Q9.Response,IJ.decompress(q,F).then((W)=>{if(W.length!==Q.length)return J(new UQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return K9(Z,J);if(Z.emit("message",new G(Y,Q,W)),$.length>=4)return K9(Z,J);return J()},(W)=>{return J(W)})};Object.defineProperty(oP,"__esModule",{value:!0});oP.MessageStream=void 0;var Nc=import.meta.require("stream"),UQ=h(),Bc=_(),Q9=RJ(),IJ=jJ(),DJ=j4(),a6=16,tP=9,Cc=67108864,TJ=Symbol("buffer");class rP extends Nc.Duplex{constructor(Z={}){super(Z);this.isMonitoringConnection=!1,this.maxBsonMessageSize=Z.maxBsonMessageSize||Cc,this[TJ]=new Bc.BufferPool}get buffer(){return this[TJ]}_write(Z,J,$){this[TJ].append(Z),K9(this,$)}_read(){return}writeCommand(Z,J){const $=J.agreedCompressor??"none";if($==="none"||!hc(Z)){const G=Z.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(Z.toBin()),Y=X.slice(a6),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:J.zlibCompressionLevel??0};IJ.compress(K,Y).then((G)=>{const q=Buffer.alloc(a6);q.writeInt32LE(a6+tP+G.length,0),q.writeInt32LE(Z.requestId,4),q.writeInt32LE(0,8),q.writeInt32LE(DJ.OP_COMPRESSED,12);const F=Buffer.alloc(tP);F.writeInt32LE(Q,0),F.writeInt32LE(Y.length,4),F.writeUInt8(IJ.Compressor[$],8),this.push(Buffer.concat([q,F,G]))},(G)=>{J.cb(G)})}}oP.MessageStream=rP});var YD=z(($D)=>{Object.defineProperty($D,"__esModule",{value:!0});$D.StreamDescription=void 0;var Oc=p0(),Sc=C5(),yc=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class JD{constructor(Z,J){this.address=Z,this.type=Oc.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=J?.logicalSessionTimeoutMinutes,this.loadBalanced=!!J?.loadBalanced,this.compressors=J&&J.compressors&&Array.isArray(J.compressors)?J.compressors:[]}receiveResponse(Z){if(Z==null)return;this.type=Sc.parseServerType(Z);for(let J of yc){if(Z[J]!=null)this[J]=Z[J];if("__nodejs_mock_server__"in Z)this.__nodejs_mock_server__=Z.__nodejs_mock_server__}if(Z.compression)this.compressor=this.compressors.filter((J)=>Z.compression?.includes(J))[0]}}$D.StreamDescription=JD});var G9=z((zD)=>{var HD=function(Z){return Z.description.logicalSessionTimeoutMinutes!=null},gc=function(Z){const J=Z.description;if(J==null)return!1;return i6.maxWireVersion(Z)>=6&&!J.__nodejs_mock_server__},bc=function(Z,J){if(J.proxyHost)return J.hostAddress.toString();const{remoteAddress:$,remotePort:X}=Z;if(typeof $==="string"&&typeof X==="number")return i6.HostAddress.fromHostPort($,X).toString();return i6.uuidV4().toString("hex")},mc=function(Z,J,$,X){$=$??{};const Y={requestId:J.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(Z[g8]&&Z[g8].compressor){if(Y.agreedCompressor=Z[g8].compressor,Z[g8].zlibCompressionLevel)Y.zlibCompressionLevel=Z[g8].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")Z[n1].setTimeout($.socketTimeoutMS);else if(Z.socketTimeoutMS!==0)Z[n1].setTimeout(Z.socketTimeoutMS);if(Z.monitorCommands)Z.emit(_1.COMMAND_STARTED,new EJ.CommandStartedEvent(Z,J)),Y.started=i6.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,Q,Y.started));else if(K&&(K.ok===0||K.$err))Z.emit(_1.COMMAND_FAILED,new EJ.CommandFailedEvent(Z,J,K,Y.started));else Z.emit(_1.COMMAND_SUCCEEDED,new EJ.CommandSucceededEvent(Z,J,K,Y.started));if(typeof X==="function")X(Q,Q instanceof f8.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)Z[M8].set(Y.requestId,Y);try{Z[v8].writeCommand(J,Y)}catch(Q){if(!Y.noResponse){Z[M8].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};Object.defineProperty(zD,"__esModule",{value:!0});zD.hasSessionSupport=zD.CryptoConnection=zD.Connection=void 0;var QD=import.meta.require("timers"),kc=import.meta.require("util"),s6=f1(),f8=h(),_c=C0(),KD=S5(),i6=_(),EJ=VQ(),GD=RJ(),xc=ZD(),vc=YD(),qD=CY(),n1=Symbol("stream"),M8=Symbol("queue"),v8=Symbol("messageStream"),MQ=Symbol("generation"),jQ=Symbol("lastUseTime"),AQ=Symbol("clusterTime"),g8=Symbol("description"),LQ=Symbol("hello"),FD=Symbol("autoEncrypter"),NJ=Symbol("delayedTimeoutId"),fc="Connection internal queue contains more than 1 operation description";class _1 extends _c.TypedEventEmitter{constructor(Z,J){super();this.commandAsync=kc.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=J.id,this.address=bc(Z,J),this.socketTimeoutMS=J.socketTimeoutMS??0,this.monitorCommands=J.monitorCommands,this.serverApi=J.serverApi,this.closed=!1,this[LQ]=null,this[AQ]=null,this[g8]=new vc.StreamDescription(this.address,J),this[MQ]=J.generation,this[jQ]=i6.now(),this[M8]=new Map,this[v8]=new xc.MessageStream({...J,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[n1]=Z,this[NJ]=null,this[v8].on("message",($)=>this.onMessage($)),this[v8].on("error",($)=>this.onError($)),this[n1].on("close",()=>this.onClose()),this[n1].on("timeout",()=>this.onTimeout()),this[n1].on("error",()=>{}),this[n1].pipe(this[v8]),this[v8].pipe(this[n1])}get description(){return this[g8]}get hello(){return this[LQ]}set hello(Z){this[g8].receiveResponse(Z),this[g8]=Object.freeze(this[g8]),this[LQ]=Z}set isMonitoringConnection(Z){this[v8].isMonitoringConnection=Z}get isMonitoringConnection(){return this[v8].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[MQ]||0}set generation(Z){this[MQ]=Z}get idleTime(){return i6.calculateDurationInMs(this[jQ])}get clusterTime(){return this[AQ]}get stream(){return this[n1]}markAvailable(){this[jQ]=i6.now()}onError(Z){this.cleanup(!0,Z)}onClose(){const Z=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new f8.MongoNetworkError(Z))}onTimeout(){this[NJ]=QD.setTimeout(()=>{const Z=`connection ${this.id} to ${this.address} timed out`,J=this.hello==null;this.cleanup(!0,new f8.MongoNetworkTimeoutError(Z,{beforeHandshake:J}))},1).unref()}onMessage(Z){const J=this[NJ];if(J!=null)QD.clearTimeout(J),this[NJ]=null;const $=this[n1].timeout??0;this[n1].setTimeout(0),this.emit("message",Z);let X=this[M8].get(Z.responseTo);if(!X&&this.isMonitoringConnection)if(this[M8].size>1)this.cleanup(!0,new f8.MongoRuntimeError(fc));else{const Q=this[M8].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[M8].delete(K)}}if(!X)return;const Y=X.cb;if(this[M8].delete(Z.responseTo),"moreToCome"in Z&&Z.moreToCome)this[M8].set(Z.requestId,X),this[n1].setTimeout($);try{Z.parse(X)}catch(Q){Y(Q);return}if(Z.documents[0]){const Q=Z.documents[0],K=X.session;if(K)KD.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[AQ]=Q.$clusterTime,this.emit(_1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new f8.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new f8.MongoServerError(Q));return}}Y(void 0,Z.documents[0])}destroy(Z,J){if(this.closed){process.nextTick(()=>J?.());return}if(typeof J==="function")this.once("close",()=>process.nextTick(()=>J()));this.removeAllListeners(_1.PINNED),this.removeAllListeners(_1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(Z.force,new f8.MongoNetworkError($))}cleanup(Z,J){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[M8].values())X.cb(J);this[M8].clear(),this.emit(_1.CLOSE)};if(this[n1].removeAllListeners(),this[v8].removeAllListeners(),this[v8].destroy(),Z){this[n1].destroy(),$();return}if(!this[n1].writableEnded)this[n1].end(()=>{this[n1].destroy(),$()});else $()}command(Z,J,$,X){let Y={...J};const Q=qD.getReadPreference($),K=gc(this),G=$?.session;let q=this.clusterTime;if(this.serverApi){const{version:V,strict:j,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=V,j!=null)Y.apiStrict=j;if(U!=null)Y.apiDeprecationErrors=U}if(HD(this)&&G){if(G.clusterTime&&q&&G.clusterTime.clusterTime.greaterThan(q.clusterTime))q=G.clusterTime;const V=KD.applySession(G,Y,$);if(V)return X(V)}else if(G?.explicit)return X(new f8.MongoCompatibilityError("Current topology does not support sessions"));if(q)Y.$clusterTime=q;if(qD.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=`${Z.db}.\$cmd`,H=K?new GD.Msg(W,Y,F):new GD.Query(W,Y,F);try{mc(this,H,F,X)}catch(V){X(V)}}}_1.COMMAND_STARTED=s6.COMMAND_STARTED;_1.COMMAND_SUCCEEDED=s6.COMMAND_SUCCEEDED;_1.COMMAND_FAILED=s6.COMMAND_FAILED;_1.CLUSTER_TIME_RECEIVED=s6.CLUSTER_TIME_RECEIVED;_1.CLOSE=s6.CLOSE;_1.MESSAGE=s6.MESSAGE;_1.PINNED=s6.PINNED;_1.UNPINNED=s6.UNPINNED;zD.Connection=_1;class WD extends _1{constructor(Z,J){super(Z,J);this[FD]=J.autoEncrypter}command(Z,J,$,X){const Y=this[FD];if(!Y)return X(new f8.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=i6.maxWireVersion(this);if(Q===0)return super.command(Z,J,$,X);if(Q<8){X(new f8.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=J.find||J.findAndModify?J.sort:null,G=J.createIndexes?J.indexes.map((q)=>q.key):null;Y.encrypt(Z.toString(),J,$,(q,F)=>{if(q||F==null){X(q,null);return}if(K!=null&&(J.find||J.findAndModify))F.sort=K;if(G!=null&&J.createIndexes)for(let[W,H]of G.entries())F.indexes[W].key=H;super.command(Z,F,$,(W,H)=>{if(W||H==null){X(W,H);return}Y.decrypt(H,$,X)})})}}zD.CryptoConnection=WD;zD.hasSessionSupport=HD});var MD=z((UD)=>{var q9=function(Z){if(Z===4)return"ipv4";if(Z===6)return"ipv6";return Z?Z.toLowerCase():"ipv4"},x=UD,{Buffer:BJ}=import.meta.require("buffer"),pc=import.meta.require("os");x.toBuffer=function(Z,J,$){$=~~$;let X;if(this.isV4Format(Z))X=J||BJ.alloc($+4),Z.split(/\./g).map((Y)=>{X[$++]=parseInt(Y,10)&255});else if(this.isV6Format(Z)){const Y=Z.split(":",8);let Q;for(Q=0;Q<Y.length;Q++){const K=this.isV4Format(Y[Q]);let G;if(K)G=this.toBuffer(Y[Q]),Y[Q]=G.slice(0,2).toString("hex");if(G&&++Q<8)Y.splice(Q,0,G.slice(2,4).toString("hex"))}if(Y[0]==="")while(Y.length<8)Y.unshift("0");else if(Y[Y.length-1]==="")while(Y.length<8)Y.push("0");else if(Y.length<8){for(Q=0;Q<Y.length&&Y[Q]!=="";Q++);const K=[Q,1];for(Q=9-Y.length;Q>0;Q--)K.push("0");Y.splice(...K)}X=J||BJ.alloc($+16);for(Q=0;Q<Y.length;Q++){const K=parseInt(Y[Q],16);X[$++]=K>>8&255,X[$++]=K&255}}if(!X)throw Error(`Invalid ip address: ${Z}`);return X};x.toString=function(Z,J,$){J=~~J,$=$||Z.length-J;let X=[];if($===4){for(let Y=0;Y<$;Y++)X.push(Z[J+Y]);X=X.join(".")}else if($===16){for(let Y=0;Y<$;Y+=2)X.push(Z.readUInt16BE(J+Y).toString(16));X=X.join(":"),X=X.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),X=X.replace(/:{3,4}/,"::")}return X};var cc=/^(\d{1,3}\.){3,3}\d{1,3}$/,lc=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;x.isV4Format=function(Z){return cc.test(Z)};x.isV6Format=function(Z){return lc.test(Z)};x.fromPrefixLen=function(Z,J){if(Z>32)J="ipv6";else J=q9(J);let $=4;if(J==="ipv6")$=16;const X=BJ.alloc($);for(let Y=0,Q=X.length;Y<Q;++Y){let K=8;if(Z<8)K=Z;Z-=K,X[Y]=~(255>>K)&255}return x.toString(X)};x.mask=function(Z,J){Z=x.toBuffer(Z),J=x.toBuffer(J);const $=BJ.alloc(Math.max(Z.length,J.length));let X;if(Z.length===J.length)for(X=0;X<Z.length;X++)$[X]=Z[X]&J[X];else if(J.length===4)for(X=0;X<J.length;X++)$[X]=Z[Z.length-4+X]&J[X];else{for(X=0;X<$.length-6;X++)$[X]=0;$[10]=255,$[11]=255;for(X=0;X<Z.length;X++)$[X+12]=Z[X]&J[X+12];X+=12}for(;X<$.length;X++)$[X]=0;return x.toString($)};x.cidr=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.mask($,X)};x.subnet=function(Z,J){const $=x.toLong(x.mask(Z,J)),X=x.toBuffer(J);let Y=0;for(let K=0;K<X.length;K++)if(X[K]===255)Y+=8;else{let G=X[K]&255;while(G)G=G<<1&255,Y++}const Q=2**(32-Y);return{networkAddress:x.fromLong($),firstAddress:Q<=2?x.fromLong($):x.fromLong($+1),lastAddress:Q<=2?x.fromLong($+Q-1):x.fromLong($+Q-2),broadcastAddress:x.fromLong($+Q-1),subnetMask:J,subnetMaskLength:Y,numHosts:Q<=2?Q:Q-2,length:Q,contains(K){return $===x.toLong(x.mask(K,J))}}};x.cidrSubnet=function(Z){const J=Z.split("/"),$=J[0];if(J.length!==2)throw new Error(`invalid CIDR subnet: ${$}`);const X=x.fromPrefixLen(parseInt(J[1],10));return x.subnet($,X)};x.not=function(Z){const J=x.toBuffer(Z);for(let $=0;$<J.length;$++)J[$]=255^J[$];return x.toString(J)};x.or=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let Q=0;Q<Z.length;++Q)Z[Q]|=J[Q];return x.toString(Z)}let $=Z,X=J;if(J.length>Z.length)$=J,X=Z;const Y=$.length-X.length;for(let Q=Y;Q<$.length;++Q)$[Q]|=X[Q-Y];return x.toString($)};x.isEqual=function(Z,J){if(Z=x.toBuffer(Z),J=x.toBuffer(J),Z.length===J.length){for(let X=0;X<Z.length;X++)if(Z[X]!==J[X])return!1;return!0}if(J.length===4){const X=J;J=Z,Z=X}for(let X=0;X<10;X++)if(J[X]!==0)return!1;const $=J.readUInt16BE(10);if($!==0&&$!==65535)return!1;for(let X=0;X<4;X++)if(Z[X]!==J[X+12])return!1;return!0};x.isPrivate=function(Z){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(Z)||/^f[cd][0-9a-f]{2}:/i.test(Z)||/^fe80:/i.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.isPublic=function(Z){return!x.isPrivate(Z)};x.isLoopback=function(Z){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(Z)||/^fe80::1$/.test(Z)||/^::1$/.test(Z)||/^::$/.test(Z)};x.loopback=function(Z){if(Z=q9(Z),Z!=="ipv4"&&Z!=="ipv6")throw new Error("family must be ipv4 or ipv6");return Z==="ipv4"?"127.0.0.1":"fe80::1"};x.address=function(Z,J){const $=pc.networkInterfaces();if(J=q9(J),Z&&Z!=="private"&&Z!=="public"){const Y=$[Z].filter((Q)=>{return q9(Q.family)===J});if(Y.length===0)return;return Y[0].address}const X=Object.keys($).map((Y)=>{const Q=$[Y].filter((K)=>{if(K.family=q9(K.family),K.family!==J||x.isLoopback(K.address))return!1;if(!Z)return!0;return Z==="public"?x.isPrivate(K.address):x.isPublic(K.address)});return Q.length?Q[0].address:void 0}).filter(Boolean);return!X.length?x.loopback(J):X[0]};x.toLong=function(Z){let J=0;return Z.split(".").forEach(($)=>{J<<=8,J+=parseInt($)}),J>>>0};x.fromLong=function(Z){return`${Z>>>24}.${Z>>16&255}.${Z>>8&255}.${Z&255}`}});var RD=z((wD)=>{var ac=function(Z){if(!jD.Buffer.isEncoding(Z))throw new Error(N4.INVALID_ENCODING)},AD=function(Z){return typeof Z==="number"&&isFinite(Z)&&tc(Z)},LD=function(Z,J){if(typeof Z==="number"){if(!AD(Z)||Z<0)throw new Error(J?N4.INVALID_OFFSET:N4.INVALID_LENGTH)}else throw new Error(J?N4.INVALID_OFFSET_NON_NUMBER:N4.INVALID_LENGTH_NON_NUMBER)},ic=function(Z){LD(Z,!1)},sc=function(Z){LD(Z,!0)},nc=function(Z,J){if(Z<0||Z>J.length)throw new Error(N4.INVALID_TARGET_OFFSET)},tc=function(Z){return typeof Z==="number"&&isFinite(Z)&&Math.floor(Z)===Z},rc=function(Z){if(typeof BigInt==="undefined")throw new Error("Platform does not support JS BigInt type.");if(typeof jD.Buffer.prototype[Z]==="undefined")throw new Error(`Platform does not support Buffer.prototype.${Z}.`)};Object.defineProperty(wD,"__esModule",{value:!0});var jD=import.meta.require("buffer"),N4={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."};wD.ERRORS=N4;wD.checkEncoding=ac;wD.isFiniteInteger=AD;wD.checkLengthValue=ic;wD.checkOffsetValue=sc;wD.checkTargetOffset=nc;wD.bigIntAndBufferInt64Check=rc});var TD=z((DD)=>{Object.defineProperty(DD,"__esModule",{value:!0});var c=RD(),PD=4096,Ql="utf8";class wQ{constructor(Z){if(this.length=0,this._encoding=Ql,this._writeOffset=0,this._readOffset=0,wQ.isSmartBufferOptions(Z)){if(Z.encoding)c.checkEncoding(Z.encoding),this._encoding=Z.encoding;if(Z.size)if(c.isFiniteInteger(Z.size)&&Z.size>0)this._buff=Buffer.allocUnsafe(Z.size);else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(Z.buff)if(Buffer.isBuffer(Z.buff))this._buff=Z.buff,this.length=Z.buff.length;else throw new Error(c.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(PD)}else{if(typeof Z!=="undefined")throw new Error(c.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(PD)}}static fromSize(Z,J){return new this({size:Z,encoding:J})}static fromBuffer(Z,J){return new this({buff:Z,encoding:J})}static fromOptions(Z){return new this(Z)}static isSmartBufferOptions(Z){const J=Z;return J&&(J.encoding!==void 0||J.size!==void 0||J.buff!==void 0)}readInt8(Z){return this._readNumberValue(Buffer.prototype.readInt8,1,Z)}readInt16BE(Z){return this._readNumberValue(Buffer.prototype.readInt16BE,2,Z)}readInt16LE(Z){return this._readNumberValue(Buffer.prototype.readInt16LE,2,Z)}readInt32BE(Z){return this._readNumberValue(Buffer.prototype.readInt32BE,4,Z)}readInt32LE(Z){return this._readNumberValue(Buffer.prototype.readInt32LE,4,Z)}readBigInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,Z)}readBigInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,Z)}writeInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt8,1,Z,J),this}insertInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt8,1,Z,J)}writeInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}insertInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,Z,J)}writeInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}insertInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,Z,J)}writeInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}insertInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,Z,J)}writeInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}insertInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,Z,J)}writeBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}insertBigInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,Z,J)}writeBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}insertBigInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,Z,J)}readUInt8(Z){return this._readNumberValue(Buffer.prototype.readUInt8,1,Z)}readUInt16BE(Z){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,Z)}readUInt16LE(Z){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,Z)}readUInt32BE(Z){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,Z)}readUInt32LE(Z){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,Z)}readBigUInt64BE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,Z)}readBigUInt64LE(Z){return c.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,Z)}writeUInt8(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}insertUInt8(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,Z,J)}writeUInt16BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}insertUInt16BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,Z,J)}writeUInt16LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}insertUInt16LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,Z,J)}writeUInt32BE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}insertUInt32BE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,Z,J)}writeUInt32LE(Z,J){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}insertUInt32LE(Z,J){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,Z,J)}writeBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}insertBigUInt64BE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,Z,J)}writeBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}insertBigUInt64LE(Z,J){return c.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,Z,J)}readFloatBE(Z){return this._readNumberValue(Buffer.prototype.readFloatBE,4,Z)}readFloatLE(Z){return this._readNumberValue(Buffer.prototype.readFloatLE,4,Z)}writeFloatBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}insertFloatBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,Z,J)}writeFloatLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}insertFloatLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,Z,J)}readDoubleBE(Z){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,Z)}readDoubleLE(Z){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,Z)}writeDoubleBE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}insertDoubleBE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,Z,J)}writeDoubleLE(Z,J){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}insertDoubleLE(Z,J){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,Z,J)}readString(Z,J){let $;if(typeof Z==="number")c.checkLengthValue(Z),$=Math.min(Z,this.length-this._readOffset);else J=Z,$=this.length-this._readOffset;if(typeof J!=="undefined")c.checkEncoding(J);const X=this._buff.slice(this._readOffset,this._readOffset+$).toString(J||this._encoding);return this._readOffset+=$,X}insertString(Z,J,$){return c.checkOffsetValue(J),this._handleString(Z,!0,J,$)}writeString(Z,J,$){return this._handleString(Z,!1,J,$)}readStringNT(Z){if(typeof Z!=="undefined")c.checkEncoding(Z);let J=this.length;for(let X=this._readOffset;X<this.length;X++)if(this._buff[X]===0){J=X;break}const $=this._buff.slice(this._readOffset,J);return this._readOffset=J+1,$.toString(Z||this._encoding)}insertStringNT(Z,J,$){return c.checkOffsetValue(J),this.insertString(Z,J,$),this.insertUInt8(0,J+Z.length),this}writeStringNT(Z,J,$){return this.writeString(Z,J,$),this.writeUInt8(0,typeof J==="number"?J+Z.length:this.writeOffset),this}readBuffer(Z){if(typeof Z!=="undefined")c.checkLengthValue(Z);const J=typeof Z==="number"?Z:this.length,$=Math.min(this.length,this._readOffset+J),X=this._buff.slice(this._readOffset,$);return this._readOffset=$,X}insertBuffer(Z,J){return c.checkOffsetValue(J),this._handleBuffer(Z,!0,J)}writeBuffer(Z,J){return this._handleBuffer(Z,!1,J)}readBufferNT(){let Z=this.length;for(let $=this._readOffset;$<this.length;$++)if(this._buff[$]===0){Z=$;break}const J=this._buff.slice(this._readOffset,Z);return this._readOffset=Z+1,J}insertBufferNT(Z,J){return c.checkOffsetValue(J),this.insertBuffer(Z,J),this.insertUInt8(0,J+Z.length),this}writeBufferNT(Z,J){if(typeof J!=="undefined")c.checkOffsetValue(J);return this.writeBuffer(Z,J),this.writeUInt8(0,typeof J==="number"?J+Z.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(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._readOffset=Z}get writeOffset(){return this._writeOffset}set writeOffset(Z){c.checkOffsetValue(Z),c.checkTargetOffset(Z,this),this._writeOffset=Z}get encoding(){return this._encoding}set encoding(Z){c.checkEncoding(Z),this._encoding=Z}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(Z){const J=typeof Z==="string"?Z:this._encoding;return c.checkEncoding(J),this._buff.toString(J,0,this.length)}destroy(){return this.clear(),this}_handleString(Z,J,$,X){let Y=this._writeOffset,Q=this._encoding;if(typeof $==="number")Y=$;else if(typeof $==="string")c.checkEncoding($),Q=$;if(typeof X==="string")c.checkEncoding(X),Q=X;const K=Buffer.byteLength(Z,Q);if(J)this.ensureInsertable(K,Y);else this._ensureWriteable(K,Y);if(this._buff.write(Z,Y,K,Q),J)this._writeOffset+=K;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,Y+K);else this._writeOffset+=K;return this}_handleBuffer(Z,J,$){const X=typeof $==="number"?$:this._writeOffset;if(J)this.ensureInsertable(Z.length,X);else this._ensureWriteable(Z.length,X);if(Z.copy(this._buff,X),J)this._writeOffset+=Z.length;else if(typeof $==="number")this._writeOffset=Math.max(this._writeOffset,X+Z.length);else this._writeOffset+=Z.length;return this}ensureReadable(Z,J){let $=this._readOffset;if(typeof J!=="undefined")c.checkOffsetValue(J),$=J;if($<0||$+Z>this.length)throw new Error(c.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(Z,J){if(c.checkOffsetValue(J),this._ensureCapacity(this.length+Z),J<this.length)this._buff.copy(this._buff,J+Z,J,this._buff.length);if(J+Z>this.length)this.length=J+Z;else this.length+=Z}_ensureWriteable(Z,J){const $=typeof J==="number"?J:this._writeOffset;if(this._ensureCapacity($+Z),$+Z>this.length)this.length=$+Z}_ensureCapacity(Z){const J=this._buff.length;if(Z>J){let $=this._buff,X=J*3/2+1;if(X<Z)X=Z;this._buff=Buffer.allocUnsafe(X),$.copy(this._buff,0,0,J)}}_readNumberValue(Z,J,$){this.ensureReadable(J,$);const X=Z.call(this._buff,typeof $==="number"?$:this._readOffset);if(typeof $==="undefined")this._readOffset+=J;return X}_insertNumberValue(Z,J,$,X){return c.checkOffsetValue(X),this.ensureInsertable(J,X),Z.call(this._buff,$,X),this._writeOffset+=J,this}_writeNumberValue(Z,J,$,X){if(typeof X==="number"){if(X<0)throw new Error(c.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);c.checkOffsetValue(X)}const Y=typeof X==="number"?X:this._writeOffset;if(this._ensureWriteable(J,Y),Z.call(this._buff,$,Y),typeof X==="number")this._writeOffset=Math.max(this._writeOffset,Y+J);else this._writeOffset+=J;return this}}DD.SmartBuffer=wQ});var NQ=z((ID)=>{Object.defineProperty(ID,"__esModule",{value:!0});ID.SOCKS5_NO_ACCEPTABLE_AUTH=ID.SOCKS5_CUSTOM_AUTH_END=ID.SOCKS5_CUSTOM_AUTH_START=ID.SOCKS_INCOMING_PACKET_SIZES=ID.SocksClientState=ID.Socks5Response=ID.Socks5HostType=ID.Socks5Auth=ID.Socks4Response=ID.SocksCommand=ID.ERRORS=ID.DEFAULT_TIMEOUT=void 0;var Gl=30000;ID.DEFAULT_TIMEOUT=Gl;var ql={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"};ID.ERRORS=ql;var Fl={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:(Z)=>Z+7,Socks4Response:8};ID.SOCKS_INCOMING_PACKET_SIZES=Fl;var RQ;(function(Z){Z[Z.connect=1]="connect",Z[Z.bind=2]="bind",Z[Z.associate=3]="associate"})(RQ||(RQ={}));ID.SocksCommand=RQ;var PQ;(function(Z){Z[Z.Granted=90]="Granted",Z[Z.Failed=91]="Failed",Z[Z.Rejected=92]="Rejected",Z[Z.RejectedIdent=93]="RejectedIdent"})(PQ||(PQ={}));ID.Socks4Response=PQ;var DQ;(function(Z){Z[Z.NoAuth=0]="NoAuth",Z[Z.GSSApi=1]="GSSApi",Z[Z.UserPass=2]="UserPass"})(DQ||(DQ={}));ID.Socks5Auth=DQ;var Wl=128;ID.SOCKS5_CUSTOM_AUTH_START=Wl;var Hl=254;ID.SOCKS5_CUSTOM_AUTH_END=Hl;var zl=255;ID.SOCKS5_NO_ACCEPTABLE_AUTH=zl;var TQ;(function(Z){Z[Z.Granted=0]="Granted",Z[Z.Failure=1]="Failure",Z[Z.NotAllowed=2]="NotAllowed",Z[Z.NetworkUnreachable=3]="NetworkUnreachable",Z[Z.HostUnreachable=4]="HostUnreachable",Z[Z.ConnectionRefused=5]="ConnectionRefused",Z[Z.TTLExpired=6]="TTLExpired",Z[Z.CommandNotSupported=7]="CommandNotSupported",Z[Z.AddressNotSupported=8]="AddressNotSupported"})(TQ||(TQ={}));ID.Socks5Response=TQ;var IQ;(function(Z){Z[Z.IPv4=1]="IPv4",Z[Z.Hostname=3]="Hostname",Z[Z.IPv6=4]="IPv6"})(IQ||(IQ={}));ID.Socks5HostType=IQ;var EQ;(function(Z){Z[Z.Created=0]="Created",Z[Z.Connecting=1]="Connecting",Z[Z.Connected=2]="Connected",Z[Z.SentInitialHandshake=3]="SentInitialHandshake",Z[Z.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",Z[Z.SentAuthentication=5]="SentAuthentication",Z[Z.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",Z[Z.SentFinalHandshake=7]="SentFinalHandshake",Z[Z.ReceivedFinalResponse=8]="ReceivedFinalResponse",Z[Z.BoundWaitingForConnection=9]="BoundWaitingForConnection",Z[Z.Established=10]="Established",Z[Z.Disconnected=11]="Disconnected",Z[Z.Error=99]="Error"})(EQ||(EQ={}));ID.SocksClientState=EQ});var BQ=z((BD)=>{var Il=function(Z){for(let J=Z.length-1;J>0;J--){const $=Math.floor(Math.random()*(J+1));[Z[J],Z[$]]=[Z[$],Z[J]]}};Object.defineProperty(BD,"__esModule",{value:!0});BD.shuffleArray=BD.SocksClientError=void 0;class ND extends Error{constructor(Z,J){super(Z);this.options=J}}BD.SocksClientError=ND;BD.shuffleArray=Il});var xD=z((kD)=>{var Bl=function(Z,J=["connect","bind","associate"]){if(!m1.SocksCommand[Z.command])throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommand,Z);if(J.indexOf(Z.command)===-1)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandForOperation,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!SD(Z.proxy))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);if(hD(Z.proxy,Z),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z);if(Z.existing_socket&&!(Z.existing_socket instanceof Nl.Duplex))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsExistingSocket,Z)},Cl=function(Z){if(Z.command!=="connect")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksCommandChain,Z);if(!OD(Z.destination))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsDestination,Z);if(!(Z.proxies&&Array.isArray(Z.proxies)&&Z.proxies.length>=2))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxiesLength,Z);if(Z.proxies.forEach((J)=>{if(!SD(J))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsProxy,Z);hD(J,Z)}),Z.timeout&&!yD(Z.timeout))throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsTimeout,Z)},hD=function(Z,J){if(Z.custom_auth_method!==void 0){if(Z.custom_auth_method<m1.SOCKS5_CUSTOM_AUTH_START||Z.custom_auth_method>m1.SOCKS5_CUSTOM_AUTH_END)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthRange,J);if(Z.custom_auth_request_handler===void 0||typeof Z.custom_auth_request_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_size===void 0)throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J);if(Z.custom_auth_response_handler===void 0||typeof Z.custom_auth_response_handler!=="function")throw new z0.SocksClientError(m1.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,J)}},OD=function(Z){return Z&&typeof Z.host==="string"&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535},SD=function(Z){return Z&&(typeof Z.host==="string"||typeof Z.ipaddress==="string")&&typeof Z.port==="number"&&Z.port>=0&&Z.port<=65535&&(Z.type===4||Z.type===5)},yD=function(Z){return typeof Z==="number"&&Z>0};Object.defineProperty(kD,"__esModule",{value:!0});kD.validateSocksClientChainOptions=kD.validateSocksClientOptions=void 0;var z0=BQ(),m1=NQ(),Nl=import.meta.require("stream");kD.validateSocksClientOptions=Bl;kD.validateSocksClientChainOptions=Cl});var bD=z((fD)=>{Object.defineProperty(fD,"__esModule",{value:!0});fD.ReceiveBuffer=void 0;class vD{constructor(Z=4096){this.buffer=Buffer.allocUnsafe(Z),this.offset=0,this.originalSize=Z}get length(){return this.offset}append(Z){if(!Buffer.isBuffer(Z))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+Z.length>=this.buffer.length){const J=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+Z.length)),J.copy(this.buffer)}return Z.copy(this.buffer,this.offset),this.offset+=Z.length}peek(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,Z)}get(Z){if(Z>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const J=Buffer.allocUnsafe(Z);return this.buffer.slice(0,Z).copy(J),this.buffer.copyWithin(0,Z,Z+this.offset-Z),this.offset-=Z,J}}fD.ReceiveBuffer=vD});var mD=z((n6)=>{var C7=n6&&n6.__awaiter||function(Z,J,$,X){function Y(Q){return Q instanceof $?Q:new $(function(K){K(Q)})}return new($||($=Promise))(function(Q,K){function G(W){try{F(X.next(W))}catch(H){K(H)}}function q(W){try{F(X.throw(W))}catch(H){K(H)}}function F(W){W.done?Q(W.value):Y(W.value).then(G,q)}F((X=X.apply(Z,J||[])).next())})};Object.defineProperty(n6,"__esModule",{value:!0});n6.SocksClientError=n6.SocksClient=void 0;var Ol=import.meta.require("events"),h7=import.meta.require("net"),k0=MD(),R0=TD(),I=NQ(),CQ=xD(),Sl=bD(),hQ=BQ();Object.defineProperty(n6,"SocksClientError",{enumerable:!0,get:function(){return hQ.SocksClientError}});class CJ extends Ol.EventEmitter{constructor(Z){super();this.options=Object.assign({},Z),CQ.validateSocksClientOptions(Z),this.setState(I.SocksClientState.Created)}static createConnection(Z,J){return new Promise(($,X)=>{try{CQ.validateSocksClientOptions(Z,["connect"])}catch(Q){if(typeof J==="function")return J(Q),$(Q);else return X(Q)}const Y=new CJ(Z);Y.connect(Z.existing_socket),Y.once("established",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(null,Q),$(Q);else $(Q)}),Y.once("error",(Q)=>{if(Y.removeAllListeners(),typeof J==="function")J(Q),$(Q);else X(Q)})})}static createConnectionChain(Z,J){return new Promise(($,X)=>C7(this,void 0,void 0,function*(){try{CQ.validateSocksClientChainOptions(Z)}catch(Y){if(typeof J==="function")return J(Y),$(Y);else return X(Y)}if(Z.randomizeChain)hQ.shuffleArray(Z.proxies);try{let Y;for(let Q=0;Q<Z.proxies.length;Q++){const K=Z.proxies[Q],G=Q===Z.proxies.length-1?Z.destination:{host:Z.proxies[Q+1].host||Z.proxies[Q+1].ipaddress,port:Z.proxies[Q+1].port},q=yield CJ.createConnection({command:"connect",proxy:K,destination:G,existing_socket:Y});Y=Y||q.socket}if(typeof J==="function")J(null,{socket:Y}),$({socket:Y});else $({socket:Y})}catch(Y){if(typeof J==="function")J(Y),$(Y);else X(Y)}}))}static createUDPFrame(Z){const J=new R0.SmartBuffer;if(J.writeUInt16BE(0),J.writeUInt8(Z.frameNumber||0),h7.isIPv4(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv4),J.writeUInt32BE(k0.toLong(Z.remoteHost.host));else if(h7.isIPv6(Z.remoteHost.host))J.writeUInt8(I.Socks5HostType.IPv6),J.writeBuffer(k0.toBuffer(Z.remoteHost.host));else J.writeUInt8(I.Socks5HostType.Hostname),J.writeUInt8(Buffer.byteLength(Z.remoteHost.host)),J.writeString(Z.remoteHost.host);return J.writeUInt16BE(Z.remoteHost.port),J.writeBuffer(Z.data),J.toBuffer()}static parseUDPFrame(Z){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $=J.readUInt8(),X=J.readUInt8();let Y;if(X===I.Socks5HostType.IPv4)Y=k0.fromLong(J.readUInt32BE());else if(X===I.Socks5HostType.IPv6)Y=k0.toString(J.readBuffer(16));else Y=J.readString(J.readUInt8());const Q=J.readUInt16BE();return{frameNumber:$,remoteHost:{host:Y,port:Q},data:J.readBuffer()}}setState(Z){if(this.state!==I.SocksClientState.Error)this.state=Z}connect(Z){this.onDataReceived=($)=>this.onDataReceivedHandler($),this.onClose=()=>this.onCloseHandler(),this.onError=($)=>this.onErrorHandler($),this.onConnect=()=>this.onConnectHandler();const J=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||I.DEFAULT_TIMEOUT);if(J.unref&&typeof J.unref==="function")J.unref();if(Z)this.socket=Z;else this.socket=new h7.Socket;if(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(I.SocksClientState.Connecting),this.receiveBuffer=new Sl.ReceiveBuffer,Z)this.socket.emit("connect");else if(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null)this.socket.setNoDelay(!!this.options.set_tcp_nodelay);this.prependOnceListener("established",($)=>{setImmediate(()=>{if(this.receiveBuffer.length>0){const X=this.receiveBuffer.get(this.receiveBuffer.length);$.socket.emit("data",X)}$.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(){if(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.BoundWaitingForConnection)this.closeSocket(I.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){if(this.setState(I.SocksClientState.Connected),this.options.proxy.type===4)this.sendSocks4InitialHandshake();else this.sendSocks5InitialHandshake();this.setState(I.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(Z){this.receiveBuffer.append(Z),this.processData()}processData(){while(this.state!==I.SocksClientState.Established&&this.state!==I.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize)if(this.state===I.SocksClientState.SentInitialHandshake)if(this.options.proxy.type===4)this.handleSocks4FinalHandshakeResponse();else this.handleInitialSocks5HandshakeResponse();else if(this.state===I.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===I.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===I.SocksClientState.BoundWaitingForConnection)if(this.options.proxy.type===4)this.handleSocks4IncomingConnectionResponse();else this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(I.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(I.ERRORS.SocketClosed)}onErrorHandler(Z){this.closeSocket(Z.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(Z){if(this.state!==I.SocksClientState.Error)this.setState(I.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new hQ.SocksClientError(Z,this.options))}sendSocks4InitialHandshake(){const Z=this.options.proxy.userId||"",J=new R0.SmartBuffer;if(J.writeUInt8(4),J.writeUInt8(I.SocksCommand[this.options.command]),J.writeUInt16BE(this.options.destination.port),h7.isIPv4(this.options.destination.host))J.writeBuffer(k0.toBuffer(this.options.destination.host)),J.writeStringNT(Z);else J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(0),J.writeUInt8(1),J.writeStringNT(Z),J.writeStringNT(this.options.destination.host);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(J.toBuffer())}handleSocks4FinalHandshakeResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedConnection} - (${I.Socks4Response[Z[1]]})`);else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind){const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};if($.host==="0.0.0.0")$.host=this.options.proxy.ipaddress;this.setState(I.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:$,socket:this.socket})}else this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const Z=this.receiveBuffer.get(8);if(Z[1]!==I.Socks4Response.Granted)this.closeSocket(`${I.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${I.Socks4Response[Z[1]]})`);else{const J=R0.SmartBuffer.fromBuffer(Z);J.readOffset=2;const $={port:J.readUInt16BE(),host:k0.fromLong(J.readUInt32BE())};this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}sendSocks5InitialHandshake(){const Z=new R0.SmartBuffer,J=[I.Socks5Auth.NoAuth];if(this.options.proxy.userId||this.options.proxy.password)J.push(I.Socks5Auth.UserPass);if(this.options.proxy.custom_auth_method!==void 0)J.push(this.options.proxy.custom_auth_method);Z.writeUInt8(5),Z.writeUInt8(J.length);for(let $ of J)Z.writeUInt8($);this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const Z=this.receiveBuffer.get(2);if(Z[0]!==5)this.closeSocket(I.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion);else if(Z[1]===I.SOCKS5_NO_ACCEPTABLE_AUTH)this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType);else if(Z[1]===I.Socks5Auth.NoAuth)this.socks5ChosenAuthType=I.Socks5Auth.NoAuth,this.sendSocks5CommandRequest();else if(Z[1]===I.Socks5Auth.UserPass)this.socks5ChosenAuthType=I.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication();else if(Z[1]===this.options.proxy.custom_auth_method)this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication();else this.closeSocket(I.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const Z=this.options.proxy.userId||"",J=this.options.proxy.password||"",$=new R0.SmartBuffer;$.writeUInt8(1),$.writeUInt8(Buffer.byteLength(Z)),$.writeString(Z),$.writeUInt8(Buffer.byteLength(J)),$.writeString(J),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write($.toBuffer()),this.setState(I.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return C7(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(I.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(Z)})}handleSocks5AuthenticationNoAuthHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(Z){return C7(this,void 0,void 0,function*(){return Z[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return C7(this,void 0,void 0,function*(){this.setState(I.SocksClientState.ReceivedAuthenticationResponse);let Z=!1;if(this.socks5ChosenAuthType===I.Socks5Auth.NoAuth)Z=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===I.Socks5Auth.UserPass)Z=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2));else if(this.socks5ChosenAuthType===this.options.proxy.custom_auth_method)Z=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size));if(!Z)this.closeSocket(I.ERRORS.Socks5AuthenticationFailed);else this.sendSocks5CommandRequest()})}sendSocks5CommandRequest(){const Z=new R0.SmartBuffer;if(Z.writeUInt8(5),Z.writeUInt8(I.SocksCommand[this.options.command]),Z.writeUInt8(0),h7.isIPv4(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv4),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else if(h7.isIPv6(this.options.destination.host))Z.writeUInt8(I.Socks5HostType.IPv6),Z.writeBuffer(k0.toBuffer(this.options.destination.host));else Z.writeUInt8(I.Socks5HostType.Hostname),Z.writeUInt8(this.options.destination.host.length),Z.writeString(this.options.destination.host);Z.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(Z.toBuffer()),this.setState(I.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}if(this.setState(I.SocksClientState.ReceivedFinalResponse),I.SocksCommand[this.options.command]===I.SocksCommand.connect)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.bind)this.setState(I.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:$,socket:this.socket});else if(I.SocksCommand[this.options.command]===I.SocksCommand.associate)this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}handleSocks5IncomingConnectionResponse(){const Z=this.receiveBuffer.peek(5);if(Z[0]!==5||Z[1]!==I.Socks5Response.Granted)this.closeSocket(`${I.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${I.Socks5Response[Z[1]]}`);else{const J=Z[3];let $,X;if(J===I.Socks5HostType.IPv4){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}if(X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.fromLong(X.readUInt32BE()),port:X.readUInt16BE()},$.host==="0.0.0.0")$.host=this.options.proxy.ipaddress}else if(J===I.Socks5HostType.Hostname){const Y=Z[4],Q=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(Y);if(this.receiveBuffer.length<Q){this.nextRequiredPacketBufferSize=Q;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Q).slice(5)),$={host:X.readString(Y),port:X.readUInt16BE()}}else if(J===I.Socks5HostType.IPv6){const Y=I.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<Y){this.nextRequiredPacketBufferSize=Y;return}X=R0.SmartBuffer.fromBuffer(this.receiveBuffer.get(Y).slice(4)),$={host:k0.toString(X.readBuffer(16)),port:X.readUInt16BE()}}this.setState(I.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:$,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}n6.SocksClient=CJ});var uD=z((B4)=>{var yl=B4&&B4.__createBinding||(Object.create?function(Z,J,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(J,$);if(!Y||("get"in Y?!J.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return J[$]}};Object.defineProperty(Z,X,Y)}:function(Z,J,$,X){if(X===void 0)X=$;Z[X]=J[$]}),kl=B4&&B4.__exportStar||function(Z,J){for(var $ in Z)if($!=="default"&&!Object.prototype.hasOwnProperty.call(J,$))yl(J,Z,$)};Object.defineProperty(B4,"__esModule",{value:!0});kl(mD(),B4)});var iD=z((lD)=>{Object.defineProperty(lD,"__esModule",{value:!0});lD.MongoCR=void 0;var dD=import.meta.require("crypto"),_l=h(),pD=_(),xl=G6();class cD extends xl.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new _l.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await J.commandAsync(pD.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=dD.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),q=dD.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),F={authenticate:1,user:X,nonce:K,key:q};await J.commandAsync(pD.ns(`${Q}.\$cmd`),F,void 0)}}lD.MongoCR=cD});var rD=z((nD)=>{async function cl(Z){function J($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new C4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new bl.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:Z.source,mechanism:ml.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(t6.credentialProvider??(t6.credentialProvider=hJ.getAwsCredentialProvider()),"kModuleError"in t6.credentialProvider){if(OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return J(await H6.request(`${pl}${OQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await H6.request(`${yQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await H6.request(`${yQ}/${sD}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await H6.request(`${yQ}/${sD}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return J(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=OQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!ul.has(X),K=Y&&Q?t6.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):t6.credentialProvider.fromNodeProviderChain();try{const G=await K();return J({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new C4.MongoAWSError(G.message)}}}var ll=function(Z){const J=Z.split(".");if(J.length===1||J[1]==="amazonaws")return"us-east-1";return J[1]};Object.defineProperty(nD,"__esModule",{value:!0});nD.MongoDBAWS=void 0;var vl=import.meta.require("crypto"),OQ=import.meta.require("process"),fl=import.meta.require("util"),SQ=D1(),hJ=j7(),C4=h(),H6=_(),gl=G6(),bl=JJ(),ml=k8(),ul=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),dl=110,pl="http://169.254.170.2",yQ="http://169.254.169.254",sD="/latest/meta-data/iam/security-credentials",kQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class t6 extends gl.AuthProvider{constructor(){super();this.randomBytesAsync=fl.promisify(vl.randomBytes)}async auth(Z){const{connection:J}=Z;if(!Z.credentials)throw new C4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in hJ.aws4)throw hJ.aws4.kModuleError;const{sign:$}=hJ.aws4;if(H6.maxWireVersion(J)<9)throw new C4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!Z.credentials.username)Z.credentials=await cl(Z.credentials);const{credentials:X}=Z,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,q=X.source,F=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:SQ.serialize({r:F,p:dl},kQ)},H=await J.commandAsync(H6.ns(`${q}.\$cmd`),W,void 0),V=SQ.deserialize(H.payload.buffer,kQ),j=V.h,U=V.s.buffer;if(U.length!==64)throw new C4.MongoRuntimeError(`Invalid server nonce length ${U.length}, expected 64`);if(!H6.ByteUtils.equals(U.subarray(0,F.byteLength),F))throw new C4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new C4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const L="Action=GetCallerIdentity&Version=2011-06-15",D=$({method:"POST",host:j,region:ll(V.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":L.length,"X-MongoDB-Server-Nonce":H6.ByteUtils.toBase64(U),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:L},G),B={a:D.headers.Authorization,d:D.headers["X-Amz-Date"]};if(K)B.t=K;const w={saslContinue:1,conversationId:1,payload:SQ.serialize(B,kQ)};await J.commandAsync(H6.ns(`${q}.\$cmd`),w,void 0)}}t6.credentialProvider=null;nD.MongoDBAWS=t6});var xQ=z((eD)=>{var _Q=function(Z){return{saslStart:1,mechanism:sl.AuthMechanism.MONGODB_OIDC,payload:al.BSON.serialize({jwt:Z})}};Object.defineProperty(eD,"__esModule",{value:!0});eD.commandDocument=eD.ServiceWorkflow=void 0;var al=H5(),il=_(),sl=k8();class oD{async execute(Z,J){const $=await this.getToken(J),X=_Q($);return Z.commandAsync(il.ns(J.source),X,void 0)}async speculativeAuth(Z){const J=await this.getToken(Z),$=_Q(J);return $.db=Z.source,{speculativeAuthenticate:$}}}eD.ServiceWorkflow=oD;eD.commandDocument=_Q});var YT=z(($T)=>{Object.defineProperty($T,"__esModule",{value:!0});$T.AwsServiceWorkflow=void 0;var tl=import.meta.require("fs"),rl=h(),ol=xQ(),el="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class JT extends ol.ServiceWorkflow{constructor(){super()}async getToken(){const Z=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!Z)throw new rl.MongoAWSError(el);return tl.promises.readFile(Z,"utf8")}}$T.AwsServiceWorkflow=JT});var OJ=z((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});GT.Cache=GT.ExpiringCacheEntry=void 0;var Za=300000;class QT{constructor(Z){this.expiration=this.expirationTime(Z)}isValid(){return this.expiration-Date.now()>Za}expirationTime(Z){return Date.now()+Z*1000}}GT.ExpiringCacheEntry=QT;class KT{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(Z,J,$){return JSON.stringify([Z,J,$])}}GT.Cache=KT});var VT=z((HT)=>{Object.defineProperty(HT,"__esModule",{value:!0});HT.AzureTokenCache=HT.AzureTokenEntry=void 0;var FT=OJ();class vQ extends FT.ExpiringCacheEntry{constructor(Z,J){super(J);this.token=Z}}HT.AzureTokenEntry=vQ;class WT extends FT.Cache{addEntry(Z,J){const $=new vQ(J.access_token,J.expires_in);return this.entries.set(Z,$),$}cacheKey(Z){return Z}deleteEntry(Z){this.entries.delete(Z)}getEntry(Z){return this.entries.get(Z)}}HT.AzureTokenCache=WT});var LT=z((jT)=>{async function Wa(Z){const J=`${Ka}&resource=${Z}`;return await Xa.request(J,{json:!0,headers:Ga})}var Ha=function(Z){if(Z==null||typeof Z!=="object")return!1;return"access_token"in Z&&"expires_in"in Z};Object.defineProperty(jT,"__esModule",{value:!0});jT.AzureServiceWorkflow=void 0;var UT=h(),Xa=_(),Ya=VT(),Qa=xQ(),Ka="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",Ga=Object.freeze({Metadata:"true",Accept:"application/json"}),qa="Azure endpoint did not return a value with only access_token and expires_in properties",Fa="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class MT extends Qa.ServiceWorkflow{constructor(){super(...arguments);this.cache=new Ya.AzureTokenCache}async getToken(Z){const J=Z?.mechanismProperties.TOKEN_AUDIENCE;if(!J)throw new UT.MongoAzureError(Fa);let $;const X=this.cache.getEntry(J);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(J);const Y=await Wa(J);if(!Ha(Y))throw new UT.MongoAzureError(qa);this.cache.addEntry(J,Y),$=Y.access_token}return $}}jT.AzureServiceWorkflow=MT});var IT=z((DT)=>{var wT=function(Z){let J=Promise.resolve();return async($,X)=>{return await J,J=J.then(()=>Z($,X)),J}},Ma=function(Z,J){let $=F9.get(Z),X=F9.get(J??RT);if($==null)h4++,$=h4,F9.set(Z,h4);if(X==null&&J)h4++,X=h4,F9.set(J,h4);return`${$}-${X}`};Object.defineProperty(DT,"__esModule",{value:!0});DT.CallbackLockCache=void 0;var za=h(),Va=OJ(),Ua="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",h4=0,RT=async()=>({accessToken:"test"}),F9=new WeakMap;F9.set(RT,h4);class PT extends Va.Cache{getEntry(Z,J){const $=J.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=J.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new za.MongoInvalidArgumentError(Ua);const Y=Ma($,X),Q=this.cacheKey(Z.address,J.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(Z,J,$,X){const Y={requestCallback:wT($),refreshCallback:X?wT(X):void 0,callbackHash:J};return this.entries.set(Z,Y),Y}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}DT.CallbackLockCache=PT});var hT=z((BT)=>{Object.defineProperty(BT,"__esModule",{value:!0});BT.TokenEntryCache=BT.TokenEntry=void 0;var ET=OJ(),ja=0;class fQ extends ET.ExpiringCacheEntry{constructor(Z,J,$){super($);this.tokenResult=Z,this.serverInfo=J}}BT.TokenEntry=fQ;class NT extends ET.Cache{addEntry(Z,J,$,X,Y){const Q=new fQ(X,Y,X.expiresInSeconds??ja);return this.entries.set(this.cacheKey(Z,J,$),Q),Q}deleteEntry(Z,J,$){this.entries.delete(this.cacheKey(Z,J,$))}getEntry(Z,J,$){return this.entries.get(this.cacheKey(Z,J,$))}deleteExpiredEntries(){for(let[Z,J]of this.entries)if(!J.isValid())this.entries.delete(Z)}cacheKey(Z,J,$){return this.hashedCacheKey(Z,J,$)}}BT.TokenEntryCache=NT});var vT=z((_T)=>{var Ia=function(Z,J){if(J!=null&&typeof J==="number")return{saslContinue:1,conversationId:J,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))};return{saslStart:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize({jwt:Z}))}},Ea=function(Z){if(Z==null||typeof Z!=="object")return!0;if(!("accessToken"in Z))return!0;return!Object.getOwnPropertyNames(Z).every((J)=>Da.includes(J))},ST=function(Z){const J={};if(Z.username)J.n=Z.username;return{saslStart:1,autoAuthorize:1,mechanism:yT.AuthMechanism.MONGODB_OIDC,payload:new O4.Binary(O4.BSON.serialize(J))}};Object.defineProperty(_T,"__esModule",{value:!0});_T.CallbackWorkflow=void 0;var O4=H5(),gQ=h(),OT=_(),yT=k8(),La=IT(),wa=hT(),Ra=0,Pa=300,Da=["accessToken","expiresInSeconds","refreshToken"],Ta="User provided OIDC callbacks must return a valid object with an accessToken.";class kT{constructor(){this.cache=new wa.TokenEntryCache,this.callbackCache=new La.CallbackLockCache}async speculativeAuth(Z){const J=ST(Z);return J.db=Z.source,{speculativeAuthenticate:J}}async execute(Z,J,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(Z,J),G=this.cache.getEntry(Z.address,J.username,K);let q;if(G)if(G.isValid()&&!$)q=await this.finishAuthentication(Z,J,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const F=await this.fetchAccessToken(Z,J,G.serverInfo,$,K,Y,Q);try{q=await this.finishAuthentication(Z,J,F,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof gQ.MongoError&&W.code===gQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(Z.address,J.username,K),q=await this.execute(Z,J,$);else throw W}}else{const F=await this.startAuthentication(Z,J,$,X),W=F.conversationId,H=O4.BSON.deserialize(F.payload.buffer),V=await this.fetchAccessToken(Z,J,H,$,K,Y,Q);q=await this.finishAuthentication(Z,J,V,W)}return q}async startAuthentication(Z,J,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await Z.commandAsync(OT.ns(J.source),ST(J),void 0);return Y}async finishAuthentication(Z,J,$,X){return await Z.commandAsync(OT.ns(J.source),Ia($.accessToken,X),void 0)}async fetchAccessToken(Z,J,$,X,Y,Q,K){const G=this.cache.getEntry(Z.address,J.username,Y);let q;const F={timeoutSeconds:Pa,version:Ra};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)F.refreshToken=G.tokenResult.refreshToken,q=await K($,F);else q=await Q($,F)}else q=await Q($,F);if(Ea(q))throw this.cache.deleteEntry(Z.address,J.username,Y),new gQ.MongoMissingCredentialsError(Ta);return this.cache.deleteExpiredEntries(),this.cache.addEntry(Z.address,J.username||"",Y,q,$),q}}_T.CallbackWorkflow=kT});var pT=z((uT)=>{var fT=function(Z){const{credentials:J}=Z;if(!J)throw new bT.MongoMissingCredentialsError(Oa);return J},gT=function(Z){const J=Z.mechanismProperties.PROVIDER_NAME,$=uT.OIDC_WORKFLOWS.get(J||"callback");if(!$)throw new bT.MongoInvalidArgumentError(`Could not load workflow for provider ${Z.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(uT,"__esModule",{value:!0});uT.MongoDBOIDC=uT.OIDC_WORKFLOWS=void 0;var bT=h(),Na=G6(),Ba=YT(),Ca=LT(),ha=vT(),Oa="AuthContext must provide credentials.";uT.OIDC_WORKFLOWS=new Map;uT.OIDC_WORKFLOWS.set("callback",new ha.CallbackWorkflow);uT.OIDC_WORKFLOWS.set("aws",new Ba.AwsServiceWorkflow);uT.OIDC_WORKFLOWS.set("azure",new Ca.AzureServiceWorkflow);class mT extends Na.AuthProvider{constructor(){super()}async auth(Z){const{connection:J,reauthenticating:$,response:X}=Z,Y=fT(Z);await gT(Y).execute(J,Y,$,X)}async prepare(Z,J){const $=fT(J),Y=await gT($).speculativeAuth($);return{...Z,...Y}}}uT.MongoDBOIDC=mT});var iT=z((lT)=>{Object.defineProperty(lT,"__esModule",{value:!0});lT.Plain=void 0;var Sa=D1(),ya=h(),ka=_(),_a=G6();class cT extends _a.AuthProvider{async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new ya.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Sa.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await J.commandAsync(ka.ns("$external.$cmd"),K,void 0)}}lT.Plain=cT});var YI=z(($I)=>{var tT=function(Z){return Z.replace("=","=3D").replace(",","=2C")},rT=function(Z,J){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(Z,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(J.toString("base64"),"utf8")])},oT=function(Z,J,$){const X=tT(J.username);return{saslStart:1,mechanism:Z==="sha1"?sT.AuthMechanism.MONGODB_SCRAM_SHA1:sT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new bQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),rT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function fa(Z,J){const{connection:$,credentials:X}=J;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!J.nonce)throw new j8.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=J.nonce,Q=X.source,K=oT(Z,X,Y),G=await $.commandAsync(kJ.ns(`${Q}.\$cmd`),K,void 0);await eT(Z,G,J)}async function eT(Z,J,$){const{connection:X,credentials:Y}=$;if(!Y)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new j8.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=tT(Y.username),q=Y.password;let F;if(Z==="sha256")F="kModuleError"in H9.saslprep||typeof H9.saslprep!=="function"?q:H9.saslprep(q);else F=ga(G,q);const W=Buffer.isBuffer(J.payload)?new bQ.Binary(J.payload):J.payload,H=nT(W.value()),V=parseInt(H.i,10);if(V&&V<4096)throw new j8.MongoRuntimeError(`Server returned an invalid iteration count ${V}`);const{s:j,r:U}=H;if(U.startsWith("nonce"))throw new j8.MongoRuntimeError(`Server returned an invalid nonce: ${U}`);const L=`c=biws,r=${U}`,D=pa(F,Buffer.from(j,"base64"),V,Z),B=SJ(Z,D,"Client Key"),w=SJ(Z,D,"Server Key"),T=ma(Z,B),f=[rT(G,Q),W.value(),L].join(","),N1=SJ(Z,T,f),p8=`p=${ba(B,N1)}`,y=[L,p8].join(","),N=SJ(Z,w,f),G1={saslContinue:1,conversationId:J.conversationId,payload:new bQ.Binary(Buffer.from(y))},u=await X.commandAsync(kJ.ns(`${K}.\$cmd`),G1,void 0),v=nT(u.payload.value());if(!ca(Buffer.from(v.v,"base64"),N))throw new j8.MongoRuntimeError("Server returned an invalid signature");if(u.done!==!1)return;const C={saslContinue:1,conversationId:u.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(kJ.ns(`${K}.\$cmd`),C,void 0)}var nT=function(Z){const J={},$=Z.split(",");for(let X=0;X<$.length;X++){const Y=$[X].split("=");J[Y[0]]=Y[1]}return J},ga=function(Z,J){if(typeof Z!=="string")throw new j8.MongoInvalidArgumentError("Username must be a string");if(typeof J!=="string")throw new j8.MongoInvalidArgumentError("Password must be a string");if(J.length===0)throw new j8.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=r6.createHash("md5")}catch(X){if(r6.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${Z}:mongo:${J}`,"utf8"),$.digest("hex")},ba=function(Z,J){if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);if(!Buffer.isBuffer(J))J=Buffer.from(J);const $=Math.max(Z.length,J.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(Z[Y]^J[Y]);return Buffer.from(X).toString("base64")},ma=function(Z,J){return r6.createHash(Z).update(J).digest()},SJ=function(Z,J,$){return r6.createHmac(Z,J).update($).digest()},ua=function(){yJ={},mQ=0},pa=function(Z,J,$,X){const Y=[Z,J.toString("base64"),$].join("_");if(yJ[Y]!=null)return yJ[Y];const Q=r6.pbkdf2Sync(Z,J,$,da[X],X);if(mQ>=200)ua();return yJ[Y]=Q,mQ+=1,Q},ca=function(Z,J){if(Z.length!==J.length)return!1;if(typeof r6.timingSafeEqual==="function")return r6.timingSafeEqual(Z,J);let $=0;for(let X=0;X<Z.length;X++)$|=Z[X]^J[X];return $===0};Object.defineProperty($I,"__esModule",{value:!0});$I.ScramSHA256=$I.ScramSHA1=void 0;var r6=import.meta.require("crypto"),xa=import.meta.require("util"),bQ=D1(),H9=j7(),j8=h(),kJ=_(),va=G6(),sT=k8();class uQ extends va.AuthProvider{constructor(Z){super();this.cryptoMethod=Z||"sha1",this.randomBytesAsync=xa.promisify(r6.randomBytes)}async prepare(Z,J){const $=this.cryptoMethod,X=J.credentials;if(!X)throw new j8.MongoMissingCredentialsError("AuthContext must provide credentials.");if($==="sha256"&&(("kModuleError"in H9.saslprep)||typeof H9.saslprep!=="function"))kJ.emitWarning("Warning: no saslprep library specified. Passwords will not be sanitized");const Y=await this.randomBytesAsync(24);return J.nonce=Y,{...Z,speculativeAuthenticate:{...oT($,X,Y),db:X.source}}}async auth(Z){const{reauthenticating:J,response:$}=Z;if($?.speculativeAuthenticate&&!J)return eT(this.cryptoMethod,$.speculativeAuthenticate,Z);return fa(this.cryptoMethod,Z)}}var yJ={},mQ=0,da={sha256:32,sha1:20};class ZI extends uQ{constructor(){super("sha1")}}$I.ScramSHA1=ZI;class JI extends uQ{constructor(){super("sha256")}}$I.ScramSHA256=JI});var WI=z((qI)=>{var KI=function(Z){const J={authenticate:1,mechanism:"MONGODB-X509"};if(Z.username)J.user=Z.username;return J};Object.defineProperty(qI,"__esModule",{value:!0});qI.X509=void 0;var QI=h(),aa=_(),ia=G6();class GI extends ia.AuthProvider{async prepare(Z,J){const{credentials:$}=J;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...Z,speculativeAuthenticate:KI($)}}async auth(Z){const{connection:J,credentials:$}=Z;if(!$)throw new QI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(Z.response?.speculativeAuthenticate)return;await J.commandAsync(aa.ns("$external.$cmd"),KI($),void 0)}}qI.X509=GI});var aQ=z((LI)=>{var Xi=function(Z,J){pQ({...Z,existingSocket:void 0},($,X)=>{if($||!X)return J($);let Y=Z.connectionType??zI.Connection;if(Z.autoEncrypter)Y=zI.CryptoConnection;const Q=new Y(X,Z);Qi(Q,Z).then(()=>J(void 0,Q),(K)=>{Q.destroy({force:!1}),J(K)})})},Yi=function(Z,J){const $=Number(Z.maxWireVersion),X=Number(Z.minWireVersion),Y=!Number.isNaN($)&&$>=O7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=O7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${J.hostAddress} reports minimum wire version ${JSON.stringify(Z.minWireVersion)}, but this version of the Node.js Driver requires at most ${O7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MAX_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(G)}const K=`Server at ${J.hostAddress} reports maximum wire version ${JSON.stringify(Z.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${O7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${O7.MIN_SUPPORTED_SERVER_VERSION})`;return new x1.MongoCompatibilityError(K)};async function Qi(Z,J){const $=J.credentials;if($){if($.mechanism!==o0.AuthMechanism.MONGODB_DEFAULT&&!LI.AUTH_PROVIDERS.get($.mechanism))throw new x1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new ta.AuthContext(Z,$,J);Z.authContext=X;const Y=await jI(X),Q={...J};if(typeof J.connectTimeoutMS==="number")Q.socketTimeoutMS=J.connectTimeoutMS;const K=(new Date()).getTime(),G=await Z.commandAsync(MI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[UI.LEGACY_HELLO_COMMAND];if(G.helloOk)Z.helloOk=!0;const q=Yi(G,J);if(q)throw q;if(J.loadBalanced){if(!G.serviceId)throw new x1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(Z.hello=G,Z.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const F=$.resolveAuthMechanism(G),W=LI.AUTH_PROVIDERS.get(F.mechanism);if(!W)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${F.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof x1.MongoError){if(H.addErrorLabel(x1.MongoErrorLabel.HandshakeError),x1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(x1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function jI(Z){const J=Z.options,$=J.compressors?J.compressors:[],{serverApi:X}=Z.connection,Y={[X?.version?"hello":UI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:J.metadata,compression:$};if(J.loadBalanced===!0)Y.loadBalanced=!0;const Q=Z.credentials;if(Q){if(Q.mechanism===o0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=LI.AUTH_PROVIDERS.get(o0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${o0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,Z)}const K=LI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new x1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,Z)}return Y}var cQ=function(Z){const J=Z.hostAddress;if(!J)throw new x1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of LI.LEGAL_TCP_SOCKET_OPTIONS)if(Z[X]!=null)$[X]=Z[X];if(typeof J.socketPath==="string")return $.path=J.socketPath,$;else if(typeof J.host==="string")return $.host=J.host,$.port=J.port,$;else throw new x1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(J)}`)},Ki=function(Z){const J=cQ(Z);for(let $ of LI.LEGAL_TLS_SOCKET_OPTIONS)if(Z[$]!=null)J[$]=Z[$];if(Z.existingSocket)J.socket=Z.existingSocket;if(J.servername==null&&J.host&&!VI.isIP(J.host))J.servername=J.host;return J},pQ=function(Z,J){const $=Z.tls??!1,X=Z.keepAlive??!0,Y=Z.socketTimeoutMS??Reflect.get(Z,"socketTimeout")??0,Q=Z.noDelay??!0,K=Z.connectTimeoutMS??30000,G=Z.rejectUnauthorized??!0,q=((Z.keepAliveInitialDelay??120000)>Y?Math.round(Y/2):Z.keepAliveInitialDelay)??120000,F=Z.existingSocket;let W;const H=function(D,B){if(D&&W)W.destroy();J(D,B)};if(Z.proxyHost!=null)return qi({...Z,connectTimeoutMS:K},H);if($){const D=na.connect(Ki(Z));if(typeof D.disableRenegotiation==="function")D.disableRenegotiation();W=D}else if(F)W=F;else W=VI.createConnection(cQ(Z));W.setKeepAlive(X,q),W.setTimeout(K),W.setNoDelay(Q);const V=$?"secureConnect":"connect";let j;function U(D){return(B)=>{if(dQ.forEach((w)=>W.removeAllListeners(w)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);W.removeListener(V,L),H(AI(D,B))}}function L(){if(dQ.forEach((D)=>W.removeAllListeners(D)),j&&Z.cancellationToken)Z.cancellationToken.removeListener("cancel",j);if("authorizationError"in W){if(W.authorizationError&&G)return H(W.authorizationError)}W.setTimeout(0),H(void 0,W)}if(dQ.forEach((D)=>W.once(D,U(D))),Z.cancellationToken)j=U("cancel"),Z.cancellationToken.once("cancel",j);if(F)process.nextTick(L);else W.once(V,L)},qi=function(Z,J){const $=MI.HostAddress.fromHostPort(Z.proxyHost??"",Z.proxyPort??1080);pQ({...Z,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X)return J(X);const Q=cQ(Z);if(typeof Q.host!=="string"||typeof Q.port!=="number")return J(new x1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));sa.SocksClient.createConnection({existing_socket:Y,timeout:Z.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:Z.proxyUsername||void 0,password:Z.proxyPassword||void 0}}).then(({socket:K})=>{pQ({...Z,existingSocket:K,proxyHost:void 0},J)},(K)=>J(AI("error",K)))})},AI=function(Z,J){switch(Z){case"error":return new x1.MongoNetworkError(J);case"timeout":return new x1.MongoNetworkTimeoutError("connection timed out");case"close":return new x1.MongoNetworkError("connection closed");case"cancel":return new x1.MongoNetworkError("connection establishment was cancelled");default:return new x1.MongoNetworkError("unknown network error")}};Object.defineProperty(LI,"__esModule",{value:!0});LI.LEGAL_TCP_SOCKET_OPTIONS=LI.LEGAL_TLS_SOCKET_OPTIONS=LI.prepareHandshakeDocument=LI.connect=LI.AUTH_PROVIDERS=void 0;var VI=import.meta.require("net"),sa=uD(),na=import.meta.require("tls"),UI=f1(),x1=h(),MI=_(),ta=G6(),ra=eZ(),oa=iD(),ea=rD(),Zi=pT(),Ji=iT(),o0=k8(),HI=YI(),$i=WI(),zI=G9(),O7=j4();LI.AUTH_PROVIDERS=new Map([[o0.AuthMechanism.MONGODB_AWS,new ea.MongoDBAWS],[o0.AuthMechanism.MONGODB_CR,new oa.MongoCR],[o0.AuthMechanism.MONGODB_GSSAPI,new ra.GSSAPI],[o0.AuthMechanism.MONGODB_OIDC,new Zi.MongoDBOIDC],[o0.AuthMechanism.MONGODB_PLAIN,new Ji.Plain],[o0.AuthMechanism.MONGODB_SCRAM_SHA1,new HI.ScramSHA1],[o0.AuthMechanism.MONGODB_SCRAM_SHA256,new HI.ScramSHA256],[o0.AuthMechanism.MONGODB_X509,new $i.X509]]);LI.connect=Xi;LI.prepareHandshakeDocument=jI;LI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];LI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var Gi=["error","close","timeout","parseError"],dQ=new Set(Gi)});var iQ=z((SI)=>{Object.defineProperty(SI,"__esModule",{value:!0});SI.ConnectionPoolClearedEvent=SI.ConnectionCheckedInEvent=SI.ConnectionCheckedOutEvent=SI.ConnectionCheckOutFailedEvent=SI.ConnectionCheckOutStartedEvent=SI.ConnectionClosedEvent=SI.ConnectionReadyEvent=SI.ConnectionCreatedEvent=SI.ConnectionPoolClosedEvent=SI.ConnectionPoolReadyEvent=SI.ConnectionPoolCreatedEvent=SI.ConnectionPoolMonitoringEvent=void 0;var A8=f1();class _0{constructor(Z){this.time=new Date,this.address=Z.address}}SI.ConnectionPoolMonitoringEvent=_0;class RI extends _0{constructor(Z){super(Z);if(this.name=A8.CONNECTION_POOL_CREATED,Z.options.credentials!=null)this.options={...Z.options,credentials:{}};else this.options=Z.options}}SI.ConnectionPoolCreatedEvent=RI;class PI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_READY}}SI.ConnectionPoolReadyEvent=PI;class DI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_POOL_CLOSED}}SI.ConnectionPoolClosedEvent=DI;class TI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CREATED,this.connectionId=J.id}}SI.ConnectionCreatedEvent=TI;class II extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_READY,this.connectionId=J.id}}SI.ConnectionReadyEvent=II;class EI extends _0{constructor(Z,J,$,X){super(Z);this.name=A8.CONNECTION_CLOSED,this.connectionId=J.id,this.reason=$,this.serviceId=J.serviceId,this.error=X??null}}SI.ConnectionClosedEvent=EI;class NI extends _0{constructor(Z){super(Z);this.name=A8.CONNECTION_CHECK_OUT_STARTED}}SI.ConnectionCheckOutStartedEvent=NI;class BI extends _0{constructor(Z,J,$){super(Z);this.name=A8.CONNECTION_CHECK_OUT_FAILED,this.reason=J,this.error=$}}SI.ConnectionCheckOutFailedEvent=BI;class CI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_OUT,this.connectionId=J.id}}SI.ConnectionCheckedOutEvent=CI;class hI extends _0{constructor(Z,J){super(Z);this.name=A8.CONNECTION_CHECKED_IN,this.connectionId=J.id}}SI.ConnectionCheckedInEvent=hI;class OI extends _0{constructor(Z,J={}){super(Z);this.name=A8.CONNECTION_POOL_CLEARED,this.serviceId=J.serviceId,this.interruptInUseConnections=J.interruptInUseConnections}}SI.ConnectionPoolClearedEvent=OI});var nQ=z((vI)=>{Object.defineProperty(vI,"__esModule",{value:!0});vI.WaitQueueTimeoutError=vI.PoolClearedOnNetworkError=vI.PoolClearedError=vI.PoolClosedError=void 0;var _J=h();class kI extends _J.MongoDriverError{constructor(Z){super("Attempted to check out a connection from closed connection pool");this.address=Z.address}get name(){return"MongoPoolClosedError"}}vI.PoolClosedError=kI;class sQ extends _J.MongoNetworkError{constructor(Z,J){const $=J?J:`Connection pool for ${Z.address} was cleared because another operation failed with: "${Z.serverError?.message}"`;super($);this.address=Z.address,this.addErrorLabel(_J.MongoErrorLabel.RetryableWriteError)}get name(){return"MongoPoolClearedError"}}vI.PoolClearedError=sQ;class _I extends sQ{constructor(Z){super(Z,`Connection to ${Z.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}vI.PoolClearedOnNetworkError=_I;class xI extends _J.MongoDriverError{constructor(Z,J){super(Z);this.address=J}get name(){return"MongoWaitQueueTimeoutError"}}vI.WaitQueueTimeoutError=xI});var pI=z((uI)=>{Object.defineProperty(uI,"__esModule",{value:!0});uI.ConnectionPool=uI.PoolState=void 0;var b8=import.meta.require("timers"),Z8=f1(),L8=h(),gI=C0(),xJ=_(),bI=aQ(),vJ=G9(),t1=iQ(),S7=nQ(),Ei=IY(),fJ=Symbol("server"),z6=Symbol("connections"),y7=Symbol("pending"),o6=Symbol("checkedOut"),S4=Symbol("minPoolSizeTimer"),k7=Symbol("generation"),mI=Symbol("serviceGenerations"),gJ=Symbol("connectionCounter"),bJ=Symbol("cancellationToken"),V6=Symbol("waitQueue"),mJ=Symbol("cancelled"),uJ=Symbol("metrics"),dJ=Symbol("processingWaitQueue"),w8=Symbol("poolState");uI.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class Y1 extends gI.TypedEventEmitter{constructor(Z,J){super();if(this.options=Object.freeze({...J,connectionType:vJ.Connection,maxPoolSize:J.maxPoolSize??100,minPoolSize:J.minPoolSize??0,maxConnecting:J.maxConnecting??2,maxIdleTimeMS:J.maxIdleTimeMS??0,waitQueueTimeoutMS:J.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:J.minPoolSizeCheckFrequencyMS??100,autoEncrypter:J.autoEncrypter,metadata:J.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new L8.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[w8]=uI.PoolState.paused,this[fJ]=Z,this[z6]=new xJ.List,this[y7]=0,this[o6]=new Set,this[S4]=void 0,this[k7]=0,this[mI]=new Map,this[gJ]=xJ.makeCounter(1),this[bJ]=new gI.CancellationToken,this[bJ].setMaxListeners(Infinity),this[V6]=new xJ.List,this[uJ]=new Ei.ConnectionPoolMetrics,this[dJ]=!1,this.mongoLogger=this[fJ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(Y1.CONNECTION_POOL_CREATED,new t1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[w8]===uI.PoolState.closed}get generation(){return this[k7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[z6].length}get pendingConnectionCount(){return this[y7]}get currentCheckedOutCount(){return this[o6].size}get waitQueueSize(){return this[V6].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[mI]}get serverError(){return this[fJ].description.error}get checkedOutConnections(){return this[o6]}waitQueueErrorMetrics(){return this[uJ].info(this.options.maxPoolSize)}ready(){if(this[w8]!==uI.PoolState.paused)return;this[w8]=uI.PoolState.ready,this.emitAndLog(Y1.CONNECTION_POOL_READY,new t1.ConnectionPoolReadyEvent(this)),b8.clearTimeout(this[S4]),this.ensureMinPoolSize()}checkOut(Z){this.emitAndLog(Y1.CONNECTION_CHECK_OUT_STARTED,new t1.ConnectionCheckOutStartedEvent(this));const J={callback:Z},$=this.options.waitQueueTimeoutMS;if($)J.timer=b8.setTimeout(()=>{J[mJ]=!0,J.timer=void 0,this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"timeout")),J.callback(new S7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))},$);this[V6].push(J),process.nextTick(()=>this.processWaitQueue())}checkIn(Z){if(!this[o6].has(Z))return;const J=this.closed,$=this.connectionIsStale(Z),X=!!(J||$||Z.closed);if(!X)Z.markAvailable(),this[z6].unshift(Z);if(this[o6].delete(Z),this.emitAndLog(Y1.CONNECTION_CHECKED_IN,new t1.ConnectionCheckedInEvent(this,Z)),X){const Y=Z.closed?"error":J?"poolClosed":"stale";this.destroyConnection(Z,Y)}process.nextTick(()=>this.processWaitQueue())}clear(Z={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=Z;if(!Y)throw new L8.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new L8.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const J=Z.interruptInUseConnections??!1,$=this[k7];this[k7]+=1;const X=this[w8]===uI.PoolState.paused;if(this[w8]=uI.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(Y1.CONNECTION_POOL_CLEARED,new t1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:J}));if(J)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(Z){for(let J of this[o6])if(J.generation<=Z)this.checkIn(J),J.onError(new S7.PoolClearedOnNetworkError(this))}close(Z,J){let $=Z;const X=J??Z;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[bJ].emit("cancel"),typeof this[gJ].return==="function")this[gJ].return(void 0);this[w8]=uI.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),xJ.eachAsync(this[z6].toArray(),(Y,Q)=>{this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[z6].clear(),this.emitAndLog(Y1.CONNECTION_POOL_CLOSED,new t1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(Z,J,$){if(Z){J(void 0,Z,(X,Y)=>{if(X)return this.withReauthentication(X,Z,J,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{J(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,J,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(Z,J,$,X){if(Z instanceof L8.MongoError&&Z.code===L8.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(J,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(Z)}reauthenticate(Z,J,$){const X=Z.authContext;if(!X)return $(new L8.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new L8.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(Z.hello||void 0),K=bI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new L8.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{J(void 0,Z,(G,q)=>{if(G)return $(G);$(void 0,q)})},(G)=>$(G))}clearMinPoolSizeTimer(){const Z=this[S4];if(Z)b8.clearTimeout(Z)}destroyConnection(Z,J){this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,Z,J)),process.nextTick(()=>Z.destroy({force:!1}))}connectionIsStale(Z){const J=Z.serviceId;if(this.loadBalanced&&J){const $=J.toHexString(),X=this.serviceGenerations.get($);return Z.generation!==X}return Z.generation!==this[k7]}connectionIsIdle(Z){return!!(this.options.maxIdleTimeMS&&Z.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(Z){const J=this.connectionIsStale(Z),$=this.connectionIsIdle(Z);if(!J&&!$&&!Z.closed)return!1;const X=Z.closed?"error":J?"stale":"idle";return this.destroyConnection(Z,X),!0}createConnection(Z){const J={...this.options,id:this[gJ].next().value,generation:this[k7],cancellationToken:this[bJ]};this[y7]++,this.emitAndLog(Y1.CONNECTION_CREATED,new t1.ConnectionCreatedEvent(this,{id:J.id})),bI.connect(J,($,X)=>{if($||!X){if(this[y7]--,this.emitAndLog(Y1.CONNECTION_CLOSED,new t1.ConnectionClosedEvent(this,{id:J.id,serviceId:void 0},"error",$)),$ instanceof L8.MongoNetworkError||$ instanceof L8.MongoServerError)$.connectionGeneration=J.generation;Z($??new L8.MongoRuntimeError("Connection creation failed without error"));return}if(this[w8]!==uI.PoolState.ready){this[y7]--,X.destroy({force:!0}),Z(this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this));return}for(let Y of[...Z8.APM_EVENTS,vJ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(vJ.Connection.PINNED,(Q)=>this[uJ].markPinned(Q)),X.on(vJ.Connection.UNPINNED,(Q)=>this[uJ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(Y1.CONNECTION_READY,new t1.ConnectionReadyEvent(this,X)),this[y7]--,Z(void 0,X);return})}ensureMinPoolSize(){const Z=this.options.minPoolSize;if(this[w8]!==uI.PoolState.ready||Z===0)return;if(this[z6].prune((J)=>this.destroyConnectionIfPerished(J)),this.totalConnectionCount<Z&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((J,$)=>{if(J)this[fJ].handleError(J);if(!J&&$)this[z6].push($),process.nextTick(()=>this.processWaitQueue());if(this[w8]===uI.PoolState.ready)b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else b8.clearTimeout(this[S4]),this[S4]=b8.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[dJ])return;this[dJ]=!0;while(this.waitQueueSize){const $=this[V6].first();if(!$){this[V6].shift();continue}if($[mJ]){this[V6].shift();continue}if(this[w8]!==uI.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new S7.PoolClosedError(this):new S7.PoolClearedError(this);if(this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[z6].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X)){if(this[o6].add(X),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,X)),$.timer)b8.clearTimeout($.timer);this[V6].shift(),$.callback(void 0,X)}}const{maxPoolSize:Z,maxConnecting:J}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<J&&(Z===0||this.totalConnectionCount<Z)){const $=this[V6].shift();if(!$||$[mJ])continue;this.createConnection((X,Y)=>{if($[mJ]){if(!X&&Y)this[z6].push(Y)}else{if(X)this.emitAndLog(Y1.CONNECTION_CHECK_OUT_FAILED,new t1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[o6].add(Y),this.emitAndLog(Y1.CONNECTION_CHECKED_OUT,new t1.ConnectionCheckedOutEvent(this,Y));if($.timer)b8.clearTimeout($.timer);$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[dJ]=!1}}Y1.CONNECTION_POOL_CREATED=Z8.CONNECTION_POOL_CREATED;Y1.CONNECTION_POOL_CLOSED=Z8.CONNECTION_POOL_CLOSED;Y1.CONNECTION_POOL_CLEARED=Z8.CONNECTION_POOL_CLEARED;Y1.CONNECTION_POOL_READY=Z8.CONNECTION_POOL_READY;Y1.CONNECTION_CREATED=Z8.CONNECTION_CREATED;Y1.CONNECTION_READY=Z8.CONNECTION_READY;Y1.CONNECTION_CLOSED=Z8.CONNECTION_CLOSED;Y1.CONNECTION_CHECK_OUT_STARTED=Z8.CONNECTION_CHECK_OUT_STARTED;Y1.CONNECTION_CHECK_OUT_FAILED=Z8.CONNECTION_CHECK_OUT_FAILED;Y1.CONNECTION_CHECKED_OUT=Z8.CONNECTION_CHECKED_OUT;Y1.CONNECTION_CHECKED_IN=Z8.CONNECTION_CHECKED_IN;uI.ConnectionPool=Y1});var eI=z((rI)=>{var A9=function(Z){return Z.s.state===r1.STATE_CLOSED||Z.s.state===r1.STATE_CLOSING},aI=function(Z){Z[m8]?.stop(),Z[m8]=void 0,Z.rttPinger?.close(),Z.rttPinger=void 0,Z[k4].emit("cancel"),Z[U6]?.destroy({force:!0}),Z[U6]=void 0},Ci=function(Z,J){let $=x0.now();Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address));function X(Q){Z[U6]?.destroy({force:!0}),Z[U6]=void 0,Z.emit(M9.Server.SERVER_HEARTBEAT_FAILED,new U9.ServerHeartbeatFailedEvent(Z.address,x0.calculateDurationInMs($),Q));const K=!(Q instanceof V9.MongoError)?new V9.MongoError(Q):Q;if(K.addErrorLabel(V9.MongoErrorLabel.ResetPool),K instanceof V9.MongoNetworkTimeoutError)K.addErrorLabel(V9.MongoErrorLabel.InterruptInUseConnections);Z.emit("resetServer",K),J(Q)}const Y=Z[U6];if(Y&&!Y.closed){const{serverApi:Q,helloOk:K}=Y,G=Z.options.connectTimeoutMS,q=Z.options.heartbeatFrequencyMS,F=Z[pJ].description.topologyVersion,W=F!=null,H={[Q?.version||K?"hello":tQ.LEGACY_HELLO_COMMAND]:1,...W&&F?{maxAwaitTimeMS:q,topologyVersion:hi(F)}:{}},V=W?{socketTimeoutMS:G?G+q:0,exhaustAllowed:!0}:{socketTimeoutMS:G};if(W&&Z.rttPinger==null)Z.rttPinger=new rQ(Z[k4],Object.assign({heartbeatFrequencyMS:Z.options.heartbeatFrequencyMS},Z.connectOptions));Y.command(x0.ns("admin.$cmd"),H,V,(j,U)=>{if(j)return X(j);if(!("isWritablePrimary"in U))U.isWritablePrimary=U[tQ.LEGACY_HELLO_COMMAND];const L=W&&Z.rttPinger?Z.rttPinger.roundTripTime:x0.calculateDurationInMs($);if(Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,L,U)),W&&U.topologyVersion)Z.emit(M9.Server.SERVER_HEARTBEAT_STARTED,new U9.ServerHeartbeatStartedEvent(Z.address)),$=x0.now();else Z.rttPinger?.close(),Z.rttPinger=void 0,J(void 0,U)});return}sI.connect(Z.connectOptions,(Q,K)=>{if(Q){Z[U6]=void 0,X(Q);return}if(K){if(K.isMonitoringConnection=!0,A9(Z)){K.destroy({force:!0});return}Z[U6]=K,Z.emit(M9.Server.SERVER_HEARTBEAT_SUCCEEDED,new U9.ServerHeartbeatSucceededEvent(Z.address,x0.calculateDurationInMs($),K.hello)),J(void 0,K.hello)}})},iI=function(Z){return(J)=>{if(Z.s.state===y4){process.nextTick(J);return}x7(Z,y4);function $(){if(!A9(Z))x7(Z,_7);J()}Ci(Z,(X,Y)=>{if(X){if(Z[pJ].description.type===r1.ServerType.Unknown)return $()}if(Y&&Y.topologyVersion)e6.setTimeout(()=>{if(!A9(Z))Z[m8]?.wake()},0);$()})}},hi=function(Z){return{processId:Z.processId,counter:cI.Long.isLong(Z.counter)?Z.counter:cI.Long.fromNumber(Z.counter)}},tI=function(Z,J){const $=x0.now();J.cancellationToken=Z[k4];const X=J.heartbeatFrequencyMS;if(Z.closed)return;function Y(G){if(Z.closed){G?.destroy({force:!0});return}if(Z.connection==null)Z.connection=G;Z[j9]=x0.calculateDurationInMs($),Z[m8]=e6.setTimeout(()=>tI(Z,J),X)}const Q=Z.connection;if(Q==null){sI.connect(J,(G,q)=>{if(G){Z.connection=void 0,Z[j9]=0;return}Y(q)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":tQ.LEGACY_HELLO_COMMAND;Q.commandAsync(x0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{Z.connection?.destroy({force:!0}),Z.connection=void 0,Z[j9]=0})};Object.defineProperty(rI,"__esModule",{value:!0});rI.MonitorInterval=rI.RTTPinger=rI.Monitor=void 0;var e6=import.meta.require("timers"),cI=D1(),sI=aQ(),Ni=G9(),tQ=f1(),V9=h(),lI=C0(),x0=_(),r1=p0(),U9=wJ(),M9=oQ(),pJ=Symbol("server"),m8=Symbol("monitorId"),U6=Symbol("connection"),k4=Symbol("cancellationToken"),j9=Symbol("roundTripTime"),_7="idle",y4="monitoring",x7=x0.makeStateMachine({[r1.STATE_CLOSING]:[r1.STATE_CLOSING,_7,r1.STATE_CLOSED],[r1.STATE_CLOSED]:[r1.STATE_CLOSED,y4],[_7]:[_7,y4,r1.STATE_CLOSING],[y4]:[y4,_7,r1.STATE_CLOSING]}),Bi=new Set([r1.STATE_CLOSING,r1.STATE_CLOSED,y4]);class nI extends lI.TypedEventEmitter{get connection(){return this[U6]}constructor(Z,J){super();this[pJ]=Z,this[U6]=void 0,this[k4]=new lI.CancellationToken,this[k4].setMaxListeners(Infinity),this[m8]=void 0,this.s={state:r1.STATE_CLOSED},this.address=Z.description.address,this.options=Object.freeze({connectTimeoutMS:J.connectTimeoutMS??1e4,heartbeatFrequencyMS:J.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:J.minHeartbeatFrequencyMS??500});const $=this[k4],X=Object.assign({id:"<monitor>",generation:Z.pool.generation,connectionType:Ni.Connection,cancellationToken:$,hostAddress:Z.description.hostAddress},J,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==r1.STATE_CLOSED)return;const Z=this.options.heartbeatFrequencyMS,J=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:J,immediate:!0})}requestCheck(){if(Bi.has(this.s.state))return;this[m8]?.wake()}reset(){const Z=this[pJ].description.topologyVersion;if(A9(this)||Z==null)return;x7(this,r1.STATE_CLOSING),aI(this),x7(this,_7);const J=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[m8]=new cJ(iI(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:$})}close(){if(A9(this))return;x7(this,r1.STATE_CLOSING),aI(this),this.emit("close"),x7(this,r1.STATE_CLOSED)}}rI.Monitor=nI;class rQ{constructor(Z,J){this.connection=void 0,this[k4]=Z,this[j9]=0,this.closed=!1;const $=J.heartbeatFrequencyMS;this[m8]=e6.setTimeout(()=>tI(this,J),$)}get roundTripTime(){return this[j9]}close(){this.closed=!0,e6.clearTimeout(this[m8]),this.connection?.destroy({force:!0}),this.connection=void 0}}rI.RTTPinger=rQ;class cJ{constructor(Z,J={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=x0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=Z,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=J.minHeartbeatFrequencyMS??500,J.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const J=x0.now()-this.lastExecutionEnded;if(J<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(J<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-J);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)e6.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const Z=x0.now(),J=Z-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:Z,timeSinceLastCall:J}}_reschedule(Z){if(this.stopped)return;if(this.timerId)e6.clearTimeout(this.timerId);this.timerId=e6.setTimeout(this._executeAndReschedule,Z||this.heartbeatFrequencyMS)}}rI.MonitorInterval=cJ});var oQ=z((JE)=>{var gi=function(Z,J){if(Z===-1)return J;const $=0.2;return $*J+(1-$)*Z},eQ=function(Z,J){if(Z.loadBalanced)return;if(J instanceof A1.MongoNetworkError&&!(J instanceof A1.MongoNetworkTimeoutError))Z.monitor?.reset();Z.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(Z.description.hostAddress,void 0,{error:J}))},bi=function(Z,J){if(J)return J.inTransaction()||"aggregate"in Z||"find"in Z||"getMore"in Z||"listCollections"in Z||"listIndexes"in Z;return!1},mi=function(Z,J){if(J.serviceId)return J.generation!==Z.serviceGenerations.get(J.serviceId.toHexString());return J.generation!==Z.generation},ui=function(Z,J){const $=J.topologyVersion,X=Z.description.topologyVersion;return $K.compareTopologyVersion(X,$)<0},ZK=function(Z,J){return Z&&Z.inTransaction()&&!JK.isTransactionCommand(J)},ZE=function(Z){return Z.s.options.retryWrites!==!1},di=function(Z,J,$,X,Y){const Q=X?.session;return function K(G,q){if(G==null&&q!=null)return Y(void 0,q);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new A1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof A1.MongoError))return Y(G);if(mi(Z.pool,J))return Y(G);if(G instanceof A1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(ZK(Q,$)&&!G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(A1.MongoErrorLabel.TransientTransactionError);if((ZE(Z.topology)||JK.isTransactionCommand($))&&lJ.supportsRetryableWrites(Z)&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError)}else if((ZE(Z.topology)||JK.isTransactionCommand($))&&A1.needsRetryableWriteLabel(G,lJ.maxWireVersion(Z))&&!ZK(Q,$))G.addErrorLabel(A1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(A1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return Z.handleError(G,J),Y(G)}};Object.defineProperty(JE,"__esModule",{value:!0});JE.Server=void 0;var yi=import.meta.require("util"),ki=G9(),_i=pI(),xi=nQ(),u8=f1(),A1=h(),vi=C0(),JK=hY(),lJ=_(),W1=p0(),fi=eI(),$K=C5(),L9=lJ.makeStateMachine({[W1.STATE_CLOSED]:[W1.STATE_CLOSED,W1.STATE_CONNECTING],[W1.STATE_CONNECTING]:[W1.STATE_CONNECTING,W1.STATE_CLOSING,W1.STATE_CONNECTED,W1.STATE_CLOSED],[W1.STATE_CONNECTED]:[W1.STATE_CONNECTED,W1.STATE_CLOSING,W1.STATE_CLOSED],[W1.STATE_CLOSING]:[W1.STATE_CLOSING,W1.STATE_CLOSED]});class P0 extends vi.TypedEventEmitter{constructor(Z,J,$){super();this.commandAsync=yi.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:J.hostAddress,...$};this.topology=Z,this.pool=new _i.ConnectionPool(this,X),this.s={description:J,options:$,state:W1.STATE_CLOSED,operationCount:0};for(let Y of[...u8.CMAP_EVENTS,...u8.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(ki.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new fi.Monitor(this,this.s.options);for(let Y of u8.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>eQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new $K.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:gi(this.description.roundTripTime,Y.duration)})),this.s.state===W1.STATE_CONNECTING)L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(Z){this.topology.clusterTime=Z}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;return}get loadBalanced(){return this.topology.description.type===W1.TopologyType.LoadBalanced}connect(){if(this.s.state!==W1.STATE_CLOSED)return;if(L9(this,W1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else L9(this,W1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(Z,J){if(typeof Z==="function")J=Z,Z={force:!1};if(Z=Object.assign({},{force:!1},Z),this.s.state===W1.STATE_CLOSED){if(typeof J==="function")J();return}if(L9(this,W1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(Z,($)=>{if(L9(this,W1.STATE_CLOSED),this.emit("closed"),typeof J==="function")J($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(Z,J,$,X){if(X==null)throw new A1.MongoInvalidArgumentError("Callback must be provided");if(Z.db==null||typeof Z==="string")throw new A1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===W1.STATE_CLOSING||this.s.state===W1.STATE_CLOSED){X(new A1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&bi(J,Q)){this.pool.checkOut((G,q)=>{if(G||q==null){if(X)return X(G);return}Q.pin(q),this.command(Z,J,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,q,F)=>{if(G||!q){if(this.decrementOperationCount(),!G)return F(new A1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof xi.PoolClearedError))this.handleError(G);return F(G)}q.command(Z,J,Y,di(this,q,J,Y,(W,H)=>{this.decrementOperationCount(),F(W,H)}))},X)}handleError(Z,J){if(!(Z instanceof A1.MongoError))return;if(Z.connectionGeneration&&Z.connectionGeneration<this.pool.generation)return;const X=Z instanceof A1.MongoNetworkError&&!(Z instanceof A1.MongoNetworkTimeoutError),Y=A1.isNetworkErrorBeforeHandshake(Z),Q=Z.hasErrorLabel(A1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool),eQ(this,Z);else if(J)this.pool.clear({serviceId:J.serviceId})}else if(A1.isSDAMUnrecoverableError(Z)){if(ui(this,Z)){const K=lJ.maxWireVersion(this)<=7||A1.isNodeShuttingDownError(Z);if(this.loadBalanced&&J&&K)this.pool.clear({serviceId:J.serviceId});if(!this.loadBalanced){if(K)Z.addErrorLabel(A1.MongoErrorLabel.ResetPool);eQ(this,Z),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=u8.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=u8.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=u8.SERVER_HEARTBEAT_FAILED;P0.CONNECT=u8.CONNECT;P0.DESCRIPTION_RECEIVED=u8.DESCRIPTION_RECEIVED;P0.CLOSED=u8.CLOSED;P0.ENDED=u8.ENDED;JE.Server=P0});var QK=z((YE)=>{Object.defineProperty(YE,"__esModule",{value:!0});YE.SrvPoller=YE.SrvPollingEvent=void 0;var pi=import.meta.require("dns"),XK=import.meta.require("timers"),ci=h(),li=C0(),XE=_();class YK{constructor(Z){this.srvRecords=Z}hostnames(){return new Set(this.srvRecords.map((Z)=>XE.HostAddress.fromSrvRecord(Z).toString()))}}YE.SrvPollingEvent=YK;class aJ extends li.TypedEventEmitter{constructor(Z){super();if(!Z||!Z.srvHost)throw new ci.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=Z.srvHost,this.srvMaxHosts=Z.srvMaxHosts??0,this.srvServiceName=Z.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1e4,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(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)XK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)XK.clearTimeout(this._timeout);this._timeout=XK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(Z){this.haMode=!1,this.schedule(),this.emit(aJ.SRV_RECORD_DISCOVERY,new YK(Z))}failure(){this.haMode=!0,this.schedule()}async _poll(){const Z=this.generation;let J;try{J=await pi.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(Z!==this.generation)return;const $=[];for(let X of J)if(XE.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}aJ.SRV_RECORD_DISCOVERY="srvRecordDiscovery";YE.SrvPoller=aJ});var AE=z((ME)=>{var zE=function(Z,J,$,X){$=$??{force:!1};for(let Y of D0.LOCAL_SERVER_EVENTS)Z.removeAllListeners(Y);Z.destroy($,()=>{J.emit(K1.SERVER_CLOSED,new Z4.ServerClosedEvent(J.s.id,Z.description.address));for(let Y of D0.SERVER_RELAY_EVENTS)Z.removeAllListeners(Y);if(typeof X==="function")X()})},ni=function(Z){if(Z?.directConnection)return p.TopologyType.Single;if(Z?.replicaSet)return p.TopologyType.ReplicaSetNoPrimary;if(Z?.loadBalanced)return p.TopologyType.LoadBalanced;return p.TopologyType.Unknown},VE=function(Z,J){Z.emit(K1.SERVER_OPENING,new Z4.ServerOpeningEvent(Z.s.id,J.address));const $=new qE.Server(Z,J,Z.s.options);for(let X of D0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>Z.emit(X,Y));return $.on(qE.Server.DESCRIPTION_RECEIVED,(X)=>Z.serverUpdateHandler(X)),$.connect(),$},WE=function(Z,J){if(J&&Z.s.servers.has(J.address)){const $=Z.s.servers.get(J.address);if($){if($.s.description=J,J.error instanceof A6.MongoError&&J.error.hasErrorLabel(A6.MongoErrorLabel.ResetPool)){const X=J.error.hasErrorLabel(A6.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(J.error==null){const X=Z.s.description.type;if(J.isDataBearing||J.type!==p.ServerType.Unknown&&X===p.TopologyType.Single)$.pool.ready()}}}for(let $ of Z.description.servers.values())if(!Z.s.servers.has($.address)){const X=VE(Z,$);Z.s.servers.set($.address,X)}for(let $ of Z.s.servers){const X=$[0];if(Z.description.hasServer(X))continue;if(!Z.s.servers.has(X))continue;const Y=Z.s.servers.get(X);if(Z.s.servers.delete(X),Y)zE(Y,Z)}},UE=function(Z,J){while(Z.length){const $=Z.shift();if(!$)continue;if($.timer)sJ.clearTimeout($.timer);if(!$[qK])$.callback(J)}},HE=function(Z){if(Z.s.state===p.STATE_CLOSED){UE(Z[j6],new A6.MongoTopologyClosedError);return}const J=Z.description.type===p.TopologyType.Sharded,$=Array.from(Z.description.servers.values()),X=Z[j6].length;for(let Y=0;Y<X;++Y){const Q=Z[j6].shift();if(!Q)continue;if(Q[qK])continue;let K;try{const F=Q.serverSelector;K=F?F(Z.description,$):$}catch(F){if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(F);continue}let G;if(K.length===0){Z[j6].push(Q);continue}else if(K.length===1)G=Z.s.servers.get(K[0].address);else{const F=M6.shuffle(K,2),W=Z.s.servers.get(F[0].address),H=Z.s.servers.get(F[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new A6.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",Z.description));return}const q=Q.transaction;if(J&&q&&q.isActive&&G)q.pinServer(G);if(Q.timer)sJ.clearTimeout(Q.timer);Q.callback(void 0,G)}if(Z[j6].length>0)for(let[,Y]of Z.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},ti=function(Z,J){const X=Z.servers.get(J.address)?.topologyVersion;return GK.compareTopologyVersion(X,J.topologyVersion)>0};Object.defineProperty(ME,"__esModule",{value:!0});ME.ServerCapabilities=ME.Topology=void 0;var sJ=import.meta.require("timers"),KE=import.meta.require("util"),GE=KQ(),D0=f1(),A6=h(),ii=C0(),w9=y1(),M6=_(),p=p0(),Z4=wJ(),qE=oQ(),GK=C5(),KK=A5(),iJ=QK(),FE=NY(),si=0,R9=M6.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]}),qK=Symbol("cancelled"),j6=Symbol("waitQueue");class K1 extends ii.TypedEventEmitter{constructor(Z,J,$){super();if(this.client=Z,this.selectServerAsync=KE.promisify((q,F,W)=>this.selectServer(q,F,W)),$=$??{hosts:[M6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(GE.DEFAULT_OPTIONS.entries()),...Object.fromEntries(GE.FEATURE_FLAGS.entries())},typeof J==="string")J=[M6.HostAddress.fromString(J)];else if(!Array.isArray(J))J=[J];const X=[];for(let q of J)if(typeof q==="string")X.push(M6.HostAddress.fromString(q));else if(q instanceof M6.HostAddress)X.push(q);else throw new A6.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(q)}`);const Y=ni($),Q=si++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:M6.shuffle(X,$.srvMaxHosts),G=new Map;for(let q of K)G.set(q.toString(),new GK.ServerDescription(q));if(this[j6]=new M6.List,this.s={id:Q,options:$,seedlist:X,state:p.STATE_CLOSED,description:new FE.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(q)=>this.detectShardedTopology(q),detectSrvRecords:(q)=>this.detectSrvRecords(q)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new iJ.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(Z){const J=Z.previousDescription.type,$=Z.newDescription.type,X=J!==p.TopologyType.Sharded&&$===p.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(iJ.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(Z){const J=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(Z,this.s.options.srvMaxHosts),this.s.description===J)return;WE(this),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new FK(this.lastHello())}connect(Z,J){if(typeof Z==="function")J=Z,Z={};if(Z=Z??{},this.s.state===p.STATE_CONNECTED){if(typeof J==="function")J();return}R9(this,p.STATE_CONNECTING),this.emit(K1.TOPOLOGY_OPENING,new Z4.TopologyOpeningEvent(this.s.id)),this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,new FE.TopologyDescription(p.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,VE(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new GK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>J?J(Q):this.emit(K1.ERROR,Q),Y=Z.readPreference??w9.ReadPreference.primary;this.selectServer(KK.readPreferenceServerSelector(Y),Z,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(M6.ns("admin.$cmd"),{ping:1},{},(q)=>{if(q)return X(q);R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)});return}R9(this,p.STATE_CONNECTED),this.emit(K1.OPEN,this),this.emit(K1.CONNECT,this),J?.(void 0,this)})}close(Z,J){if(Z=Z??{force:!1},this.s.state===p.STATE_CLOSED||this.s.state===p.STATE_CLOSING)return J?.();const $=Array.from(this.s.servers.values(),(X)=>{return KE.promisify(zE)(X,this,{force:!!Z?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),R9(this,p.STATE_CLOSING),UE(this[j6],new A6.MongoTopologyClosedError),p.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(iJ.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(K1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),R9(this,p.STATE_CLOSED),this.emit(K1.TOPOLOGY_CLOSED,new Z4.TopologyClosedEvent(this.s.id))}).finally(()=>J?.())}selectServer(Z,J,$){let X;if(typeof Z!=="function")if(typeof Z==="string")X=KK.readPreferenceServerSelector(w9.ReadPreference.fromString(Z));else{let F;if(Z instanceof w9.ReadPreference)F=Z;else w9.ReadPreference.translate(J),F=J.readPreference||w9.ReadPreference.primary;X=KK.readPreferenceServerSelector(F)}else X=Z;J=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},J);const Y=this.description.type===p.TopologyType.Sharded,Q=J.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$},q=J.serverSelectionTimeoutMS;if(q)G.timer=sJ.setTimeout(()=>{G[qK]=!0,G.timer=void 0;const F=new A6.MongoServerSelectionError(`Server selection timed out after ${q} ms`,this.description);G.callback(F)},q);this[j6].push(G),HE(this)}serverUpdateHandler(Z){if(!this.s.description.hasServer(Z.address))return;if(ti(this.s.description,Z))return;const J=this.s.description,$=this.s.description.servers.get(Z.address);if(!$)return;const X=Z.$clusterTime;if(X)p._advanceClusterTime(this,X);const Y=$&&$.equals(Z);if(this.s.description=this.s.description.update(Z),this.s.description.compatibilityError){this.emit(K1.ERROR,new A6.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(Z.address);if(Q)this.emit(K1.SERVER_DESCRIPTION_CHANGED,new Z4.ServerDescriptionChangedEvent(this.s.id,Z.address,$,Q))}if(WE(this,Z),this[j6].length>0)HE(this);if(!Y)this.emit(K1.TOPOLOGY_DESCRIPTION_CHANGED,new Z4.TopologyDescriptionChangedEvent(this.s.id,J,this.s.description))}auth(Z,J){if(typeof Z==="function")J=Z,Z=void 0;if(typeof J==="function")J(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===p.STATE_CONNECTED}isDestroyed(){return this.s.state===p.STATE_CLOSED}lastHello(){const Z=Array.from(this.description.servers.values());if(Z.length===0)return{};return Z.filter((X)=>X.type!==p.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(Z){this.s.clusterTime=Z}}K1.SERVER_OPENING=D0.SERVER_OPENING;K1.SERVER_CLOSED=D0.SERVER_CLOSED;K1.SERVER_DESCRIPTION_CHANGED=D0.SERVER_DESCRIPTION_CHANGED;K1.TOPOLOGY_OPENING=D0.TOPOLOGY_OPENING;K1.TOPOLOGY_CLOSED=D0.TOPOLOGY_CLOSED;K1.TOPOLOGY_DESCRIPTION_CHANGED=D0.TOPOLOGY_DESCRIPTION_CHANGED;K1.ERROR=D0.ERROR;K1.OPEN=D0.OPEN;K1.CONNECT=D0.CONNECT;K1.CLOSE=D0.CLOSE;K1.TIMEOUT=D0.TIMEOUT;ME.Topology=K1;class FK{constructor(Z){this.minWireVersion=Z.minWireVersion||0,this.maxWireVersion=Z.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}}ME.ServerCapabilities=FK});var I7=z((EE)=>{Object.defineProperty(EE,"__esModule",{value:!0});EE.MongoClient=EE.ServerApiVersion=void 0;var LE=import.meta.require("util"),oi=D1(),ei=H7(),Zs=JJ(),Js=k8(),wE=KQ(),$s=f1(),Xs=sZ(),RE=h(),Ys=e3(),Qs=C0(),PE=y1(),Ks=A5(),DE=AE(),TE=S5(),WK=_();EE.ServerApiVersion=Object.freeze({v1:"1"});var o1=Symbol("options");class IE extends Qs.TypedEventEmitter{constructor(Z,J){super();this[o1]=wE.parseOptions(Z,this,J),this.mongoLogger=new Ys.MongoLogger(this[o1].mongoLoggerOptions);const $=this;this.s={url:Z,bsonOptions:oi.resolveBSONOptions(this[o1]),namespace:WK.ns("admin"),hasBeenClosed:!1,sessionPool:new TE.ServerSessionPool(this),activeSessions:new Set,get options(){return $[o1]},get readConcern(){return $[o1].readConcern},get writeConcern(){return $[o1].writeConcern},get readPreference(){return $[o1].readPreference},get isMongoClient(){return!0}}}get options(){return Object.freeze({...this[o1]})}get serverApi(){return this[o1].serverApi&&Object.freeze({...this[o1].serverApi})}get monitorCommands(){return this[o1].monitorCommands}set monitorCommands(Z){this[o1].monitorCommands=Z}get autoEncrypter(){return this[o1].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}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const Z=this[o1];if(typeof Z.srvHost==="string"){const $=await wE.resolveSRVRecord(Z);for(let[X,Y]of $.entries())Z.hosts[X]=Y}if(Z.credentials?.mechanism===Js.AuthMechanism.MONGODB_OIDC){const $=Z.credentials?.mechanismProperties?.ALLOWED_HOSTS||Zs.DEFAULT_ALLOWED_HOSTS;if(!Z.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of Z.hosts)if(!WK.hostMatchesWildcards(Y.toHostPort().host,$))throw new RE.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new DE.Topology(this,Z.hosts,Z),this.topology.once(DE.Topology.OPEN,()=>this.emit("open",this));for(let $ of $s.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const J=async()=>{try{await LE.promisify(($)=>this.topology?.connect(Z,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await LE.promisify((X)=>this.autoEncrypter?.init(X))(),await J(),await Z.encrypter.connectInternalClient();else await J();return this}async close(Z=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const J=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(J),this.topology==null)return;const $=Ks.readPreferenceServerSelector(PE.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:q})=>q);if(G.length!==0)await this.db("admin").command({endSessions:G},{readPreference:PE.ReadPreference.primaryPreferred,noResponse:!0}).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,q)=>{K.close({force:Z},(F)=>{if(F)return q(F);const{encrypter:W}=this[o1];if(W)return W.close(this,Z,(H)=>{if(H)return q(H);G()});G()})})}db(Z,J){if(J=J??{},!Z)Z=this.options.dbName;const $=Object.assign({},this[o1],J);return new Xs.Db(this,Z,$)}static async connect(Z,J){return new this(Z,J).connect()}startSession(Z){const J=new TE.ClientSession(this,this.s.sessionPool,{explicit:!0,...Z},this[o1]);return this.s.activeSessions.add(J),J.once("ended",()=>{this.s.activeSessions.delete(J)}),J}async withSession(Z,J){const $={owner:Symbol(),...typeof Z==="object"?Z:{}},X=typeof Z==="function"?Z:J;if(X==null)throw new RE.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(Z=[],J={}){if(!Array.isArray(Z))J=Z,Z=[];return new ei.ChangeStream(this,Z,WK.resolveOptions(this,J))}}EE.MongoClient=IE});var H7=z((BE)=>{Object.defineProperty(BE,"__esModule",{value:!0});BE.ChangeStream=void 0;var qs=T4(),P8=f1(),Fs=w3(),Ws=sZ(),R8=h(),Hs=I7(),zs=C0(),HK=_(),v7=Symbol("cursorStream"),f7=Symbol("closed"),P9=Symbol("mode"),Vs=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],_4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Us=[P8.RESUME_TOKEN_CHANGED,P8.END,P8.CLOSE],Ms="A change stream document has been received that lacks a resume token (_id).",nJ="ChangeStream is closed";class T0 extends zs.TypedEventEmitter{constructor(Z,J=[],$={}){super();if(this.pipeline=J,this.options={...$},delete this.options.writeConcern,Z instanceof qs.Collection)this.type=_4.COLLECTION;else if(Z instanceof Ws.Db)this.type=_4.DATABASE;else if(Z instanceof Hs.MongoClient)this.type=_4.CLUSTER;else throw new R8.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=Z,this.namespace=Z.s.namespace,!this.options.readPreference&&Z.readPreference)this.options.readPreference=Z.readPreference;this.cursor=this._createChangeStreamCursor($),this[f7]=!1,this[P9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[v7]?.removeAllListeners("data")})}get cursorStream(){return this[v7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async next(){this._setIsIterator();while(!0)try{const Z=await this.cursor.next();return this._processChange(Z??null)}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(Z){try{await this._processErrorIteratorMode(Z)}catch(J){try{await this.close()}catch{}throw J}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[f7]||this.cursor.closed}async close(){this[f7]=!0;const Z=this.cursor;try{await Z.close()}finally{this._endStream()}}stream(Z){if(this.closed)throw new R8.MongoChangeStreamError(nJ);return this.streamOptions=Z,this.cursor.stream(Z)}_setIsEmitter(){if(this[P9]==="iterator")throw new R8.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[P9]="emitter"}_setIsIterator(){if(this[P9]==="emitter")throw new R8.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[P9]="iterator"}_createChangeStreamCursor(Z){const J=HK.filterOptions(Z,Vs);if(this.type===_4.CLUSTER)J.allChangesForCluster=!0;const $=[{$changeStream:J},...this.pipeline],X=this.type===_4.CLUSTER?this.parent:this.type===_4.DATABASE?this.parent.client:this.type===_4.COLLECTION?this.parent.client:null;if(X==null)throw new R8.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new Fs.ChangeStreamCursor(X,this.namespace,$,Z);for(let Q of Us)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(T0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(Z){this.emit(T0.ERROR,Z),this.close().catch(()=>null)}_streamEvents(Z){this._setIsEmitter();const J=this[v7]??Z.stream();this[v7]=J,J.on("data",($)=>{try{const X=this._processChange($);this.emit(T0.CHANGE,X)}catch(X){this.emit(T0.ERROR,X)}}),J.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const Z=this[v7];if(Z)["data","close","end","error"].forEach((J)=>Z.removeAllListeners(J)),Z.destroy();this[v7]=void 0}_processChange(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(Z==null)throw new R8.MongoRuntimeError(nJ);if(Z&&!Z._id)throw new R8.MongoChangeStreamError(Ms);return this.cursor.cacheResumeToken(Z._id),this.options.startAtOperationTime=void 0,Z}_processErrorStreamMode(Z){if(this[f7])return;if(R8.isResumableError(Z,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),HK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(Z);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(Z)}async _processErrorIteratorMode(Z){if(this[f7])throw new R8.MongoAPIError(nJ);if(!R8.isResumableError(Z,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw Z}await this.cursor.close().catch(()=>null);const J=HK.getTopology(this.parent);try{await J.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),Z}}}T0.RESPONSE=P8.RESPONSE;T0.MORE=P8.MORE;T0.INIT=P8.INIT;T0.CLOSE=P8.CLOSE;T0.CHANGE=P8.CHANGE;T0.END=P8.END;T0.ERROR=P8.ERROR;T0.RESUME_TOKEN_CHANGED=P8.RESUME_TOKEN_CHANGED;BE.ChangeStream=T0});var zK=z((OE)=>{var hE=function(Z){if(Z.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},As=function(Z){if(Z.destroyed)return;if(!Z.s.cursor)return;if(!Z.s.file)return;const J=({error:$,doc:X})=>{if(Z.destroyed)return;if($){Z.emit(E1.ERROR,$);return}if(!X){Z.push(null),Z.s.cursor?.close().then(()=>{Z.emit(E1.CLOSE)},(V)=>{Z.emit(E1.ERROR,V)});return}if(!Z.s.file)return;const Y=Z.s.file.length-Z.s.bytesRead,Q=Z.s.expected++,K=Math.min(Z.s.file.chunkSize,Y);if(X.n>Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${Z.s.file.length} bytes but already read ${Z.s.bytesRead} bytes`));return Z.emit(E1.ERROR,new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(Z.s.bytesRead+=G.byteLength,G.byteLength===0)return Z.push(null);let q=null,F=null;if(Z.s.bytesToSkip!=null)q=Z.s.bytesToSkip,Z.s.bytesToSkip=0;const W=Q===Z.s.expectedEnd-1,H=Z.s.options.end-Z.s.bytesToSkip;if(W&&Z.s.bytesToTrim!=null)F=Z.s.file.chunkSize-Z.s.bytesToTrim;else if(Z.s.options.end&&H<X.data.byteLength)F=H;if(q!=null||F!=null)G=G.slice(q||0,F||G.byteLength);Z.push(G);return};Z.s.cursor.next().then(($)=>J({error:null,doc:$}),($)=>J({error:$,doc:null}))},Ls=function(Z){const J={};if(Z.s.readPreference)J.readPreference=Z.s.readPreference;if(Z.s.options&&Z.s.options.sort)J.sort=Z.s.options.sort;if(Z.s.options&&Z.s.options.skip)J.skip=Z.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return Z.emit(E1.ERROR,X);if(!Y){const G=`FileNotFound: file ${Z.s.filter._id?Z.s.filter._id.toString():Z.s.filter.filename} was not found`,q=new v0.MongoRuntimeError(G);return q.code="ENOENT",Z.emit(E1.ERROR,q)}if(Y.length<=0){Z.push(null);return}if(Z.destroyed){Z.emit(E1.CLOSE);return}try{Z.s.bytesToSkip=Rs(Z,Y,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}const Q={files_id:Y._id};if(Z.s.options&&Z.s.options.start!=null){const K=Math.floor(Z.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(Z.s.cursor=Z.s.chunks.find(Q).sort({n:1}),Z.s.readPreference)Z.s.cursor.withReadPreference(Z.s.readPreference);Z.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),Z.s.file=Y;try{Z.s.bytesToTrim=Ps(Z,Y,Z.s.cursor,Z.s.options)}catch(K){return Z.emit(E1.ERROR,K)}Z.emit(E1.FILE,Y);return};Z.s.files.findOne(Z.s.filter,J).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},ws=function(Z,J){if(Z.s.file)return J();if(!Z.s.init)Ls(Z),Z.s.init=!0;Z.once("file",()=>{J()})},Rs=function(Z,J,$){if($&&$.start!=null){if($.start>J.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${J.length})`);if($.start<0)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return Z.s.bytesRead=Math.floor($.start/J.chunkSize)*J.chunkSize,Z.s.expected=Math.floor($.start/J.chunkSize),$.start-Z.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},Ps=function(Z,J,$,X){if(X&&X.end!=null){if(X.end>J.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${J.length})`);if(X.start==null||X.start<0)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/J.chunkSize):0;return $.limit(Math.ceil(X.end/J.chunkSize)-Y),Z.s.expectedEnd=Math.ceil(X.end/J.chunkSize),Math.ceil(X.end/J.chunkSize)*J.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(OE,"__esModule",{value:!0});OE.GridFSBucketReadStream=void 0;var js=import.meta.require("stream"),v0=h();class E1 extends js.Readable{constructor(Z,J,$,X,Y){super();this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:Z,expected:0,files:J,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;ws(this,()=>As(this))}start(Z=0){return hE(this),this.s.options.start=Z,this}end(Z=0){return hE(this),this.s.options.end=Z,this}async abort(){if(this.push(null),this.destroyed=!0,this.s.cursor)try{await this.s.cursor.close()}finally{this.emit(E1.CLOSE)}else if(!this.s.init)this.emit(E1.CLOSE)}}E1.ERROR="error";E1.FILE="file";E1.DATA="data";E1.END="end";E1.CLOSE="close";OE.GridFSBucketReadStream=E1});var MK=z((vE)=>{var UK=function(Z,J,$){if(Z.state.errored)return;if(Z.state.errored=!0,$)return $(J);Z.emit(L6.ERROR,J)},xE=function(Z,J,$){return{_id:new _E.ObjectId,files_id:Z,n:J,data:$}};async function Is(Z){const J={files_id:1,n:1};let $;try{$=await Z.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof x4.MongoError&&Y.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await Z.chunks.createIndex(J,{...Z.writeConcern,background:!0,unique:!0})}var VK=function(Z,J){if(Z.done)return!0;if(Z.state.streamEnd&&Z.state.outstandingRequests===0&&!Z.state.errored){Z.done=!0;const $=Ns(Z.id,Z.length,Z.chunkSizeBytes,Z.filename,Z.options.contentType,Z.options.aliases,Z.options.metadata);if(D9(Z,J))return!1;return Z.files.insertOne($,{writeConcern:Z.writeConcern}).then(()=>{Z.emit(L6.FINISH,$),Z.emit(L6.CLOSE)},(X)=>{return UK(Z,X,J)}),!0}return!1};async function Es(Z){if(await Z.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await Z.files.listIndexes().toArray()}catch(Q){if(Q instanceof x4.MongoError&&Q.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await Z.files.createIndex($,{background:!1});await Is(Z)}var Ns=function(Z,J,$,X,Y,Q,K){const G={_id:Z,length:J,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},Bs=function(Z,J,$,X){if(D9(Z,X))return!1;const Y=Buffer.isBuffer(J)?J:Buffer.from(J,$);if(Z.length+=Y.length,Z.pos+Y.length<Z.chunkSizeBytes)return Y.copy(Z.bufToStore,Z.pos),Z.pos+=Y.length,X&&X(),!0;let Q=Y.length,K=Z.chunkSizeBytes-Z.pos,G=Math.min(K,Y.length),q=0;while(Q>0){const F=Y.length-Q;Y.copy(Z.bufToStore,Z.pos,F,F+G),Z.pos+=G,K-=G;let W;if(K===0){if(W=xE(Z.id,Z.n,Buffer.from(Z.bufToStore)),++Z.state.outstandingRequests,++q,D9(Z,X))return!1;Z.chunks.insertOne(W,{writeConcern:Z.writeConcern}).then(()=>{if(--Z.state.outstandingRequests,--q,!q)Z.emit("drain",W),X&&X(),VK(Z)},(H)=>{return UK(Z,H)}),K=Z.chunkSizeBytes,Z.pos=0,++Z.n}Q-=G,G=Math.min(K,Q)}return!1},yE=function(Z,J){if(Z.bucket.s.checkedIndexes)return J(!1);return Z.bucket.once("index",()=>{J(!0)}),!0},kE=function(Z,J){if(Z.pos===0)return VK(Z,J);++Z.state.outstandingRequests;const $=Buffer.alloc(Z.pos);Z.bufToStore.copy($,0,0,Z.pos);const X=xE(Z.id,Z.n,$);if(D9(Z,J))return!1;return Z.chunks.insertOne(X,{writeConcern:Z.writeConcern}).then(()=>{--Z.state.outstandingRequests,VK(Z)},(Y)=>{return UK(Z,Y)}),!0},D9=function(Z,J){if(Z.state.aborted){if(typeof J==="function")J(new x4.MongoAPIError("Stream has been aborted"));return!0}return!1};Object.defineProperty(vE,"__esModule",{value:!0});vE.GridFSBucketWriteStream=void 0;var Ds=import.meta.require("stream"),_E=D1(),x4=h(),Ts=A0();class L6 extends Ds.Writable{constructor(Z,J,$){super();if($=$??{},this.bucket=Z,this.chunks=Z.s._chunksCollection,this.filename=J,this.files=Z.s._filesCollection,this.options=$,this.writeConcern=Ts.WriteConcern.fromOptions($)||Z.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new _E.ObjectId,this.chunkSizeBytes=$.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,Es(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}write(Z,J,$){const X=typeof J==="function"?void 0:J;return $=typeof J==="function"?J:$,yE(this,()=>Bs(this,Z,X,$))}async abort(){if(this.state.streamEnd)throw new x4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new x4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}end(Z,J,$){const X=typeof Z==="function"?void 0:Z,Y=typeof J==="function"?void 0:J;if($=typeof Z==="function"?Z:typeof J==="function"?J:$,this.state.streamEnd||D9(this,$))return this;if(this.state.streamEnd=!0,$)this.once(L6.FINISH,(Q)=>{if($)$(void 0,Q)});if(!X)return yE(this,()=>!!kE(this)),this;return this.write(X,Y,()=>{kE(this)}),this}}L6.CLOSE="close";L6.ERROR="error";L6.FINISH="finish";vE.GridFSBucketWriteStream=L6});var pE=z((uE)=>{Object.defineProperty(uE,"__esModule",{value:!0});uE.GridFSBucket=void 0;var gE=h(),Cs=C0(),hs=A0(),bE=zK(),mE=MK(),Os={bucketName:"fs",chunkSizeBytes:261120};class jK extends Cs.TypedEventEmitter{constructor(Z,J){super();this.setMaxListeners(0);const $={...Os,...J,writeConcern:hs.WriteConcern.fromOptions(J)};this.s={db:Z,options:$,_chunksCollection:Z.collection($.bucketName+".chunks"),_filesCollection:Z.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(Z,J){return new mE.GridFSBucketWriteStream(this,Z,J)}openUploadStreamWithId(Z,J,$){return new mE.GridFSBucketWriteStream(this,J,{...$,id:Z})}openDownloadStream(Z,J){return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:Z},J)}async delete(Z){const{deletedCount:J}=await this.s._filesCollection.deleteOne({_id:Z});if(await this.s._chunksCollection.deleteMany({files_id:Z}),J===0)throw new gE.MongoRuntimeError(`File not found for id ${Z}`)}find(Z={},J={}){return this.s._filesCollection.find(Z,J)}openDownloadStreamByName(Z,J){let $={uploadDate:-1},X=void 0;if(J&&J.revision!=null)if(J.revision>=0)$={uploadDate:1},X=J.revision;else X=-J.revision-1;return new bE.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:Z},{...J,sort:$,skip:X})}async rename(Z,J){const $={_id:Z},X={$set:{filename:J}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new gE.MongoRuntimeError(`File with id ${Z} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}jK.INDEX="index";uE.GridFSBucket=jK});var o5=z((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.AbstractCursor=P.MongoWriteConcernError=P.MongoUnexpectedServerResponseError=P.MongoTransactionError=P.MongoTopologyClosedError=P.MongoTailableCursorError=P.MongoSystemError=P.MongoServerSelectionError=P.MongoServerError=P.MongoServerClosedError=P.MongoRuntimeError=P.MongoParseError=P.MongoNotConnectedError=P.MongoNetworkTimeoutError=P.MongoNetworkError=P.MongoMissingDependencyError=P.MongoMissingCredentialsError=P.MongoKerberosError=P.MongoInvalidArgumentError=P.MongoGridFSStreamError=P.MongoGridFSChunkError=P.MongoExpiredSessionError=P.MongoError=P.MongoDriverError=P.MongoDecompressionError=P.MongoCursorInUseError=P.MongoCursorExhaustedError=P.MongoCompatibilityError=P.MongoChangeStreamError=P.MongoBatchReExecutionError=P.MongoAzureError=P.MongoAWSError=P.MongoAPIError=P.ChangeStreamCursor=P.MongoBulkWriteError=P.Timestamp=P.ObjectId=P.MinKey=P.MaxKey=P.Long=P.Int32=P.Double=P.Decimal128=P.DBRef=P.Code=P.BSONType=P.BSONSymbol=P.BSONRegExp=P.Binary=P.BSON=void 0;P.ServerClosedEvent=P.ConnectionReadyEvent=P.ConnectionPoolReadyEvent=P.ConnectionPoolMonitoringEvent=P.ConnectionPoolCreatedEvent=P.ConnectionPoolClosedEvent=P.ConnectionPoolClearedEvent=P.ConnectionCreatedEvent=P.ConnectionClosedEvent=P.ConnectionCheckOutStartedEvent=P.ConnectionCheckOutFailedEvent=P.ConnectionCheckedOutEvent=P.ConnectionCheckedInEvent=P.CommandSucceededEvent=P.CommandStartedEvent=P.CommandFailedEvent=P.WriteConcern=P.ReadPreference=P.ReadConcern=P.TopologyType=P.ServerType=P.ReadPreferenceMode=P.ReadConcernLevel=P.ProfilingLevel=P.ReturnDocument=P.ServerApiVersion=P.ExplainVerbosity=P.MongoErrorLabel=P.AutoEncryptionLoggerLevel=P.CURSOR_FLAGS=P.Compressor=P.AuthMechanism=P.GSSAPICanonicalizationValue=P.BatchType=P.UnorderedBulkOperation=P.OrderedBulkOperation=P.MongoClient=P.ListIndexesCursor=P.ListCollectionsCursor=P.GridFSBucketWriteStream=P.GridFSBucketReadStream=P.GridFSBucket=P.FindCursor=P.Db=P.Collection=P.ClientSession=P.ChangeStream=P.CancellationToken=P.AggregationCursor=P.Admin=void 0;P.SrvPollingEvent=P.TopologyOpeningEvent=P.TopologyDescriptionChangedEvent=P.TopologyClosedEvent=P.ServerOpeningEvent=P.ServerHeartbeatSucceededEvent=P.ServerHeartbeatStartedEvent=P.ServerHeartbeatFailedEvent=P.ServerDescriptionChangedEvent=void 0;var Ss=sX();Object.defineProperty(P,"Admin",{enumerable:!0,get:function(){return Ss.Admin}});var ys=MY();Object.defineProperty(P,"OrderedBulkOperation",{enumerable:!0,get:function(){return ys.OrderedBulkOperation}});var ks=jY();Object.defineProperty(P,"UnorderedBulkOperation",{enumerable:!0,get:function(){return ks.UnorderedBulkOperation}});var _s=H7();Object.defineProperty(P,"ChangeStream",{enumerable:!0,get:function(){return _s.ChangeStream}});var xs=T4();Object.defineProperty(P,"Collection",{enumerable:!0,get:function(){return xs.Collection}});var vs=Q6();Object.defineProperty(P,"AbstractCursor",{enumerable:!0,get:function(){return vs.AbstractCursor}});var fs=v5();Object.defineProperty(P,"AggregationCursor",{enumerable:!0,get:function(){return fs.AggregationCursor}});var gs=iY();Object.defineProperty(P,"FindCursor",{enumerable:!0,get:function(){return gs.FindCursor}});var bs=D3();Object.defineProperty(P,"ListCollectionsCursor",{enumerable:!0,get:function(){return bs.ListCollectionsCursor}});var ms=$3();Object.defineProperty(P,"ListIndexesCursor",{enumerable:!0,get:function(){return ms.ListIndexesCursor}});var us=sZ();Object.defineProperty(P,"Db",{enumerable:!0,get:function(){return us.Db}});var ds=pE();Object.defineProperty(P,"GridFSBucket",{enumerable:!0,get:function(){return ds.GridFSBucket}});var ps=zK();Object.defineProperty(P,"GridFSBucketReadStream",{enumerable:!0,get:function(){return ps.GridFSBucketReadStream}});var cs=MK();Object.defineProperty(P,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return cs.GridFSBucketWriteStream}});var ls=I7();Object.defineProperty(P,"MongoClient",{enumerable:!0,get:function(){return ls.MongoClient}});var as=C0();Object.defineProperty(P,"CancellationToken",{enumerable:!0,get:function(){return as.CancellationToken}});var is=S5();Object.defineProperty(P,"ClientSession",{enumerable:!0,get:function(){return is.ClientSession}});var ss=D1();Object.defineProperty(P,"BSON",{enumerable:!0,get:function(){return ss.BSON}});var I0=D1();Object.defineProperty(P,"Binary",{enumerable:!0,get:function(){return I0.Binary}});Object.defineProperty(P,"BSONRegExp",{enumerable:!0,get:function(){return I0.BSONRegExp}});Object.defineProperty(P,"BSONSymbol",{enumerable:!0,get:function(){return I0.BSONSymbol}});Object.defineProperty(P,"BSONType",{enumerable:!0,get:function(){return I0.BSONType}});Object.defineProperty(P,"Code",{enumerable:!0,get:function(){return I0.Code}});Object.defineProperty(P,"DBRef",{enumerable:!0,get:function(){return I0.DBRef}});Object.defineProperty(P,"Decimal128",{enumerable:!0,get:function(){return I0.Decimal128}});Object.defineProperty(P,"Double",{enumerable:!0,get:function(){return I0.Double}});Object.defineProperty(P,"Int32",{enumerable:!0,get:function(){return I0.Int32}});Object.defineProperty(P,"Long",{enumerable:!0,get:function(){return I0.Long}});Object.defineProperty(P,"MaxKey",{enumerable:!0,get:function(){return I0.MaxKey}});Object.defineProperty(P,"MinKey",{enumerable:!0,get:function(){return I0.MinKey}});Object.defineProperty(P,"ObjectId",{enumerable:!0,get:function(){return I0.ObjectId}});Object.defineProperty(P,"Timestamp",{enumerable:!0,get:function(){return I0.Timestamp}});var ns=N5();Object.defineProperty(P,"MongoBulkWriteError",{enumerable:!0,get:function(){return ns.MongoBulkWriteError}});var ts=w3();Object.defineProperty(P,"ChangeStreamCursor",{enumerable:!0,get:function(){return ts.ChangeStreamCursor}});var Z1=h();Object.defineProperty(P,"MongoAPIError",{enumerable:!0,get:function(){return Z1.MongoAPIError}});Object.defineProperty(P,"MongoAWSError",{enumerable:!0,get:function(){return Z1.MongoAWSError}});Object.defineProperty(P,"MongoAzureError",{enumerable:!0,get:function(){return Z1.MongoAzureError}});Object.defineProperty(P,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return Z1.MongoBatchReExecutionError}});Object.defineProperty(P,"MongoChangeStreamError",{enumerable:!0,get:function(){return Z1.MongoChangeStreamError}});Object.defineProperty(P,"MongoCompatibilityError",{enumerable:!0,get:function(){return Z1.MongoCompatibilityError}});Object.defineProperty(P,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return Z1.MongoCursorExhaustedError}});Object.defineProperty(P,"MongoCursorInUseError",{enumerable:!0,get:function(){return Z1.MongoCursorInUseError}});Object.defineProperty(P,"MongoDecompressionError",{enumerable:!0,get:function(){return Z1.MongoDecompressionError}});Object.defineProperty(P,"MongoDriverError",{enumerable:!0,get:function(){return Z1.MongoDriverError}});Object.defineProperty(P,"MongoError",{enumerable:!0,get:function(){return Z1.MongoError}});Object.defineProperty(P,"MongoExpiredSessionError",{enumerable:!0,get:function(){return Z1.MongoExpiredSessionError}});Object.defineProperty(P,"MongoGridFSChunkError",{enumerable:!0,get:function(){return Z1.MongoGridFSChunkError}});Object.defineProperty(P,"MongoGridFSStreamError",{enumerable:!0,get:function(){return Z1.MongoGridFSStreamError}});Object.defineProperty(P,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return Z1.MongoInvalidArgumentError}});Object.defineProperty(P,"MongoKerberosError",{enumerable:!0,get:function(){return Z1.MongoKerberosError}});Object.defineProperty(P,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return Z1.MongoMissingCredentialsError}});Object.defineProperty(P,"MongoMissingDependencyError",{enumerable:!0,get:function(){return Z1.MongoMissingDependencyError}});Object.defineProperty(P,"MongoNetworkError",{enumerable:!0,get:function(){return Z1.MongoNetworkError}});Object.defineProperty(P,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return Z1.MongoNetworkTimeoutError}});Object.defineProperty(P,"MongoNotConnectedError",{enumerable:!0,get:function(){return Z1.MongoNotConnectedError}});Object.defineProperty(P,"MongoParseError",{enumerable:!0,get:function(){return Z1.MongoParseError}});Object.defineProperty(P,"MongoRuntimeError",{enumerable:!0,get:function(){return Z1.MongoRuntimeError}});Object.defineProperty(P,"MongoServerClosedError",{enumerable:!0,get:function(){return Z1.MongoServerClosedError}});Object.defineProperty(P,"MongoServerError",{enumerable:!0,get:function(){return Z1.MongoServerError}});Object.defineProperty(P,"MongoServerSelectionError",{enumerable:!0,get:function(){return Z1.MongoServerSelectionError}});Object.defineProperty(P,"MongoSystemError",{enumerable:!0,get:function(){return Z1.MongoSystemError}});Object.defineProperty(P,"MongoTailableCursorError",{enumerable:!0,get:function(){return Z1.MongoTailableCursorError}});Object.defineProperty(P,"MongoTopologyClosedError",{enumerable:!0,get:function(){return Z1.MongoTopologyClosedError}});Object.defineProperty(P,"MongoTransactionError",{enumerable:!0,get:function(){return Z1.MongoTransactionError}});Object.defineProperty(P,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return Z1.MongoUnexpectedServerResponseError}});Object.defineProperty(P,"MongoWriteConcernError",{enumerable:!0,get:function(){return Z1.MongoWriteConcernError}});var rs=N5();Object.defineProperty(P,"BatchType",{enumerable:!0,get:function(){return rs.BatchType}});var os=eZ();Object.defineProperty(P,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return os.GSSAPICanonicalizationValue}});var es=k8();Object.defineProperty(P,"AuthMechanism",{enumerable:!0,get:function(){return es.AuthMechanism}});var Zn=jJ();Object.defineProperty(P,"Compressor",{enumerable:!0,get:function(){return Zn.Compressor}});var Jn=Q6();Object.defineProperty(P,"CURSOR_FLAGS",{enumerable:!0,get:function(){return Jn.CURSOR_FLAGS}});var $n=j7();Object.defineProperty(P,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return $n.AutoEncryptionLoggerLevel}});var Xn=h();Object.defineProperty(P,"MongoErrorLabel",{enumerable:!0,get:function(){return Xn.MongoErrorLabel}});var Yn=kX();Object.defineProperty(P,"ExplainVerbosity",{enumerable:!0,get:function(){return Yn.ExplainVerbosity}});var Qn=I7();Object.defineProperty(P,"ServerApiVersion",{enumerable:!0,get:function(){return Qn.ServerApiVersion}});var Kn=G3();Object.defineProperty(P,"ReturnDocument",{enumerable:!0,get:function(){return Kn.ReturnDocument}});var Gn=T3();Object.defineProperty(P,"ProfilingLevel",{enumerable:!0,get:function(){return Gn.ProfilingLevel}});var qn=d0();Object.defineProperty(P,"ReadConcernLevel",{enumerable:!0,get:function(){return qn.ReadConcernLevel}});var Fn=y1();Object.defineProperty(P,"ReadPreferenceMode",{enumerable:!0,get:function(){return Fn.ReadPreferenceMode}});var cE=p0();Object.defineProperty(P,"ServerType",{enumerable:!0,get:function(){return cE.ServerType}});Object.defineProperty(P,"TopologyType",{enumerable:!0,get:function(){return cE.TopologyType}});var Wn=d0();Object.defineProperty(P,"ReadConcern",{enumerable:!0,get:function(){return Wn.ReadConcern}});var Hn=y1();Object.defineProperty(P,"ReadPreference",{enumerable:!0,get:function(){return Hn.ReadPreference}});var zn=A0();Object.defineProperty(P,"WriteConcern",{enumerable:!0,get:function(){return zn.WriteConcern}});var AK=VQ();Object.defineProperty(P,"CommandFailedEvent",{enumerable:!0,get:function(){return AK.CommandFailedEvent}});Object.defineProperty(P,"CommandStartedEvent",{enumerable:!0,get:function(){return AK.CommandStartedEvent}});Object.defineProperty(P,"CommandSucceededEvent",{enumerable:!0,get:function(){return AK.CommandSucceededEvent}});var J8=iQ();Object.defineProperty(P,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedInEvent}});Object.defineProperty(P,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckedOutEvent}});Object.defineProperty(P,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutFailedEvent}});Object.defineProperty(P,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J8.ConnectionCheckOutStartedEvent}});Object.defineProperty(P,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionClosedEvent}});Object.defineProperty(P,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionCreatedEvent}});Object.defineProperty(P,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClearedEvent}});Object.defineProperty(P,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolClosedEvent}});Object.defineProperty(P,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolCreatedEvent}});Object.defineProperty(P,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolMonitoringEvent}});Object.defineProperty(P,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionPoolReadyEvent}});Object.defineProperty(P,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J8.ConnectionReadyEvent}});var w6=wJ();Object.defineProperty(P,"ServerClosedEvent",{enumerable:!0,get:function(){return w6.ServerClosedEvent}});Object.defineProperty(P,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.ServerDescriptionChangedEvent}});Object.defineProperty(P,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatFailedEvent}});Object.defineProperty(P,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatStartedEvent}});Object.defineProperty(P,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return w6.ServerHeartbeatSucceededEvent}});Object.defineProperty(P,"ServerOpeningEvent",{enumerable:!0,get:function(){return w6.ServerOpeningEvent}});Object.defineProperty(P,"TopologyClosedEvent",{enumerable:!0,get:function(){return w6.TopologyClosedEvent}});Object.defineProperty(P,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return w6.TopologyDescriptionChangedEvent}});Object.defineProperty(P,"TopologyOpeningEvent",{enumerable:!0,get:function(){return w6.TopologyOpeningEvent}});var Vn=QK();Object.defineProperty(P,"SrvPollingEvent",{enumerable:!0,get:function(){return Vn.SrvPollingEvent}})});import{createRequire as qh} from"module";var CK=X4($$(),1);class f4{static list(Z){return CK.default({},{argv:Z.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(Z,J){if(Z.length>J.length)throw new Error("Too many arguments");const $={};for(let X=0;X<J.length;X++){const Y=J[X];$[Y.name]=Z[X]}try{return $}catch(X){throw X}}static requireArguments(Z){let J="";if(Object.keys(Z).forEach((X,Y,Q)=>{if(Z[X]===void 0){if(J+=X,Y<Q.length-1)J+=", "}}),J!=="")throw new Error(`Argument ${J} is required`)}}class R6{constructor(Z){var J;this.opts={},this.args={},this.name=Z.name,this.alias=(J=Z.alias)!==null&&J!==void 0?J:[],this.description=Z.description,this.summary=Z.summary,this.arguments=Z.arguments,this.options=Z.options}}import*as I9 from"tty";var{env:P6={},argv:OK=[],platform:HN=""}=typeof process==="undefined"?{}:process,zN="NO_COLOR"in P6||OK.includes("--no-color"),VN="FORCE_COLOR"in P6||OK.includes("--color"),UN=HN==="win32",SK=P6.TERM==="dumb",MN=I9&&I9.isatty&&I9.isatty(1)&&P6.TERM&&!SK,jN="CI"in P6&&(("GITHUB_ACTIONS"in P6)||("GITLAB_CI"in P6)||("CIRCLECI"in P6)),AN=!zN&&(VN||UN&&!SK||MN||jN),yK=(Z,J,$,X,Y=J.substring(0,Z)+X,Q=J.substring(Z+$.length),K=Q.indexOf($))=>Y+(K<0?Q:yK(K,Q,$,X)),LN=(Z,J,$,X,Y)=>Z<0?$+J+X:$+yK(Z,J,X,Y)+X,wN=(Z,J,$=Z,X=Z.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?LN((""+Y).indexOf(J,X),Y,Z,J,$):"",d=(Z,J,$)=>wN(`\x1B[${Z}m`,`\x1B[${J}m`,$),hK={reset:d(0,0),bold:d(1,22,"\x1B[22m\x1B[1m"),dim:d(2,22,"\x1B[22m\x1B[2m"),italic:d(3,23),underline:d(4,24),inverse:d(7,27),hidden:d(8,28),strikethrough:d(9,29),black:d(30,39),red:d(31,39),green:d(32,39),yellow:d(33,39),blue:d(34,39),magenta:d(35,39),cyan:d(36,39),white:d(37,39),gray:d(90,39),bgBlack:d(40,49),bgRed:d(41,49),bgGreen:d(42,49),bgYellow:d(43,49),bgBlue:d(44,49),bgMagenta:d(45,49),bgCyan:d(46,49),bgWhite:d(47,49),blackBright:d(90,39),redBright:d(91,39),greenBright:d(92,39),yellowBright:d(93,39),blueBright:d(94,39),magentaBright:d(95,39),cyanBright:d(96,39),whiteBright:d(97,39),bgBlackBright:d(100,49),bgRedBright:d(101,49),bgGreenBright:d(102,49),bgYellowBright:d(103,49),bgBlueBright:d(104,49),bgMagentaBright:d(105,49),bgCyanBright:d(106,49),bgWhiteBright:d(107,49)},RN=({useColor:Z=AN}={})=>Z?hK:Object.keys(hK).reduce((J,$)=>({...J,[$]:String}),{}),{reset:Sn,bold:yn,dim:kn,italic:_n,underline:xn,inverse:vn,hidden:fn,strikethrough:gn,black:bn,red:kK,green:_K,yellow:xK,blue:vK,magenta:mn,cyan:un,white:dn,gray:fK,bgBlack:pn,bgRed:gK,bgGreen:bK,bgYellow:mK,bgBlue:uK,bgMagenta:cn,bgCyan:ln,bgWhite:an,blackBright:sn,redBright:nn,greenBright:tn,yellowBright:rn,blueBright:on,magentaBright:en,cyanBright:Zt,whiteBright:Jt,bgBlackBright:$t,bgRedBright:Xt,bgGreenBright:Yt,bgYellowBright:Qt,bgBlueBright:Kt,bgMagentaBright:Gt,bgCyanBright:qt,bgWhiteBright:Ft}=RN();class $1{static red(Z){return kK(Z)}static green(Z){return _K(Z)}static blue(Z){return vK(Z)}static gray(Z){return fK(Z)}static yellow(Z){return xK(Z)}static bgRed(Z){return gK(Z)}static bgGreen(Z){return bK(Z)}static bgBlue(Z){return uK(Z)}static bgYellow(Z){return mK(Z)}}class X${constructor(Z){this.commands=[],this.name=Z}getCommands(){return this.commands.filter((Z)=>Z.name!=="")}getCommand(Z){var J;return(J=this.commands.find(($)=>$.name===Z))!==null&&J!==void 0?J:this.commands.find(($)=>$.alias.includes(Z))}createCommand(Z){this.addHelpFlag(Z),this.commands.push(Z)}findDuplicate(){const Z=new Set,J=[],$=[],X=[];return this.commands.forEach((Y)=>{if(Z.size===Z.add(Y.name).size)J.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((F)=>{if(K.size===K.add(F.name).size)Q.push(F.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],q=new Set;if(Y.options.forEach((F)=>{if(q.size===q.add(F.flag).size)G.push(F.flag);if(F.type==="boolean"&&F.shorthand&&q.size===q.add(F.shorthand).size)G.push(F.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:J.length>0||$.length>0||X.length>0,commands:J,arguments:$,options:X}}addHelpFlag(Z){Z.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var uG=X4(mG(),1);class U$ extends uG.default{constructor(Z){super(Z)}static termsWidth(...Z){return Math.max(...Z)}}class l8 extends U${constructor(Z=30){super({colWidths:[Z,process.stdout.columns-Z],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class Y8{static rootHelp(Z,J){this.outputRoot+=$1.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${Z.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("COMMANDS"),this.outputRoot+=this.br();const $=l8.termsWidth(Y8.commandTermLength(Z.getCommands()),Y8.optionTermLength(J)),X=new l8($+this.separatorLength+Math.round($/2));Z.getCommands().forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=$1.yellow("OPTIONS"),this.outputRoot+=this.br(),J.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(Z,J){if(this.output+=$1.yellow("USAGE"),this.output+=this.br(),this.output+=` ${Z.name} ${J.name}`,J.options.length)this.output+=" [options]";J.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("ARGUMENTS"),this.output+=this.br();const $=l8.termsWidth(Y8.argumentTermLength(J.arguments),Y8.optionTermLength(J.options)),X=new l8($+this.separatorLength+Math.round($/2));J.arguments.forEach((Q)=>{X.push([$1.green(Q.name),$1.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=$1.yellow("OPTIONS"),this.output+=this.br();const Y=new l8($+this.separatorLength+Math.round($/2));if(J.options.forEach((Q)=>{let K=$1.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${$1.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,$1.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),J.alias.length)this.output+=this.br(),this.output+=$1.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${$1.green(J.alias.join(","))}`;console.log(this.output)}static br(Z=1){let J="";for(let $=0;$<Z;$++)J+="\n";return J}static commandTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}static optionTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.flag.length)},0)}static argumentTermLength(Z){return Z.reduce((J,$)=>{return Math.max(J,$.name.length)},0)}}Y8.separatorLength=10;Y8.outputRoot="";Y8.output="";var M$=X4($$(),1);class O9{static convert(Z){const J={};for(let $=0;$<Z.length;$++){const X=Z[$];if(J[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)J[X.shorthand]=X.flag}return J}static parseRoot(Z,J){try{const $=this.convert(J);return M$.default($,{argv:Z.slice(2)})}catch($){throw $}}static parse(Z,J,$){try{const X=this.convert($),Y=M$.default(X,{argv:Z.slice(3)});return{args:f4.parse(Y._,J),opts:Y}}catch(X){throw X}}}var Gh=X4(eH(),1);class Zz{constructor(Z,J){if(J)this.version=J;else this.version=this.packageVersion();this.command=new X$(Z)}packageVersion(){const Z=qh(import.meta.url),{version:J}=Z("../package.json");return J}register(Z){this.command.createCommand(Z)}run(Z){try{const J=this.command.findDuplicate();if(J.isDuplicate){if(J.commands.length)console.error($1.red("[ERROR] Duplicate commands")),console.error(J.commands);if(J.arguments.length)console.error($1.red("[ERROR] Duplicate arguments")),console.error(J.arguments);if(J.options.length)console.error($1.red("[ERROR] Duplicate options")),console.error(J.options);return}if(f4.list(Z).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(O9.parseRoot(Z,Q)["--version"])return console.log(this.version);return Y8.rootHelp(this.command,Q)}let X=this.command.getCommand(Z[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=O9.parse(Z,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return Y8.commandHelp(this.command,X);f4.requireArguments(X.args),X.handle()}catch(J){if(J instanceof Error)return console.error($1.red(`[ERROR] ${J.message}`));return console.error(J)}}}function n9(Z,J,$){$(new G4(404))}class g0 extends Error{constructor(Z){super(Z.message);Object.setPrototypeOf(this,new.target.prototype),this.code=Z.code,this.status=Z.status,this.message=Z.message,this.errors=Z.errors,Error.captureStackTrace(this)}}var $5=(Z)=>{if(Z instanceof g0)return Z.isOperational;return!1};function t9(Z,J,$,X){if(Z instanceof g0&&$5(Z)){const Q={name:Z.name,code:Z.code,status:Z.status,message:Z.message};if(Z.errors)Q.errors=Z.errors;return $.status(Z.code).json(Q),X(Z)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(Z)}function q4(Z){if(typeof Z==="number")return Jz.find((J)=>{return J.code===Z});else return Jz.find((J)=>{return J.status===Z})}var Jz=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class G4 extends g0{constructor(Z,J){const $=q4(Z);if(!$)throw new Error(`Error codeStatus "${Z}" not found`);const X=$;if(J)X.errors=J;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var QN=X4(o5(),1);import k61 from"fs";import x61 from"path";import g61 from"fs";import m61 from"path";import p61 from"fs";var LK=(Z)=>Z[0].toUpperCase()+Z.slice(1);var T9=(Z)=>{return Z.replace(/(?:^\w|[A-Z]|\b\w)/g,function(J,$){return $===0?J.toLowerCase():J.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var v4=(Z)=>LK(T9(Z));var O1=(Z)=>Z.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import g7 from"fs";import aE from"path";class tJ extends R6{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(g7.existsSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`)){console.error($1.red("Command directory is exists"));return}g7.mkdirSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}`,{recursive:!0});const Z=g7.readFileSync(aE.resolve($4,"./command/index.command.ts")).toString().replace("[name]",O1(this.args.name)).replace("NewCommand",`${v4(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.command.ts`,Z);const J=g7.readFileSync(aE.resolve($4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${v4(this.args.name)}Command`).replace(/newCommand/g,`${T9(this.args.name)}Command`);g7.writeFileSync(`${process.cwd()}/src/console/commands/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/console/commands/${O1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${O1(this.args.name)}/index.spec.ts`,"has been created")}}import d8 from"fs";import rJ from"path";class oJ extends R6{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(d8.existsSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`)){console.error($1.red("Middleware directory is exists"));return}if(d8.mkdirSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const Z=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${v4(this.args.name)}Middleware`);d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.middleware.ts`,Z);const J=d8.readFileSync(rJ.resolve($4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");d8.writeFileSync(`${process.cwd()}/src/middleware/${O1(this.args.name)}/index.spec.ts`,J),console.info(`src/middleware/${O1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${O1(this.args.name)}/index.spec.ts`,"has been created")}}class wK{command;constructor(Z){this.command=Z}async register(){this.command.register(new tJ),this.command.register(new oJ)}}class RK{Z;session;constructor(Z){this.adapter=Z}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(Z){return this.adapter.database(Z),this}collection(Z){return this.adapter.collection(Z),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(Z,J,$){await this.adapter.createIndex(Z,J,$)}async createCollection(Z,J){await this.adapter.createCollection(Z,J)}async dropCollection(Z,J){await this.adapter.dropCollection(Z,J)}async updateSchema(Z,J){await this.adapter.updateSchema(Z,J)}async create(Z,J){return await this.adapter.create(Z,J)}async createMany(Z,J){return await this.adapter.createMany(Z,J)}async retrieveAll(Z,J){return await this.adapter.retrieveAll(Z,J)}async retrieve(Z,J){return await this.adapter.retrieve(Z,J)}async update(Z,J,$){return await this.adapter.update(Z,J,$)}async updateMany(Z,J,$){return await this.adapter.updateMany(Z,J,$)}async delete(Z,J){return await this.adapter.delete(Z,J)}async deleteMany(Z,J){return await this.adapter.deleteMany(Z,J)}async deleteAll(Z){return await this.adapter.deleteAll(Z)}async aggregate(Z,J,$){return await this.adapter.aggregate(Z,J,$)}}var m7=X4(o5(),1);function iE(Z){const J=Object.prototype.toString.call(Z);if(Z instanceof Date||typeof Z==="object"&&J==="[object Date]")return new Z.constructor(+Z);else if(typeof Z==="number"||J==="[object Number]"||typeof Z==="string"||J==="[object String]")return new Date(Z);else return new Date(NaN)}function sE(Z){return Z instanceof Date||typeof Z==="object"&&Object.prototype.toString.call(Z)==="[object Date]"}function eJ(Z){if(!sE(Z)&&typeof Z!=="number")return!1;const J=iE(Z);return!isNaN(Number(J))}var b7=X4(o5(),1);class V0{db;constructor(Z){this.db=Z}async createUnique(Z,J){await this.db.createIndex(Z,J,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(Z,J){await this.db.createIndex(Z,J,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(Z){return(await this.db.listCollections()).some(function($){return $.name===Z})}static stringToObjectId(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.stringToObjectId(J)});else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{const X=V0.stringToObjectId(Z[$]);return J[$]=X,J},{});else if(typeof Z==="string"&&b7.ObjectId.isValid(Z)&&Z===new b7.ObjectId(Z).toString())return new b7.ObjectId(Z);return Z}static objectIdToString(Z){if(Z==null)return null;if(Array.isArray(Z))return Z.map((J)=>{return V0.objectIdToString(J)});else if(typeof Z==="object"&&b7.ObjectId.isValid(Z))return Z.toString();else if(typeof Z==="object"&&!eJ(Z))return Object.keys(Z).reduce((J,$)=>{if(b7.ObjectId.isValid(Z)||eJ(Z))return Z.toString();else{const X=V0.objectIdToString(Z[$]);return J[$]=X,J}},{});return Z}}function nE(Z=1){if(typeof Z==="string")return parseInt(Z);return Z}function tE(Z=10){if(typeof Z==="string")return parseInt(Z);return Z}function Pn(Z,J){return(nE(Z)-1)*tE(J)}function Dn(Z){return Z}function Tn(Z="",J=[]){const $=oE(rE(Z));return eE($,J)}function rE(Z){return Z.split(" ").join().split(",").filter((J)=>J)}function oE(Z,J=1){const $={};for(let X=0;X<Z.length;X++)$[`${Z[X].trim()}`]=J;return $}function eE(Z,J){for(let $=0;$<J.length;$++)Z[`${J[$]}`]=0;return Z}function In(Z){const J={};if(Z)Z.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),J[$.trim()]=-1;else J[$.trim()]=1});return J}var L1={page:nE,limit:tE,skip:Pn,sort:In,fields:Tn,filter:Dn,filterExludeFields:eE,convertStringToArray:rE,convertArrayToObject:oE};class PK{J;client;_database;_collection;session;constructor(Z,J){this.databaseName=J;const $={};this.client=new m7.MongoClient(Z,$),this.database(J)}async open(){await this.client.connect()}async close(){await this.client.close()}database(Z,J){return this._database=this.client.db(Z,J),this}collection(Z,J){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(Z,J),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(Z,J,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(Z,J,$)}async updateSchema(Z,J){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:Z,validator:{$jsonSchema:J}})}async createCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.createCollection(Z,J)}async dropCollection(Z,J){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(Z,J)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{insertedId:(await this._collection.insertOne(Z,$)).insertedId.toString()}}async createMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.insertMany(Z,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=this._collection.find(V0.stringToObjectId(Z.filter??{}),$).limit(L1.limit(Z.pageSize)).skip(L1.skip(L1.page(Z.page),L1.limit(Z.pageSize)));if(Z.sort&&L1.sort(Z.sort))X.sort(L1.sort(Z.sort));if(L1.fields(Z.fields,Z.excludeFields))X.project(L1.fields(Z.fields,Z.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(Z.filter??{},$);return{data:V0.objectIdToString(Y),pagination:{page:L1.page(Z.page),pageCount:Math.ceil(Q/L1.limit(Z.pageSize)),pageSize:L1.limit(Z.pageSize),totalDocument:Q}}}async retrieve(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J,X=await this._collection.findOne({_id:new m7.ObjectId(Z)},$);return V0.objectIdToString(X)}async update(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new m7.ObjectId(Z)},{$set:V0.stringToObjectId(J)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(Z,{$set:V0.stringToObjectId(J)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteOne({_id:new m7.ObjectId(Z)},$)).deletedCount}}async deleteMany(Z,J){if(!this._collection)throw new Error("Collection not found");const $=J;return{deletedCount:(await this._collection.deleteMany({_id:{$in:V0.stringToObjectId(Z)}},$)).deletedCount}}async deleteAll(Z){if(!this._collection)throw new Error("Collection not found");const J=Z;return{deletedCount:(await this._collection.deleteMany({},J)).deletedCount}}async aggregate(Z,J,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...Z,{$skip:(L1.page(J.page)-1)*L1.limit(J.pageSize)},{$limit:L1.limit(J.pageSize)}],X);if(J.sort&&L1.sort(J.sort))Y.sort(L1.sort(J.sort));if(L1.fields(J.fields,J.excludeFields))Y.project(L1.fields(J.fields,J.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...Z,{$count:"totalDocument"}],X).toArray(),q=G.length?G[0].totalDocument:0;return{data:V0.objectIdToString(Q),pagination:{page:L1.page(J.page),pageCount:Math.ceil(q/L1.limit(J.pageSize)),pageSize:L1.limit(J.pageSize),totalDocument:q}}}}function En(Z,J){J.errors={},(Z.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],J.errors=Y})}function Nn(Z,J){if(Object.keys(Z.keyPattern).length===1)J.errors={[Object.keys(Z.keyPattern)[0]]:[`The ${Object.keys(Z.keyPattern)[0]} is exists.`]};else{const $=Object.keys(Z.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(Z.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(Z.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});J.errors=X}}class DK extends g0{constructor(Z){const J=q4(422);if(Z.code===121)En(Z,J);else if(Z.code===11000)Nn(Z,J);super(J);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}function TK(){return(Z,J,$,X)=>{if(Z instanceof ZN)throw new JN(Z);X(Z)}}class $8{static dbConnection;static async open(Z,J="api_test"){$8.dbConnection=new $N(Z,J),await $8.dbConnection.open()}static async close(){await $8.dbConnection.close()}static async createCollections(Z){const J=new XN($8.dbConnection);for(let $=0;$<Z.length;$++)for(let X=0;X<Z[$].length;X++){if(!await J.isExists(Z[$][X].collection))console.info(`[schema] ${Z[$][X].collection} - create collection`),await $8.dbConnection.createCollection(Z[$][X].collection);console.info(`[schema] ${Z[$][X].collection} - update schema`),await $8.dbConnection.updateSchema(Z[$][X].collection,Z[$][X].schema);for(let Y of Z[$][X].unique)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUnique(Z[$][X].collection,IK.convertArrayToObject(Y,-1));for(let Y of Z[$][X].uniqueIfExists)if(Y.length)console.info(`[schema] ${Z[$][X].collection} - create unique attribute "name"`),await J.createUniqueIfNotNull(Z[$][X].collection,IK.convertArrayToObject(Y,-1))}}static async reset(){const Z=await $8.dbConnection.listCollections();for(let J of Z)await $8.dbConnection.collection(J.name).deleteAll()}static async retrieve(Z,J){return await $8.dbConnection.collection(Z).retrieve(J)}static async retrieveAll(Z,J={}){return await $8.dbConnection.collection(Z).retrieveAll(J)}}class EK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(Z){return this.modelCount=Z,this}sequence(Z){return this.modelSequence=Z,this}state(Z){return this.modelState=Z,this}useSequence(){const Z=[];for(let J=0;J<this.modelCount;J++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[J%this.modelSequence.length];Z.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return Z}useState(Z){return Object.assign(Object.assign({},Z),this.modelState)}make(Z=1){if(this.count(Z),this.modelCount===1)return this.makeOne();return this.makeMany(Z)}makeOne(){return this.useState(this.definition())}makeMany(Z){return this.count(Z),this.useSequence()}}class YN{app;server=null;constructor(Z){this.app=Z}listen(Z,J){return new Promise(($,X)=>{if(J)this.server=this.app.listen(Z,J).once("listening",$).once("error",X);else this.server=this.app.listen(Z).once("listening",$).once("error",X)})}async start(Z,J){await this.listen(Z,J)}stop(){this.server?.close(),this.server=null}get host(){const Z=this.server?.address();if(Z?.address==="0.0.0.0"||Z?.address==="::")return"localhost";else return Z?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var $4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),U51=R6,M51=wK,j51=RK,$N=PK,XN=V0,IK=L1,ZN=QN.MongoServerError,JN=DK,A51={ApiError:G4,BaseError:g0,isTrustedError:$5,getHttpError:q4,mongodbErrorHandlerMiddleware:TK,errorHandlerMiddleware:t9,invalidPathMiddleware:n9};export{$4 as stubDir,$8 as DatabaseTestUtil,YN as BaseServer,ZN as BaseMongoServerError,JN as BaseMongoErrorHandler,IK as BaseMongoDBQuerystring,XN as BaseMongoDBHelper,$N as BaseMongoDBConnection,EK as BaseFactory,A51 as BaseErrorHandler,j51 as BaseDatabaseConnection,M51 as BaseConsoleKernel,U51 as BaseConsoleCommand,Zz as BaseConsoleCli};