@tung-engineering/agent-platform-web-sdk 0.0.69 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web-sdk.mjs CHANGED
@@ -3011,8 +3011,8 @@ const sh = /* @__PURE__ */ w("$ZodObject", (e, t) => {
3011
3011
  const n = e._zod.parse, r = Yo(() => lc(t)), o = (m) => {
3012
3012
  var T;
3013
3013
  const k = new Ep(["shape", "payload", "ctx"]), y = r.value, E = (S) => {
3014
- const C = Oi(S);
3015
- return `shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`;
3014
+ const P = Oi(S);
3015
+ return `shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`;
3016
3016
  };
3017
3017
  k.write("const input = payload.value;");
3018
3018
  const Z = /* @__PURE__ */ Object.create(null);
@@ -3021,46 +3021,46 @@ const sh = /* @__PURE__ */ w("$ZodObject", (e, t) => {
3021
3021
  Z[S] = `key_${ee++}`;
3022
3022
  k.write("const newResult = {};");
3023
3023
  for (const S of y.keys) {
3024
- const C = Z[S], D = Oi(S), J = m[S], he = ((T = J == null ? void 0 : J._zod) == null ? void 0 : T.optout) === "optional";
3025
- k.write(`const ${C} = ${E(S)};`), he ? k.write(`
3026
- if (${C}.issues.length) {
3024
+ const P = Z[S], D = Oi(S), J = m[S], he = ((T = J == null ? void 0 : J._zod) == null ? void 0 : T.optout) === "optional";
3025
+ k.write(`const ${P} = ${E(S)};`), he ? k.write(`
3026
+ if (${P}.issues.length) {
3027
3027
  if (${D} in input) {
3028
- payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
3028
+ payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
3029
3029
  ...iss,
3030
3030
  path: iss.path ? [${D}, ...iss.path] : [${D}]
3031
3031
  })));
3032
3032
  }
3033
3033
  }
3034
3034
 
3035
- if (${C}.value === undefined) {
3035
+ if (${P}.value === undefined) {
3036
3036
  if (${D} in input) {
3037
3037
  newResult[${D}] = undefined;
3038
3038
  }
3039
3039
  } else {
3040
- newResult[${D}] = ${C}.value;
3040
+ newResult[${D}] = ${P}.value;
3041
3041
  }
3042
3042
 
3043
3043
  `) : k.write(`
3044
- if (${C}.issues.length) {
3045
- payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
3044
+ if (${P}.issues.length) {
3045
+ payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
3046
3046
  ...iss,
3047
3047
  path: iss.path ? [${D}, ...iss.path] : [${D}]
3048
3048
  })));
3049
3049
  }
3050
3050
 
3051
- if (${C}.value === undefined) {
3051
+ if (${P}.value === undefined) {
3052
3052
  if (${D} in input) {
3053
3053
  newResult[${D}] = undefined;
3054
3054
  }
3055
3055
  } else {
3056
- newResult[${D}] = ${C}.value;
3056
+ newResult[${D}] = ${P}.value;
3057
3057
  }
3058
3058
 
3059
3059
  `);
3060
3060
  }
3061
3061
  k.write("payload.value = newResult;"), k.write("return payload;");
3062
3062
  const N = k.compile();
3063
- return (S, C) => N(m, S, C);
3063
+ return (S, P) => N(m, S, P);
3064
3064
  };
3065
3065
  let i;
3066
3066
  const a = Dr, d = !Wa.jitless, p = d && vd.value, h = t.catchall;
@@ -4028,11 +4028,11 @@ function mc(e, t) {
4028
4028
  var E, Z, ee, N, T;
4029
4029
  const g = e.target === "draft-2020-12" ? "$defs" : "definitions";
4030
4030
  if (e.external) {
4031
- const S = (E = e.external.registry.get(h[0])) == null ? void 0 : E.id, C = (Z = e.external.uri) != null ? Z : ((J) => J);
4031
+ const S = (E = e.external.registry.get(h[0])) == null ? void 0 : E.id, P = (Z = e.external.uri) != null ? Z : ((J) => J);
4032
4032
  if (S)
4033
- return { ref: C(S) };
4033
+ return { ref: P(S) };
4034
4034
  const D = (N = (ee = h[1].defId) != null ? ee : h[1].schema.id) != null ? N : `schema${e.counter++}`;
4035
- return h[1].defId = D, { defId: D, ref: `${C("__shared")}#/${g}/${D}` };
4035
+ return h[1].defId = D, { defId: D, ref: `${P("__shared")}#/${g}/${D}` };
4036
4036
  }
4037
4037
  if (h[1] === n)
4038
4038
  return { ref: "#" };
@@ -4096,11 +4096,11 @@ function bc(e, t) {
4096
4096
  const k = (ee = m.def) != null ? ee : m.schema, y = v({}, k), E = m.ref;
4097
4097
  if (m.ref = null, E) {
4098
4098
  r(E);
4099
- const S = e.seen.get(E), C = S.schema;
4100
- if (C.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (k.allOf = (N = k.allOf) != null ? N : [], k.allOf.push(C)) : Object.assign(k, C), Object.assign(k, y), g._zod.parent === E)
4099
+ const S = e.seen.get(E), P = S.schema;
4100
+ if (P.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (k.allOf = (N = k.allOf) != null ? N : [], k.allOf.push(P)) : Object.assign(k, P), Object.assign(k, y), g._zod.parent === E)
4101
4101
  for (const J in k)
4102
4102
  J === "$ref" || J === "allOf" || J in y || delete k[J];
4103
- if (C.$ref)
4103
+ if (P.$ref)
4104
4104
  for (const J in k)
4105
4105
  J === "$ref" || J === "allOf" || J in S.def && JSON.stringify(k[J]) === JSON.stringify(S.def[J]) && delete k[J];
4106
4106
  }
@@ -4109,8 +4109,8 @@ function bc(e, t) {
4109
4109
  r(Z);
4110
4110
  const S = e.seen.get(Z);
4111
4111
  if (S != null && S.schema.$ref && (k.$ref = S.schema.$ref, S.def))
4112
- for (const C in k)
4113
- C === "$ref" || C === "allOf" || C in S.def && JSON.stringify(k[C]) === JSON.stringify(S.def[C]) && delete k[C];
4112
+ for (const P in k)
4113
+ P === "$ref" || P === "allOf" || P in S.def && JSON.stringify(k[P]) === JSON.stringify(S.def[P]) && delete k[P];
4114
4114
  }
4115
4115
  e.override({
4116
4116
  zodSchema: g,
@@ -4458,7 +4458,7 @@ const Xf = (e, t) => {
4458
4458
  }), lg = /* @__PURE__ */ w("ZodString", (e, t) => {
4459
4459
  Gs.init(e, t), _c.init(e, t), e.email = (n) => e.check(/* @__PURE__ */ Th(ug, n)), e.url = (n) => e.check(/* @__PURE__ */ Rh(dg, n)), e.jwt = (n) => e.check(/* @__PURE__ */ Bh(Eg, n)), e.emoji = (n) => e.check(/* @__PURE__ */ Lh(pg, n)), e.guid = (n) => e.check(/* @__PURE__ */ Gi(Xi, n)), e.uuid = (n) => e.check(/* @__PURE__ */ Eh(lo, n)), e.uuidv4 = (n) => e.check(/* @__PURE__ */ Ah(lo, n)), e.uuidv6 = (n) => e.check(/* @__PURE__ */ Ch(lo, n)), e.uuidv7 = (n) => e.check(/* @__PURE__ */ Ph(lo, n)), e.nanoid = (n) => e.check(/* @__PURE__ */ Ih(hg, n)), e.guid = (n) => e.check(/* @__PURE__ */ Gi(Xi, n)), e.cuid = (n) => e.check(/* @__PURE__ */ zh(fg, n)), e.cuid2 = (n) => e.check(/* @__PURE__ */ $h(gg, n)), e.ulid = (n) => e.check(/* @__PURE__ */ Oh(mg, n)), e.base64 = (n) => e.check(/* @__PURE__ */ qh(xg, n)), e.base64url = (n) => e.check(/* @__PURE__ */ Hh(Sg, n)), e.xid = (n) => e.check(/* @__PURE__ */ Nh(bg, n)), e.ksuid = (n) => e.check(/* @__PURE__ */ Dh(kg, n)), e.ipv4 = (n) => e.check(/* @__PURE__ */ Mh(_g, n)), e.ipv6 = (n) => e.check(/* @__PURE__ */ Uh(vg, n)), e.cidrv4 = (n) => e.check(/* @__PURE__ */ jh(yg, n)), e.cidrv6 = (n) => e.check(/* @__PURE__ */ Zh(wg, n)), e.e164 = (n) => e.check(/* @__PURE__ */ Fh(Tg, n)), e.datetime = (n) => e.check(Hf(n)), e.date = (n) => e.check(Bf(n)), e.time = (n) => e.check(Wf(n)), e.duration = (n) => e.check(Yf(n));
4460
4460
  });
4461
- function R(e) {
4461
+ function C(e) {
4462
4462
  return /* @__PURE__ */ Sh(lg, e);
4463
4463
  }
4464
4464
  const ye = /* @__PURE__ */ w("ZodStringFormat", (e, t) => {
@@ -4769,49 +4769,49 @@ function om(e) {
4769
4769
  return /* @__PURE__ */ mf(e);
4770
4770
  }
4771
4771
  const sm = fe({
4772
- name: R().min(1).max(100).optional(),
4773
- command: R().min(1).max(500),
4774
- args: St(R()).optional(),
4772
+ name: C().min(1).max(100).optional(),
4773
+ command: C().min(1).max(500),
4774
+ args: St(C()).optional(),
4775
4775
  failOnError: ge().default(!0).optional(),
4776
4776
  timeout: Ot().int().min(1e3).max(3e5).default(3e4).optional(),
4777
- workingDirectory: R().optional(),
4778
- env: It(R(), R()).optional(),
4777
+ workingDirectory: C().optional(),
4778
+ env: It(C(), C()).optional(),
4779
4779
  runOnBackground: ge().optional()
4780
4780
  });
4781
4781
  fe({
4782
- name: R(),
4783
- command: R(),
4782
+ name: C(),
4783
+ command: C(),
4784
4784
  success: ge(),
4785
4785
  exitCode: Ot().optional(),
4786
- stdout: R().optional(),
4787
- stderr: R().optional(),
4788
- error: R().optional(),
4786
+ stdout: C().optional(),
4787
+ stderr: C().optional(),
4788
+ error: C().optional(),
4789
4789
  duration: Ot(),
4790
4790
  failOnError: ge()
4791
4791
  });
4792
4792
  const yn = fe({
4793
- path: R(),
4793
+ path: C(),
4794
4794
  extraCommands: St(sm).optional(),
4795
- id: R().uuid().optional(),
4796
- rotationKey: R().optional(),
4795
+ id: C().uuid().optional(),
4796
+ rotationKey: C().optional(),
4797
4797
  usageStatus: dt(["free", "in_use"]).optional()
4798
4798
  }), im = xc("operation", [
4799
4799
  yn.extend({
4800
4800
  operation: ut("create"),
4801
- content: R().optional(),
4802
- contentPath: R().optional(),
4801
+ content: C().optional(),
4802
+ contentPath: C().optional(),
4803
4803
  encoding: dt(["utf-8", "base64"]).optional()
4804
4804
  }),
4805
4805
  yn.extend({
4806
4806
  operation: ut("merge"),
4807
- data: It(R(), yc()),
4807
+ data: It(C(), yc()),
4808
4808
  mergeStrategy: dt(["deep", "shallow"]).optional(),
4809
4809
  arrayMergeStrategy: dt(["concat", "replace"]).optional()
4810
4810
  }),
4811
4811
  yn.extend({
4812
4812
  operation: ut("modify"),
4813
- content: R().optional(),
4814
- contentPath: R().optional(),
4813
+ content: C().optional(),
4814
+ contentPath: C().optional(),
4815
4815
  createIfMissing: ge().optional()
4816
4816
  }),
4817
4817
  yn.extend({
@@ -4820,125 +4820,126 @@ const yn = fe({
4820
4820
  }),
4821
4821
  yn.extend({
4822
4822
  operation: ut("createDirectory"),
4823
- contentPath: R().optional(),
4823
+ contentPath: C().optional(),
4824
4824
  mode: Ot().optional(),
4825
4825
  ignoreIfExists: ge().optional()
4826
4826
  }),
4827
4827
  yn.extend({
4828
4828
  operation: ut("download"),
4829
- url: R().url(),
4830
- headers: It(R(), R()).optional(),
4829
+ url: C().url(),
4830
+ headers: It(C(), C()).optional(),
4831
4831
  timeout: Ot().min(1e3).max(3e5).optional()
4832
4832
  }),
4833
4833
  yn.extend({
4834
4834
  operation: ut("gitClone"),
4835
- gitUrl: R(),
4836
- gitSecretKey: R().optional(),
4837
- sourceBranch: R().optional(),
4838
- targetBranch: R().optional(),
4839
- originalBranch: R().optional()
4835
+ gitUrl: C(),
4836
+ gitSecretKey: C().optional(),
4837
+ sourceBranch: C().optional(),
4838
+ targetBranch: C().optional(),
4839
+ originalBranch: C().optional(),
4840
+ defaultBranch: C().optional()
4840
4841
  })
4841
4842
  ]);
4842
4843
  var Te = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.ASSIGNED = "assigned", e.IN_PROGRESS = "in_progress", e.WAITING_FOR_INPUT = "waiting_for_input", e.WAITING_FOR_PLAN_APPROVAL = "waiting_for_plan_approval", e.PLAN_APPROVED = "plan_approved", e.PLAN_REJECTED = "plan_rejected", e.COMPLETED = "completed", e.FAILED = "failed", e.CANCELLED = "cancelled", e.RESULT_REJECTED = "result_rejected", e))(Te || {});
4843
4844
  const am = fe({
4844
4845
  type: dt(["json", "file", "regex"]).describe("Extraction method"),
4845
- source: R().describe("Source to extract from (file path or stdout/stderr)"),
4846
+ source: C().describe("Source to extract from (file path or stdout/stderr)"),
4846
4847
  schema: fe({}).passthrough().optional().describe("JSON schema for validation"),
4847
- pattern: R().optional().describe("Regex pattern for extraction")
4848
+ pattern: C().optional().describe("Regex pattern for extraction")
4848
4849
  }), cm = fe({
4849
4850
  type: dt(["issue_update", "bulk_issue_update", "notification", "webhook"]).describe("Hook type"),
4850
4851
  config: yc().describe("Hook-specific configuration")
4851
4852
  });
4852
4853
  fe({
4853
- command: R().optional().describe("Legacy — unused in SDK mode"),
4854
- args: St(R()).optional().describe("Legacy — unused in SDK mode"),
4855
- env: It(R(), R()).optional().describe("Environment variables"),
4856
- workingDirectory: R().optional().describe("Working directory for command execution"),
4854
+ command: C().optional().describe("Legacy — unused in SDK mode"),
4855
+ args: St(C()).optional().describe("Legacy — unused in SDK mode"),
4856
+ env: It(C(), C()).optional().describe("Environment variables"),
4857
+ workingDirectory: C().optional().describe("Working directory for command execution"),
4857
4858
  fileOperations: St(im).optional().describe("File operations to perform during setup"),
4858
- gitUrl: R().optional().describe("Git repository URL (populated from project)"),
4859
- gitPrivateKey: R().optional().describe("Git SSH private key (populated from project)"),
4860
- gitCommitMessage: R().optional().describe("Commit message for git operations"),
4859
+ gitUrl: C().optional().describe("Git repository URL (populated from project)"),
4860
+ gitPrivateKey: C().optional().describe("Git SSH private key (populated from project)"),
4861
+ gitCommitMessage: C().optional().describe("Commit message for git operations"),
4861
4862
  resultExtraction: am.optional().describe("Schema for extracting result data"),
4862
4863
  postExecutionHooks: St(cm).optional().describe("Hooks to run after task completion"),
4863
4864
  executionMode: dt(["claudeAgentSdk", "openaiAgentSdk", "opencodeSdk", "cursorSdk", "codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),
4864
4865
  executionPlan: xc("executionMode", [
4865
4866
  fe({
4866
4867
  executionMode: ut("claudeAgentSdk"),
4867
- promptText: R(),
4868
+ promptText: C(),
4868
4869
  sdkOptions: fe({
4869
- model: R(),
4870
+ model: C(),
4870
4871
  permissionMode: dt(["plan", "acceptEdits", "bypassPermissions", "ask"]),
4871
- settingSources: St(R()),
4872
+ settingSources: St(C()),
4872
4873
  allowDangerouslySkipPermissions: ge(),
4873
4874
  persistSession: ge(),
4874
4875
  streamSdkEvents: ge().optional(),
4875
- allowedTools: St(R()).optional(),
4876
- settings: fe({ enabledPlugins: It(R(), ge()) }),
4877
- env: It(R(), R()).optional()
4876
+ allowedTools: St(C()).optional(),
4877
+ settings: fe({ enabledPlugins: It(C(), ge()) }),
4878
+ env: It(C(), C()).optional()
4878
4879
  }),
4879
- resume: fe({ sessionId: R().optional(), continue: ge() }).optional()
4880
+ resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4880
4881
  }),
4881
4882
  fe({
4882
4883
  executionMode: ut("opencodeSdk"),
4883
- promptText: R(),
4884
+ promptText: C(),
4884
4885
  sdkOptions: fe({
4885
- provider: R(),
4886
- model: R(),
4887
- allowedTools: St(R()).optional(),
4888
- env: It(R(), R()).optional()
4886
+ provider: C(),
4887
+ model: C(),
4888
+ allowedTools: St(C()).optional(),
4889
+ env: It(C(), C()).optional()
4889
4890
  }),
4890
- resume: fe({ sessionId: R().optional(), continue: ge() }).optional()
4891
+ resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4891
4892
  }),
4892
4893
  fe({
4893
4894
  executionMode: ut("openaiAgentSdk"),
4894
- promptText: R(),
4895
- sdkOptions: fe({ model: R(), env: It(R(), R()).optional() }),
4896
- resume: fe({ sessionId: R().optional(), continue: ge() }).optional()
4895
+ promptText: C(),
4896
+ sdkOptions: fe({ model: C(), env: It(C(), C()).optional() }),
4897
+ resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4897
4898
  }),
4898
4899
  fe({
4899
4900
  executionMode: ut("codexSdk"),
4900
- promptText: R(),
4901
+ promptText: C(),
4901
4902
  sdkOptions: fe({
4902
- model: R().optional(),
4903
+ model: C().optional(),
4903
4904
  sandboxMode: dt(["read-only", "workspace-write", "danger-full-access"]).optional(),
4904
4905
  approvalPolicy: dt(["never", "on-request", "on-failure", "untrusted"]).optional(),
4905
- env: It(R(), R()).optional()
4906
+ env: It(C(), C()).optional()
4906
4907
  }),
4907
- resume: fe({ sessionId: R().optional(), continue: ge() }).optional()
4908
+ resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4908
4909
  }),
4909
4910
  fe({
4910
4911
  executionMode: ut("cursorSdk"),
4911
- promptText: R(),
4912
- sdkOptions: fe({ model: R(), env: It(R(), R()).optional() }),
4913
- resume: fe({ sessionId: R().optional(), continue: ge() }).optional()
4912
+ promptText: C(),
4913
+ sdkOptions: fe({ model: C(), env: It(C(), C()).optional() }),
4914
+ resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4914
4915
  })
4915
4916
  ]).optional().describe("Backend-built prompt + resolved SDK options for this phase"),
4916
4917
  planEnabled: ge().optional().default(!1).describe("Enable planning phase (computed at runtime for agent)"),
4917
- planContent: R().optional().describe("Final approved plan content"),
4918
+ planContent: C().optional().describe("Final approved plan content"),
4918
4919
  planApproved: ge().optional().describe("Plan approval status"),
4919
- planApprovedAt: R().optional().describe("ISO timestamp of approval"),
4920
+ planApprovedAt: C().optional().describe("ISO timestamp of approval"),
4920
4921
  planRejected: ge().optional().describe("Plan rejection flag"),
4921
- planRejectionFeedback: R().optional().describe("User rejection feedback"),
4922
- rejectedPlanContent: R().optional().describe("Previously rejected plan content"),
4923
- planCompletedAt: R().optional().describe("ISO timestamp when plan was generated"),
4924
- planRejectedAt: R().optional().describe("ISO timestamp when plan was rejected"),
4925
- resultRejectionFeedback: R().optional().describe("User feedback when rejecting the result (most recent)"),
4926
- resultRejectedAt: R().optional().describe("ISO timestamp when result was rejected (most recent)"),
4927
- resultRejectionHistory: St(fe({ feedback: R(), rejectedAt: R() })).optional().describe("All rejection messages in chronological order"),
4922
+ planRejectionFeedback: C().optional().describe("User rejection feedback"),
4923
+ rejectedPlanContent: C().optional().describe("Previously rejected plan content"),
4924
+ planCompletedAt: C().optional().describe("ISO timestamp when plan was generated"),
4925
+ planRejectedAt: C().optional().describe("ISO timestamp when plan was rejected"),
4926
+ resultRejectionFeedback: C().optional().describe("User feedback when rejecting the result (most recent)"),
4927
+ resultRejectedAt: C().optional().describe("ISO timestamp when result was rejected (most recent)"),
4928
+ resultRejectionHistory: St(fe({ feedback: C(), rejectedAt: C() })).optional().describe("All rejection messages in chronological order"),
4928
4929
  notificationChannelPlanMessageId: Ot().optional(),
4929
- notificationChannelPlanMessageSentAt: R().optional(),
4930
+ notificationChannelPlanMessageSentAt: C().optional(),
4930
4931
  notificationChannelCompletedMessageId: Ot().optional(),
4931
4932
  notificationChannelFailedMessageId: Ot().optional(),
4932
4933
  streamSdkEvents: ge().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),
4933
- originalTaskSummary: R().optional().describe("Summary from the original task run (passed to retry for historical context)"),
4934
+ originalTaskSummary: C().optional().describe("Summary from the original task run (passed to retry for historical context)"),
4934
4935
  planWasApproved: ge().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),
4935
4936
  planComments: St(fe({
4936
- id: R(),
4937
- selectedText: R(),
4937
+ id: C(),
4938
+ selectedText: C(),
4938
4939
  startOffset: Ot(),
4939
4940
  endOffset: Ot(),
4940
- commentText: R(),
4941
- createdAt: R()
4941
+ commentText: C(),
4942
+ createdAt: C()
4942
4943
  })).optional().describe("Inline review comments attached to the plan"),
4943
4944
  hasAiConfigSecrets: ge().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),
4944
4945
  hasCredentials: ge().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),
@@ -5201,18 +5202,18 @@ function Em() {
5201
5202
  594(a, d) {
5202
5203
  var l = this && this.__extends || /* @__PURE__ */ (function() {
5203
5204
  var N = function(T, S) {
5204
- return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, D) {
5205
- C.__proto__ = D;
5206
- } || function(C, D) {
5207
- for (var J in D) D.hasOwnProperty(J) && (C[J] = D[J]);
5205
+ return N = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(P, D) {
5206
+ P.__proto__ = D;
5207
+ } || function(P, D) {
5208
+ for (var J in D) D.hasOwnProperty(J) && (P[J] = D[J]);
5208
5209
  }, N(T, S);
5209
5210
  };
5210
5211
  return function(T, S) {
5211
5212
  N(T, S);
5212
- function C() {
5213
+ function P() {
5213
5214
  this.constructor = T;
5214
5215
  }
5215
- T.prototype = S === null ? Object.create(S) : (C.prototype = S.prototype, new C());
5216
+ T.prototype = S === null ? Object.create(S) : (P.prototype = S.prototype, new P());
5216
5217
  };
5217
5218
  })();
5218
5219
  Object.defineProperty(d, "__esModule", { value: !0 });
@@ -5225,13 +5226,13 @@ function Em() {
5225
5226
  return N.prototype.encodedLength = function(T) {
5226
5227
  return this._paddingCharacter ? (T + 2) / 3 * 4 | 0 : (T * 8 + 5) / 6 | 0;
5227
5228
  }, N.prototype.encode = function(T) {
5228
- for (var S = "", C = 0; C < T.length - 2; C += 3) {
5229
- var D = T[C] << 16 | T[C + 1] << 8 | T[C + 2];
5229
+ for (var S = "", P = 0; P < T.length - 2; P += 3) {
5230
+ var D = T[P] << 16 | T[P + 1] << 8 | T[P + 2];
5230
5231
  S += this._encodeByte(D >>> 18 & 63), S += this._encodeByte(D >>> 12 & 63), S += this._encodeByte(D >>> 6 & 63), S += this._encodeByte(D >>> 0 & 63);
5231
5232
  }
5232
- var J = T.length - C;
5233
+ var J = T.length - P;
5233
5234
  if (J > 0) {
5234
- var D = T[C] << 16 | (J === 2 ? T[C + 1] << 8 : 0);
5235
+ var D = T[P] << 16 | (J === 2 ? T[P + 1] << 8 : 0);
5235
5236
  S += this._encodeByte(D >>> 18 & 63), S += this._encodeByte(D >>> 12 & 63), J === 2 ? S += this._encodeByte(D >>> 6 & 63) : S += this._paddingCharacter || "", S += this._paddingCharacter || "";
5236
5237
  }
5237
5238
  return S;
@@ -5242,9 +5243,9 @@ function Em() {
5242
5243
  }, N.prototype.decode = function(T) {
5243
5244
  if (T.length === 0)
5244
5245
  return new Uint8Array(0);
5245
- for (var S = this._getPaddingLength(T), C = T.length - S, D = new Uint8Array(this.maxDecodedLength(C)), J = 0, he = 0, Oe = 0, nt = 0, te = 0, Se = 0, Fe = 0; he < C - 4; he += 4)
5246
+ for (var S = this._getPaddingLength(T), P = T.length - S, D = new Uint8Array(this.maxDecodedLength(P)), J = 0, he = 0, Oe = 0, nt = 0, te = 0, Se = 0, Fe = 0; he < P - 4; he += 4)
5246
5247
  nt = this._decodeChar(T.charCodeAt(he + 0)), te = this._decodeChar(T.charCodeAt(he + 1)), Se = this._decodeChar(T.charCodeAt(he + 2)), Fe = this._decodeChar(T.charCodeAt(he + 3)), D[J++] = nt << 2 | te >>> 4, D[J++] = te << 4 | Se >>> 2, D[J++] = Se << 6 | Fe, Oe |= nt & p, Oe |= te & p, Oe |= Se & p, Oe |= Fe & p;
5247
- if (he < C - 1 && (nt = this._decodeChar(T.charCodeAt(he)), te = this._decodeChar(T.charCodeAt(he + 1)), D[J++] = nt << 2 | te >>> 4, Oe |= nt & p, Oe |= te & p), he < C - 2 && (Se = this._decodeChar(T.charCodeAt(he + 2)), D[J++] = te << 4 | Se >>> 2, Oe |= Se & p), he < C - 3 && (Fe = this._decodeChar(T.charCodeAt(he + 3)), D[J++] = Se << 6 | Fe, Oe |= Fe & p), Oe !== 0)
5248
+ if (he < P - 1 && (nt = this._decodeChar(T.charCodeAt(he)), te = this._decodeChar(T.charCodeAt(he + 1)), D[J++] = nt << 2 | te >>> 4, Oe |= nt & p, Oe |= te & p), he < P - 2 && (Se = this._decodeChar(T.charCodeAt(he + 2)), D[J++] = te << 4 | Se >>> 2, Oe |= Se & p), he < P - 3 && (Fe = this._decodeChar(T.charCodeAt(he + 3)), D[J++] = Se << 6 | Fe, Oe |= Fe & p), Oe !== 0)
5248
5249
  throw new Error("Base64Coder: incorrect characters for decoding");
5249
5250
  return D;
5250
5251
  }, N.prototype._encodeByte = function(T) {
@@ -5256,7 +5257,7 @@ function Em() {
5256
5257
  }, N.prototype._getPaddingLength = function(T) {
5257
5258
  var S = 0;
5258
5259
  if (this._paddingCharacter) {
5259
- for (var C = T.length - 1; C >= 0 && T[C] === this._paddingCharacter; C--)
5260
+ for (var P = T.length - 1; P >= 0 && T[P] === this._paddingCharacter; P--)
5260
5261
  S++;
5261
5262
  if (T.length < 4 || S > 2)
5262
5263
  throw new Error("Base64Coder: incorrect padding");
@@ -5283,11 +5284,11 @@ function Em() {
5283
5284
  return N !== null && N.apply(this, arguments) || this;
5284
5285
  }
5285
5286
  return T.prototype._encodeByte = function(S) {
5286
- var C = S;
5287
- return C += 65, C += 25 - S >>> 8 & 6, C += 51 - S >>> 8 & -75, C += 61 - S >>> 8 & -13, C += 62 - S >>> 8 & 49, String.fromCharCode(C);
5287
+ var P = S;
5288
+ return P += 65, P += 25 - S >>> 8 & 6, P += 51 - S >>> 8 & -75, P += 61 - S >>> 8 & -13, P += 62 - S >>> 8 & 49, String.fromCharCode(P);
5288
5289
  }, T.prototype._decodeChar = function(S) {
5289
- var C = p;
5290
- return C += (44 - S & S - 46) >>> 8 & -p + S - 45 + 62, C += (94 - S & S - 96) >>> 8 & -p + S - 95 + 63, C += (47 - S & S - 58) >>> 8 & -p + S - 48 + 52, C += (64 - S & S - 91) >>> 8 & -p + S - 65 + 0, C += (96 - S & S - 123) >>> 8 & -p + S - 97 + 26, C;
5290
+ var P = p;
5291
+ return P += (44 - S & S - 46) >>> 8 & -p + S - 45 + 62, P += (94 - S & S - 96) >>> 8 & -p + S - 95 + 63, P += (47 - S & S - 58) >>> 8 & -p + S - 48 + 52, P += (64 - S & S - 91) >>> 8 & -p + S - 65 + 0, P += (96 - S & S - 123) >>> 8 & -p + S - 97 + 26, P;
5291
5292
  }, T;
5292
5293
  })(h)
5293
5294
  );
@@ -5371,10 +5372,10 @@ function Em() {
5371
5372
  }
5372
5373
  create(s) {
5373
5374
  this.lastId++;
5374
- var c = this.lastId, f = this.prefix + c, b = this.name + "[" + c + "]", x = !1, P = function() {
5375
+ var c = this.lastId, f = this.prefix + c, b = this.name + "[" + c + "]", x = !1, R = function() {
5375
5376
  x || (s.apply(null, arguments), x = !0);
5376
5377
  };
5377
- return this[c] = P, { number: c, id: f, name: b, callback: P };
5378
+ return this[c] = R, { number: c, id: f, name: b, callback: R };
5378
5379
  }
5379
5380
  remove(s) {
5380
5381
  delete this[s.number];
@@ -5419,8 +5420,8 @@ function Em() {
5419
5420
  b.loading[s].push(f);
5420
5421
  else {
5421
5422
  b.loading[s] = [f];
5422
- var x = G.createScriptRequest(b.getPath(s, c)), P = b.receivers.create(function(O) {
5423
- if (b.receivers.remove(P), b.loading[s]) {
5423
+ var x = G.createScriptRequest(b.getPath(s, c)), R = b.receivers.create(function(O) {
5424
+ if (b.receivers.remove(R), b.loading[s]) {
5424
5425
  var B = b.loading[s];
5425
5426
  delete b.loading[s];
5426
5427
  for (var ne = function(Ce) {
@@ -5429,7 +5430,7 @@ function Em() {
5429
5430
  B[se](O, ne);
5430
5431
  }
5431
5432
  });
5432
- x.send(P);
5433
+ x.send(R);
5433
5434
  }
5434
5435
  }
5435
5436
  getRoot(s) {
@@ -5482,7 +5483,7 @@ function Em() {
5482
5483
  super(s), Object.setPrototypeOf(this, new.target.prototype);
5483
5484
  }
5484
5485
  }
5485
- class C extends Error {
5486
+ class P extends Error {
5486
5487
  constructor(s) {
5487
5488
  super(s), Object.setPrototypeOf(this, new.target.prototype);
5488
5489
  }
@@ -5525,12 +5526,12 @@ function Em() {
5525
5526
  const Xt = function(u, s, c, f, b) {
5526
5527
  const x = G.createXHR();
5527
5528
  x.open("POST", c.endpoint, !0), x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
5528
- for (var P in c.headers)
5529
- x.setRequestHeader(P, c.headers[P]);
5529
+ for (var R in c.headers)
5530
+ x.setRequestHeader(R, c.headers[R]);
5530
5531
  if (c.headersProvider != null) {
5531
5532
  let O = c.headersProvider();
5532
- for (var P in O)
5533
- x.setRequestHeader(P, O[P]);
5533
+ for (var R in O)
5534
+ x.setRequestHeader(R, O[R]);
5534
5535
  }
5535
5536
  return x.onreadystatechange = function() {
5536
5537
  if (x.readyState === 4)
@@ -5725,17 +5726,17 @@ function Em() {
5725
5726
  function Kt(u) {
5726
5727
  var s = [], c = [];
5727
5728
  return (function f(b, x) {
5728
- var P, O, B;
5729
+ var R, O, B;
5729
5730
  switch (typeof b) {
5730
5731
  case "object":
5731
5732
  if (!b)
5732
5733
  return null;
5733
- for (P = 0; P < s.length; P += 1)
5734
- if (s[P] === b)
5735
- return { $ref: c[P] };
5734
+ for (R = 0; R < s.length; R += 1)
5735
+ if (s[R] === b)
5736
+ return { $ref: c[R] };
5736
5737
  if (s.push(b), c.push(x), Object.prototype.toString.apply(b) === "[object Array]")
5737
- for (B = [], P = 0; P < b.length; P += 1)
5738
- B[P] = f(b[P], x + "[" + P + "]");
5738
+ for (B = [], R = 0; R < b.length; R += 1)
5739
+ B[R] = f(b[R], x + "[" + R + "]");
5739
5740
  else {
5740
5741
  B = {};
5741
5742
  for (O in b)
@@ -5787,13 +5788,13 @@ function Em() {
5787
5788
  (c.headers !== void 0 || c.headersProvider != null) && de.warn(`To send headers with the ${f.toString()} request, you must use AJAX, rather than JSONP.`);
5788
5789
  var x = u.nextAuthCallbackID.toString();
5789
5790
  u.nextAuthCallbackID++;
5790
- var P = u.getDocument(), O = P.createElement("script");
5791
+ var R = u.getDocument(), O = R.createElement("script");
5791
5792
  u.auth_callbacks[x] = function(se) {
5792
5793
  b(null, se);
5793
5794
  };
5794
5795
  var B = "Pusher.auth_callbacks['" + x + "']";
5795
5796
  O.src = c.endpoint + "?callback=" + encodeURIComponent(B) + "&" + s;
5796
- var ne = P.getElementsByTagName("head")[0] || P.documentElement;
5797
+ var ne = R.getElementsByTagName("head")[0] || R.documentElement;
5797
5798
  ne.insertBefore(O, ne.firstChild);
5798
5799
  };
5799
5800
  const hr = Fr;
@@ -5833,10 +5834,10 @@ function Em() {
5833
5834
  }
5834
5835
  var On = function(u, s) {
5835
5836
  return function(c, f) {
5836
- var b = "http" + (s ? "s" : "") + "://", x = b + (u.host || u.options.host) + u.options.path, P = G.createJSONPRequest(x, c), O = G.ScriptReceivers.create(function(B, ne) {
5837
- h.remove(O), P.cleanup(), ne && ne.host && (u.host = ne.host), f && f(B, ne);
5837
+ var b = "http" + (s ? "s" : "") + "://", x = b + (u.host || u.options.host) + u.options.path, R = G.createJSONPRequest(x, c), O = G.ScriptReceivers.create(function(B, ne) {
5838
+ h.remove(O), R.cleanup(), ne && ne.host && (u.host = ne.host), f && f(B, ne);
5838
5839
  });
5839
- P.send(O);
5840
+ R.send(O);
5840
5841
  };
5841
5842
  }, kt = {
5842
5843
  name: "jsonp",
@@ -5929,10 +5930,10 @@ function Em() {
5929
5930
  emit(s, c, f) {
5930
5931
  for (var b = 0; b < this.global_callbacks.length; b++)
5931
5932
  this.global_callbacks[b](s, c);
5932
- var x = this.callbacks.get(s), P = [];
5933
- if (f ? P.push(c, f) : c && P.push(c), x && x.length > 0)
5933
+ var x = this.callbacks.get(s), R = [];
5934
+ if (f ? R.push(c, f) : c && R.push(c), x && x.length > 0)
5934
5935
  for (var b = 0; b < x.length; b++)
5935
- x[b].fn.apply(x[b].context || window, P);
5936
+ x[b].fn.apply(x[b].context || window, R);
5936
5937
  else this.failThrough && this.failThrough(s, c);
5937
5938
  return this;
5938
5939
  }
@@ -6120,13 +6121,13 @@ function Em() {
6120
6121
  b = re({}, b, {
6121
6122
  activityTimeout: this.pingDelay
6122
6123
  });
6123
- var x = this.transport.createConnection(s, c, f, b), P = null, O = function() {
6124
- x.unbind("open", O), x.bind("closed", B), P = we.now();
6124
+ var x = this.transport.createConnection(s, c, f, b), R = null, O = function() {
6125
+ x.unbind("open", O), x.bind("closed", B), R = we.now();
6125
6126
  }, B = (ne) => {
6126
6127
  if (x.unbind("closed", B), ne.code === 1002 || ne.code === 1003)
6127
6128
  this.manager.reportDeath();
6128
- else if (!ne.wasClean && P) {
6129
- var se = we.now() - P;
6129
+ else if (!ne.wasClean && R) {
6130
+ var se = we.now() - R;
6130
6131
  se < 2 * this.maxPingDelay && (this.manager.reportDeath(), this.pingDelay = Math.max(se / 2, this.minPingDelay));
6131
6132
  }
6132
6133
  };
@@ -6410,23 +6411,23 @@ function Em() {
6410
6411
  }
6411
6412
  var xe = function(u, s, c, f) {
6412
6413
  function b(x) {
6413
- return x instanceof c ? x : new c(function(P) {
6414
- P(x);
6414
+ return x instanceof c ? x : new c(function(R) {
6415
+ R(x);
6415
6416
  });
6416
6417
  }
6417
- return new (c || (c = Promise))(function(x, P) {
6418
+ return new (c || (c = Promise))(function(x, R) {
6418
6419
  function O(se) {
6419
6420
  try {
6420
6421
  ne(f.next(se));
6421
6422
  } catch (Ce) {
6422
- P(Ce);
6423
+ R(Ce);
6423
6424
  }
6424
6425
  }
6425
6426
  function B(se) {
6426
6427
  try {
6427
6428
  ne(f.throw(se));
6428
6429
  } catch (Ce) {
6429
- P(Ce);
6430
+ R(Ce);
6430
6431
  }
6431
6432
  }
6432
6433
  function ne(se) {
@@ -6448,8 +6449,8 @@ function Em() {
6448
6449
  } else if (yield this.pusher.user.signinDonePromise, this.pusher.user.user_data != null)
6449
6450
  this.members.setMyID(this.pusher.user.user_data.id);
6450
6451
  else {
6451
- let P = N.buildLogSuffix("authorizationEndpoint");
6452
- de.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${P}, or the user should be signed in.`), c("Invalid auth response");
6452
+ let R = N.buildLogSuffix("authorizationEndpoint");
6453
+ de.error(`Invalid auth response for channel '${this.name}', expected 'channel_data' field. ${R}, or the user should be signed in.`), c("Invalid auth response");
6453
6454
  return;
6454
6455
  }
6455
6456
  c(f, b);
@@ -6541,8 +6542,8 @@ function Em() {
6541
6542
  }
6542
6543
  let x = this.nacl.secretbox.open(f, b, this.key);
6543
6544
  if (x === null) {
6544
- de.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (P, O) => {
6545
- if (P) {
6545
+ de.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."), this.authorize(this.pusher.connection.socket_id, (R, O) => {
6546
+ if (R) {
6546
6547
  de.error(`Failed to make a request to the authEndpoint: ${O}. Unable to fetch new key, so dropping encrypted event`);
6547
6548
  return;
6548
6549
  }
@@ -6759,7 +6760,7 @@ function Em() {
6759
6760
  if (u.indexOf("presence-") === 0)
6760
6761
  return Zt.createPresenceChannel(u, s);
6761
6762
  if (u.indexOf("#") === 0)
6762
- throw new C('Cannot create a channel with name "' + u + '".');
6763
+ throw new P('Cannot create a channel with name "' + u + '".');
6763
6764
  return Zt.createChannel(u, s);
6764
6765
  }
6765
6766
  }
@@ -6818,30 +6819,30 @@ function Em() {
6818
6819
  return ur(this.strategies, we.method("isSupported"));
6819
6820
  }
6820
6821
  connect(s, c) {
6821
- var f = this.strategies, b = 0, x = this.timeout, P = null, O = (B, ne) => {
6822
- ne ? c(null, ne) : (b = b + 1, this.loop && (b = b % f.length), b < f.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), P = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O)) : c(!0));
6822
+ var f = this.strategies, b = 0, x = this.timeout, R = null, O = (B, ne) => {
6823
+ ne ? c(null, ne) : (b = b + 1, this.loop && (b = b % f.length), b < f.length ? (x && (x = x * 2, this.timeoutLimit && (x = Math.min(x, this.timeoutLimit))), R = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O)) : c(!0));
6823
6824
  };
6824
- return P = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O), {
6825
+ return R = this.tryStrategy(f[b], s, { timeout: x, failFast: this.failFast }, O), {
6825
6826
  abort: function() {
6826
- P.abort();
6827
+ R.abort();
6827
6828
  },
6828
6829
  forceMinPriority: function(B) {
6829
- s = B, P && P.forceMinPriority(B);
6830
+ s = B, R && R.forceMinPriority(B);
6830
6831
  }
6831
6832
  };
6832
6833
  }
6833
6834
  tryStrategy(s, c, f, b) {
6834
- var x = null, P = null;
6835
+ var x = null, R = null;
6835
6836
  return f.timeout > 0 && (x = new Ae(f.timeout, function() {
6836
- P.abort(), b(!0);
6837
- })), P = s.connect(c, function(O, B) {
6837
+ R.abort(), b(!0);
6838
+ })), R = s.connect(c, function(O, B) {
6838
6839
  O && x && x.isRunning() && !f.failFast || (x && x.ensureAborted(), b(O, B));
6839
6840
  }), {
6840
6841
  abort: function() {
6841
- x && x.ensureAborted(), P.abort();
6842
+ x && x.ensureAborted(), R.abort();
6842
6843
  },
6843
6844
  forceMinPriority: function(O) {
6844
- P.forceMinPriority(O);
6845
+ R.forceMinPriority(O);
6845
6846
  }
6846
6847
  };
6847
6848
  }
@@ -6855,20 +6856,20 @@ function Em() {
6855
6856
  }
6856
6857
  connect(s, c) {
6857
6858
  return Al(this.strategies, s, function(f, b) {
6858
- return function(x, P) {
6859
+ return function(x, R) {
6859
6860
  if (b[f].error = x, x) {
6860
6861
  Cl(b) && c(!0);
6861
6862
  return;
6862
6863
  }
6863
6864
  Ze(b, function(O) {
6864
- O.forceMinPriority(P.transport.priority);
6865
- }), c(null, P);
6865
+ O.forceMinPriority(R.transport.priority);
6866
+ }), c(null, R);
6866
6867
  };
6867
6868
  });
6868
6869
  }
6869
6870
  }
6870
6871
  function Al(u, s, c) {
6871
- var f = Mt(u, function(b, x, P, O) {
6872
+ var f = Mt(u, function(b, x, R, O) {
6872
6873
  return b.connect(s, c(x, O));
6873
6874
  });
6874
6875
  return {
@@ -6898,20 +6899,20 @@ function Em() {
6898
6899
  return this.strategy.isSupported();
6899
6900
  }
6900
6901
  connect(s, c) {
6901
- var f = this.usingTLS, b = Ll(f), x = b && b.cacheSkipCount ? b.cacheSkipCount : 0, P = [this.strategy];
6902
+ var f = this.usingTLS, b = Ll(f), x = b && b.cacheSkipCount ? b.cacheSkipCount : 0, R = [this.strategy];
6902
6903
  if (b && b.timestamp + this.ttl >= we.now()) {
6903
6904
  var O = this.transports[b.transport];
6904
6905
  O && (["ws", "wss"].includes(b.transport) || x > 3 ? (this.timeline.info({
6905
6906
  cached: !0,
6906
6907
  transport: b.transport,
6907
6908
  latency: b.latency
6908
- }), P.push(new _n([O], {
6909
+ }), R.push(new _n([O], {
6909
6910
  timeout: b.latency * 2 + 1e3,
6910
6911
  failFast: !0
6911
6912
  }))) : x++);
6912
6913
  }
6913
- var B = we.now(), ne = P.pop().connect(s, function se(Ce, oo) {
6914
- Ce ? (fi(f), P.length > 0 ? (B = we.now(), ne = P.pop().connect(s, se)) : c(Ce)) : (Il(f, oo.transport.name, we.now() - B, x), c(null, oo));
6914
+ var B = we.now(), ne = R.pop().connect(s, function se(Ce, oo) {
6915
+ Ce ? (fi(f), R.length > 0 ? (B = we.now(), ne = R.pop().connect(s, se)) : c(Ce)) : (Il(f, oo.transport.name, we.now() - B, x), c(null, oo));
6915
6916
  });
6916
6917
  return {
6917
6918
  abort: function() {
@@ -6974,8 +6975,8 @@ function Em() {
6974
6975
  abort: function() {
6975
6976
  x.ensureAborted(), b && b.abort();
6976
6977
  },
6977
- forceMinPriority: function(P) {
6978
- s = P, b && b.forceMinPriority(P);
6978
+ forceMinPriority: function(R) {
6979
+ s = R, b && b.forceMinPriority(R);
6979
6980
  }
6980
6981
  };
6981
6982
  }
@@ -7022,7 +7023,7 @@ function Em() {
7022
7023
  hostNonTLS: u.wsHost + ":" + u.wsPort,
7023
7024
  hostTLS: u.wsHost + ":" + u.wssPort,
7024
7025
  httpPath: u.wsPath
7025
- }), P = Object.assign({}, x, {
7026
+ }), R = Object.assign({}, x, {
7026
7027
  useTLS: !0
7027
7028
  }), O = Object.assign({}, s, {
7028
7029
  hostNonTLS: u.httpHost + ":" + u.httpPort,
@@ -7039,7 +7040,7 @@ function Em() {
7039
7040
  lives: 2,
7040
7041
  minPingDelay: 1e4,
7041
7042
  maxPingDelay: u.activityTimeout
7042
- }), Ce = b("ws", "ws", 3, x, ne), oo = b("wss", "ws", 3, P, ne), Eu = b("sockjs", "sockjs", 1, O), yi = b("xhr_streaming", "xhr_streaming", 1, O, se), Au = b("xdr_streaming", "xdr_streaming", 1, O, se), wi = b("xhr_polling", "xhr_polling", 1, O), Cu = b("xdr_polling", "xdr_polling", 1, O), xi = new _n([Ce], B), Pu = new _n([oo], B), Ru = new _n([Eu], B), Si = new _n([
7043
+ }), Ce = b("ws", "ws", 3, x, ne), oo = b("wss", "ws", 3, R, ne), Eu = b("sockjs", "sockjs", 1, O), yi = b("xhr_streaming", "xhr_streaming", 1, O, se), Au = b("xdr_streaming", "xdr_streaming", 1, O, se), wi = b("xhr_polling", "xhr_polling", 1, O), Cu = b("xdr_polling", "xdr_polling", 1, O), xi = new _n([Ce], B), Pu = new _n([oo], B), Ru = new _n([Eu], B), Si = new _n([
7043
7044
  new vr(yr(yi), yi, Au)
7044
7045
  ], B), Ti = new _n([
7045
7046
  new vr(yr(wi), wi, Cu)
@@ -7464,8 +7465,8 @@ function Em() {
7464
7465
  if (this.priority < s)
7465
7466
  return ki(new J(), c);
7466
7467
  } else return ki(new te(), c);
7467
- var f = !1, b = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, P = function() {
7468
- b.unbind("initialized", P), b.connect();
7468
+ var f = !1, b = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), x = null, R = function() {
7469
+ b.unbind("initialized", R), b.connect();
7469
7470
  }, O = function() {
7470
7471
  x = Zt.createHandshake(b, function(Ce) {
7471
7472
  f = !0, se(), c(null, Ce);
@@ -7477,9 +7478,9 @@ function Em() {
7477
7478
  var Ce;
7478
7479
  Ce = Ge(b), c(new he(Ce));
7479
7480
  }, se = function() {
7480
- b.unbind("initialized", P), b.unbind("open", O), b.unbind("error", B), b.unbind("closed", ne);
7481
+ b.unbind("initialized", R), b.unbind("open", O), b.unbind("error", B), b.unbind("closed", ne);
7481
7482
  };
7482
- return b.bind("initialized", P), b.bind("open", O), b.bind("error", B), b.bind("closed", ne), b.initialize(), {
7483
+ return b.bind("initialized", R), b.bind("open", O), b.bind("error", B), b.bind("closed", ne), b.initialize(), {
7483
7484
  abort: () => {
7484
7485
  f || (se(), x ? x.close() : b.close());
7485
7486
  },
@@ -7501,11 +7502,11 @@ function Em() {
7501
7502
  }
7502
7503
  const { Transports: ou } = G;
7503
7504
  var su = function(u, s, c, f, b, x) {
7504
- var P = ou[c];
7505
- if (!P)
7505
+ var R = ou[c];
7506
+ if (!R)
7506
7507
  throw new nt(c);
7507
7508
  var O = (!u.enabledTransports || je(u.enabledTransports, s) !== -1) && (!u.disabledTransports || je(u.disabledTransports, s) === -1), B;
7508
- return O ? (b = Object.assign({ ignoreNullOrigin: u.ignoreNullOrigin }, b), B = new ru(s, f, x ? x.getAssistant(P) : P, b)) : B = iu, B;
7509
+ return O ? (b = Object.assign({ ignoreNullOrigin: u.ignoreNullOrigin }, b), B = new ru(s, f, x ? x.getAssistant(R) : R, b)) : B = iu, B;
7509
7510
  }, iu = {
7510
7511
  isSupported: function() {
7511
7512
  return !1;
@@ -7575,8 +7576,8 @@ function Em() {
7575
7576
  }
7576
7577
  };
7577
7578
  return (b, x) => {
7578
- const P = u.channel(b.channelName);
7579
- c(P, f).authorize(b.socketId, x);
7579
+ const R = u.channel(b.channelName);
7580
+ c(R, f).authorize(b.socketId, x);
7580
7581
  };
7581
7582
  };
7582
7583
  function _i(u, s) {
@@ -7760,12 +7761,12 @@ function Em() {
7760
7761
  }), this.connection.bind("connected", () => {
7761
7762
  this.subscribeAll(), this.timelineSender && this.timelineSender.send(this.connection.isUsingTLS());
7762
7763
  }), this.connection.bind("message", (b) => {
7763
- var x = b.event, P = x.indexOf("pusher_internal:") === 0;
7764
+ var x = b.event, R = x.indexOf("pusher_internal:") === 0;
7764
7765
  if (b.channel) {
7765
7766
  var O = this.channel(b.channel);
7766
7767
  O && O.handleEvent(b);
7767
7768
  }
7768
- P || this.global_emitter.emit(b.event, b.data);
7769
+ R || this.global_emitter.emit(b.event, b.data);
7769
7770
  }), this.connection.bind("connecting", () => {
7770
7771
  this.channels.disconnect();
7771
7772
  }), this.connection.bind("disconnected", () => {
@@ -8215,9 +8216,9 @@ ${y}`, o = o.substring(0, o.length - k.text.length) + Z.text;
8215
8216
  `, e = e.substring(m.length + 1), l = !0), !l) {
8216
8217
  let E = this.rules.other.nextBulletRegex(y), Z = this.rules.other.hrRegex(y), ee = this.rules.other.fencesBeginRegex(y), N = this.rules.other.headingBeginRegex(y), T = this.rules.other.htmlBeginRegex(y), S = this.rules.other.blockquoteBeginRegex(y);
8217
8218
  for (; e; ) {
8218
- let C = e.split(`
8219
+ let P = e.split(`
8219
8220
  `, 1)[0], D;
8220
- if (m = C, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), D = m) : D = m.replace(this.rules.other.tabCharGlobal, " "), ee.test(m) || N.test(m) || T.test(m) || S.test(m) || E.test(m) || Z.test(m)) break;
8221
+ if (m = P, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), D = m) : D = m.replace(this.rules.other.tabCharGlobal, " "), ee.test(m) || N.test(m) || T.test(m) || S.test(m) || E.test(m) || Z.test(m)) break;
8221
8222
  if (D.search(this.rules.other.nonSpaceChar) >= y || !m.trim()) h += `
8222
8223
  ` + D.slice(y);
8223
8224
  else {
@@ -8225,8 +8226,8 @@ ${y}`, o = o.substring(0, o.length - k.text.length) + Z.text;
8225
8226
  h += `
8226
8227
  ` + m;
8227
8228
  }
8228
- k = !m.trim(), p += C + `
8229
- `, e = e.substring(C.length + 1), g = D.slice(y);
8229
+ k = !m.trim(), p += P + `
8230
+ `, e = e.substring(P.length + 1), g = D.slice(y);
8230
8231
  }
8231
8232
  }
8232
8233
  o.loose || (a ? o.loose = !0 : this.rules.other.doubleBlankLine.test(p) && (a = !0)), o.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), o.raw += p;
@@ -9353,7 +9354,7 @@ function Wc() {
9353
9354
  const M = n.createElement("template");
9354
9355
  M.content && M.content.ownerDocument && (n = M.content.ownerDocument);
9355
9356
  }
9356
- let S, C = "";
9357
+ let S, P = "";
9357
9358
  const {
9358
9359
  implementation: D,
9359
9360
  createNodeIterator: J,
@@ -9440,9 +9441,9 @@ function Wc() {
9440
9441
  throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
9441
9442
  if (typeof _.TRUSTED_TYPES_POLICY.createScriptURL != "function")
9442
9443
  throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
9443
- S = _.TRUSTED_TYPES_POLICY, C = S.createHTML("");
9444
+ S = _.TRUSTED_TYPES_POLICY, P = S.createHTML("");
9444
9445
  } else
9445
- S === void 0 && (S = ek(k, o)), S !== null && typeof C == "string" && (C = S.createHTML(""));
9446
+ S === void 0 && (S = ek(k, o)), S !== null && typeof P == "string" && (P = S.createHTML(""));
9446
9447
  Ke && Ke(_), en = _;
9447
9448
  }
9448
9449
  }, gr = Y({}, [..._s, ...vs, ...Hb]), Wr = Y({}, [...ys, ...Fb]), os = function(_) {
@@ -9503,7 +9504,7 @@ function Wc() {
9503
9504
  if (!A || !A.documentElement) {
9504
9505
  A = D.createDocument(Qt, "template", null);
9505
9506
  try {
9506
- A.documentElement.innerHTML = bn ? C : ie;
9507
+ A.documentElement.innerHTML = bn ? P : ie;
9507
9508
  } catch (xe) {
9508
9509
  }
9509
9510
  }
@@ -9685,7 +9686,7 @@ function Wc() {
9685
9686
  M.indexOf("<") === -1)
9686
9687
  return S && gn ? S.createHTML(M) : M;
9687
9688
  if (A = Jr(M), !A)
9688
- return st ? null : gn ? C : "";
9689
+ return st ? null : gn ? P : "";
9689
9690
  }
9690
9691
  A && Mt && at(A.firstChild);
9691
9692
  const xe = mr(mn ? M : A);
@@ -10596,7 +10597,7 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10596
10597
  }, { passive: !0 });
10597
10598
  const y = X.querySelector(".ap-sdk-panel__body"), E = mk(y, n, (ve = r == null ? void 0 : r.id) != null ? ve : null);
10598
10599
  document.body.appendChild(X), Xe = Us(), g.currentPickedEl && Xe.update(g.currentPickedEl), Wt(X), Ys(X, Js);
10599
- const Z = X.querySelector("[data-ap-close]"), ee = X.querySelector("[data-ap-cancel]"), N = X.querySelector("[data-ap-submit]"), T = X.querySelector("[data-ap-note]"), S = X.querySelector("[data-ap-status]"), C = X.querySelectorAll("[data-ap-type]"), D = X.querySelector("[data-ap-pick-list]"), J = X.querySelector("[data-ap-context]"), he = X.querySelector("[data-ap-add-another]"), Oe = X.querySelector("[data-ap-pick-actions]"), nt = X.querySelector("[data-ap-select-parent]"), te = X.querySelector("[data-ap-reselect]"), Se = () => {
10600
+ const Z = X.querySelector("[data-ap-close]"), ee = X.querySelector("[data-ap-cancel]"), N = X.querySelector("[data-ap-submit]"), T = X.querySelector("[data-ap-note]"), S = X.querySelector("[data-ap-status]"), P = X.querySelectorAll("[data-ap-type]"), D = X.querySelector("[data-ap-pick-list]"), J = X.querySelector("[data-ap-context]"), he = X.querySelector("[data-ap-add-another]"), Oe = X.querySelector("[data-ap-pick-actions]"), nt = X.querySelector("[data-ap-select-parent]"), te = X.querySelector("[data-ap-reselect]"), Se = () => {
10600
10601
  g.currentPickedEl && (Xe == null || Xe.update(g.currentPickedEl));
10601
10602
  };
10602
10603
  window.addEventListener("scroll", Se, { capture: !0, passive: !0 }), window.addEventListener("resize", Se), Ht = () => {
@@ -10664,9 +10665,9 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10664
10665
  const zn = X.querySelector("[data-ap-connect-required]");
10665
10666
  zn && a && zn.addEventListener("click", () => {
10666
10667
  mt(), a();
10667
- }), C.forEach((W) => {
10668
+ }), P.forEach((W) => {
10668
10669
  W.addEventListener("click", () => {
10669
- g.captureType = W.dataset.apType, C.forEach((F) => F.classList.toggle("ap-sdk-active", F === W));
10670
+ g.captureType = W.dataset.apType, P.forEach((F) => F.classList.toggle("ap-sdk-active", F === W));
10670
10671
  });
10671
10672
  });
10672
10673
  const hn = X.querySelector("[data-ap-reconfigure]");