class BinaryIndexedTreeimport { BinaryIndexedTree } from "https://deno.land/x/live@1.96.2/daemon/realtime/crdt/bit.ts"; ConstructorsnewBinaryIndexedTree(upperLimit?: number)Propertiesbit: Map<number, number>upperLimit: numberMethodsprivategetSum(r: number): numberprivateincrease(idx: number, delta: number): voidquery(r: number): numberrangeQuery(left: number, right: number): numberupdate(idx: number, delta: number): void