@tung-engineering/agent-platform-web-sdk 0.0.71 → 0.0.73

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
@@ -4407,9 +4407,9 @@ const Xf = (e, t) => {
4407
4407
  // enumerable: false,
4408
4408
  }
4409
4409
  });
4410
- }, ft = w("ZodError", Xf, {
4410
+ }, gt = w("ZodError", Xf, {
4411
4411
  Parent: Error
4412
- }), Vf = /* @__PURE__ */ Fs(ft), Kf = /* @__PURE__ */ Bs(ft), Qf = /* @__PURE__ */ Xo(ft), eg = /* @__PURE__ */ Vo(ft), tg = /* @__PURE__ */ Od(ft), ng = /* @__PURE__ */ Nd(ft), rg = /* @__PURE__ */ Dd(ft), og = /* @__PURE__ */ Md(ft), sg = /* @__PURE__ */ Ud(ft), ig = /* @__PURE__ */ jd(ft), ag = /* @__PURE__ */ Zd(ft), cg = /* @__PURE__ */ qd(ft), _e = /* @__PURE__ */ w("ZodType", (e, t) => (be.init(e, t), Object.assign(e["~standard"], {
4412
+ }), Vf = /* @__PURE__ */ Fs(gt), Kf = /* @__PURE__ */ Bs(gt), Qf = /* @__PURE__ */ Xo(gt), eg = /* @__PURE__ */ Vo(gt), tg = /* @__PURE__ */ Od(gt), ng = /* @__PURE__ */ Nd(gt), rg = /* @__PURE__ */ Dd(gt), og = /* @__PURE__ */ Md(gt), sg = /* @__PURE__ */ Ud(gt), ig = /* @__PURE__ */ jd(gt), ag = /* @__PURE__ */ Zd(gt), cg = /* @__PURE__ */ qd(gt), _e = /* @__PURE__ */ w("ZodType", (e, t) => (be.init(e, t), Object.assign(e["~standard"], {
4413
4413
  jsonSchema: {
4414
4414
  input: Oo(e, "input"),
4415
4415
  output: Oo(e, "output")
@@ -4436,7 +4436,7 @@ const Xf = (e, t) => {
4436
4436
  return ag(e, n, r);
4437
4437
  }), e.safeDecodeAsync = (n, r) => L(null, null, function* () {
4438
4438
  return cg(e, n, r);
4439
- }), e.refine = (n, r) => e.check(rm(n, r)), e.superRefine = (n) => e.check(om(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ ar(n)), e.optional = () => Qi(e), e.exactOptional = () => Fg(e), e.nullable = () => ea(e), e.nullish = () => Qi(ea(e)), e.nonoptional = (n) => Xg(e, n), e.array = () => St(e), e.or = (n) => Og([e, n]), e.and = (n) => Mg(e, n), e.transform = (n) => ta(e, qg(n)), e.default = (n) => Wg(e, n), e.prefault = (n) => Yg(e, n), e.catch = (n) => Kg(e, n), e.pipe = (n) => ta(e, n), e.readonly = () => tm(e), e.describe = (n) => {
4439
+ }), e.refine = (n, r) => e.check(rm(n, r)), e.superRefine = (n) => e.check(om(n)), e.overwrite = (n) => e.check(/* @__PURE__ */ ar(n)), e.optional = () => Qi(e), e.exactOptional = () => Fg(e), e.nullable = () => ea(e), e.nullish = () => Qi(ea(e)), e.nonoptional = (n) => Xg(e, n), e.array = () => st(e), e.or = (n) => Og([e, n]), e.and = (n) => Mg(e, n), e.transform = (n) => ta(e, qg(n)), e.default = (n) => Wg(e, n), e.prefault = (n) => Yg(e, n), e.catch = (n) => Kg(e, n), e.pipe = (n) => ta(e, n), e.readonly = () => tm(e), e.describe = (n) => {
4440
4440
  const r = e.clone();
4441
4441
  return Pr.add(r, { description: n }), r;
4442
4442
  }, Object.defineProperty(e, "description", {
@@ -4543,11 +4543,11 @@ function Ig(e) {
4543
4543
  const zg = /* @__PURE__ */ w("ZodArray", (e, t) => {
4544
4544
  oh.init(e, t), _e.init(e, t), e._zod.processJSONSchema = (n, r, o) => Rf(e, n, r, o), e.element = t.element, e.min = (n, r) => e.check(/* @__PURE__ */ $o(n, r)), e.nonempty = (n) => e.check(/* @__PURE__ */ $o(1, n)), e.max = (n, r) => e.check(/* @__PURE__ */ hc(n, r)), e.length = (n, r) => e.check(/* @__PURE__ */ fc(n, r)), e.unwrap = () => e.element;
4545
4545
  });
4546
- function St(e, t) {
4546
+ function st(e, t) {
4547
4547
  return /* @__PURE__ */ ff(zg, e, t);
4548
4548
  }
4549
4549
  const $g = /* @__PURE__ */ w("ZodObject", (e, t) => {
4550
- ih.init(e, t), _e.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lf(e, n, r, o), ne(e, "shape", () => t.shape), e.keyof = () => dt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone(M(v({}, e._zod.def), { catchall: n })), e.passthrough = () => e.clone(M(v({}, e._zod.def), { catchall: Ki() })), e.loose = () => e.clone(M(v({}, e._zod.def), { catchall: Ki() })), e.strict = () => e.clone(M(v({}, e._zod.def), { catchall: Ig() })), e.strip = () => e.clone(M(v({}, e._zod.def), { catchall: void 0 })), e.extend = (n) => Ed(e, n), e.safeExtend = (n) => Ad(e, n), e.merge = (n) => Cd(e, n), e.pick = (n) => Sd(e, n), e.omit = (n) => Td(e, n), e.partial = (...n) => Pd(Sc, e, n[0]), e.required = (...n) => Rd(Tc, e, n[0]);
4550
+ ih.init(e, t), _e.init(e, t), e._zod.processJSONSchema = (n, r, o) => Lf(e, n, r, o), ne(e, "shape", () => t.shape), e.keyof = () => pt(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone(M(v({}, e._zod.def), { catchall: n })), e.passthrough = () => e.clone(M(v({}, e._zod.def), { catchall: Ki() })), e.loose = () => e.clone(M(v({}, e._zod.def), { catchall: Ki() })), e.strict = () => e.clone(M(v({}, e._zod.def), { catchall: Ig() })), e.strip = () => e.clone(M(v({}, e._zod.def), { catchall: void 0 })), e.extend = (n) => Ed(e, n), e.safeExtend = (n) => Ad(e, n), e.merge = (n) => Cd(e, n), e.pick = (n) => Sd(e, n), e.omit = (n) => Td(e, n), e.partial = (...n) => Pd(Sc, e, n[0]), e.required = (...n) => Rd(Tc, e, n[0]);
4551
4551
  });
4552
4552
  function fe(e, t) {
4553
4553
  const n = v({
@@ -4624,7 +4624,7 @@ const Cs = /* @__PURE__ */ w("ZodEnum", (e, t) => {
4624
4624
  }));
4625
4625
  };
4626
4626
  });
4627
- function dt(e, t) {
4627
+ function pt(e, t) {
4628
4628
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
4629
4629
  return new Cs(v({
4630
4630
  type: "enum",
@@ -4640,7 +4640,7 @@ const jg = /* @__PURE__ */ w("ZodLiteral", (e, t) => {
4640
4640
  }
4641
4641
  });
4642
4642
  });
4643
- function ut(e, t) {
4643
+ function dt(e, t) {
4644
4644
  return new jg(v({
4645
4645
  type: "literal",
4646
4646
  values: Array.isArray(e) ? e : [e]
@@ -4771,12 +4771,13 @@ function om(e) {
4771
4771
  const sm = fe({
4772
4772
  name: C().min(1).max(100).optional(),
4773
4773
  command: C().min(1).max(500),
4774
- args: St(C()).optional(),
4774
+ args: st(C()).optional(),
4775
4775
  failOnError: ge().default(!0).optional(),
4776
4776
  timeout: Ut().int().min(1e3).max(3e5).default(3e4).optional(),
4777
4777
  workingDirectory: C().optional(),
4778
4778
  env: Nt(C(), C()).optional(),
4779
- runOnBackground: ge().optional()
4779
+ runOnBackground: ge().optional(),
4780
+ agentTags: st(C()).optional()
4780
4781
  });
4781
4782
  fe({
4782
4783
  name: C(),
@@ -4791,47 +4792,48 @@ fe({
4791
4792
  });
4792
4793
  const wn = fe({
4793
4794
  path: C(),
4794
- extraCommands: St(sm).optional(),
4795
+ extraCommands: st(sm).optional(),
4795
4796
  id: C().uuid().optional(),
4796
4797
  rotationKey: C().optional(),
4797
- usageStatus: dt(["free", "in_use"]).optional()
4798
+ usageStatus: pt(["free", "in_use"]).optional(),
4799
+ agentTags: st(C()).optional()
4798
4800
  }), im = xc("operation", [
4799
4801
  wn.extend({
4800
- operation: ut("create"),
4802
+ operation: dt("create"),
4801
4803
  content: C().optional(),
4802
4804
  contentPath: C().optional(),
4803
- encoding: dt(["utf-8", "base64"]).optional()
4805
+ encoding: pt(["utf-8", "base64"]).optional()
4804
4806
  }),
4805
4807
  wn.extend({
4806
- operation: ut("merge"),
4808
+ operation: dt("merge"),
4807
4809
  data: Nt(C(), yc()),
4808
- mergeStrategy: dt(["deep", "shallow"]).optional(),
4809
- arrayMergeStrategy: dt(["concat", "replace"]).optional()
4810
+ mergeStrategy: pt(["deep", "shallow"]).optional(),
4811
+ arrayMergeStrategy: pt(["concat", "replace"]).optional()
4810
4812
  }),
4811
4813
  wn.extend({
4812
- operation: ut("modify"),
4814
+ operation: dt("modify"),
4813
4815
  content: C().optional(),
4814
4816
  contentPath: C().optional(),
4815
4817
  createIfMissing: ge().optional()
4816
4818
  }),
4817
4819
  wn.extend({
4818
- operation: ut("delete"),
4820
+ operation: dt("delete"),
4819
4821
  ignoreIfMissing: ge().optional()
4820
4822
  }),
4821
4823
  wn.extend({
4822
- operation: ut("createDirectory"),
4824
+ operation: dt("createDirectory"),
4823
4825
  contentPath: C().optional(),
4824
4826
  mode: Ut().optional(),
4825
4827
  ignoreIfExists: ge().optional()
4826
4828
  }),
4827
4829
  wn.extend({
4828
- operation: ut("download"),
4830
+ operation: dt("download"),
4829
4831
  url: C().url(),
4830
4832
  headers: Nt(C(), C()).optional(),
4831
4833
  timeout: Ut().min(1e3).max(3e5).optional()
4832
4834
  }),
4833
4835
  wn.extend({
4834
- operation: ut("gitClone"),
4836
+ operation: dt("gitClone"),
4835
4837
  gitUrl: C(),
4836
4838
  gitSecretKey: C().optional(),
4837
4839
  sourceBranch: C().optional(),
@@ -4842,73 +4844,73 @@ const wn = fe({
4842
4844
  ]);
4843
4845
  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 || {});
4844
4846
  const am = fe({
4845
- type: dt(["json", "file", "regex"]).describe("Extraction method"),
4847
+ type: pt(["json", "file", "regex"]).describe("Extraction method"),
4846
4848
  source: C().describe("Source to extract from (file path or stdout/stderr)"),
4847
4849
  schema: fe({}).passthrough().optional().describe("JSON schema for validation"),
4848
4850
  pattern: C().optional().describe("Regex pattern for extraction")
4849
4851
  }), cm = fe({
4850
- type: dt(["issue_update", "bulk_issue_update", "notification", "webhook"]).describe("Hook type"),
4852
+ type: pt(["issue_update", "bulk_issue_update", "notification", "webhook"]).describe("Hook type"),
4851
4853
  config: yc().describe("Hook-specific configuration")
4852
4854
  });
4853
4855
  fe({
4854
4856
  command: C().optional().describe("Legacy — unused in SDK mode"),
4855
- args: St(C()).optional().describe("Legacy — unused in SDK mode"),
4857
+ args: st(C()).optional().describe("Legacy — unused in SDK mode"),
4856
4858
  env: Nt(C(), C()).optional().describe("Environment variables"),
4857
4859
  workingDirectory: C().optional().describe("Working directory for command execution"),
4858
- fileOperations: St(im).optional().describe("File operations to perform during setup"),
4860
+ fileOperations: st(im).optional().describe("File operations to perform during setup"),
4859
4861
  gitUrl: C().optional().describe("Git repository URL (populated from project)"),
4860
4862
  gitPrivateKey: C().optional().describe("Git SSH private key (populated from project)"),
4861
4863
  gitCommitMessage: C().optional().describe("Commit message for git operations"),
4862
4864
  resultExtraction: am.optional().describe("Schema for extracting result data"),
4863
- postExecutionHooks: St(cm).optional().describe("Hooks to run after task completion"),
4864
- executionMode: dt(["claudeAgentSdk", "openaiAgentSdk", "opencodeSdk", "cursorSdk", "codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),
4865
+ postExecutionHooks: st(cm).optional().describe("Hooks to run after task completion"),
4866
+ executionMode: pt(["claudeAgentSdk", "openaiAgentSdk", "opencodeSdk", "cursorSdk", "codexSdk"]).optional().default("claudeAgentSdk").describe("Execution mode (default: claudeAgentSdk)"),
4865
4867
  executionPlan: xc("executionMode", [
4866
4868
  fe({
4867
- executionMode: ut("claudeAgentSdk"),
4869
+ executionMode: dt("claudeAgentSdk"),
4868
4870
  promptText: C(),
4869
4871
  sdkOptions: fe({
4870
4872
  model: C(),
4871
- permissionMode: dt(["plan", "acceptEdits", "bypassPermissions", "ask"]),
4872
- settingSources: St(C()),
4873
+ permissionMode: pt(["plan", "acceptEdits", "bypassPermissions", "ask"]),
4874
+ settingSources: st(C()),
4873
4875
  allowDangerouslySkipPermissions: ge(),
4874
4876
  persistSession: ge(),
4875
4877
  streamSdkEvents: ge().optional(),
4876
- allowedTools: St(C()).optional(),
4878
+ allowedTools: st(C()).optional(),
4877
4879
  settings: fe({ enabledPlugins: Nt(C(), ge()) }),
4878
4880
  env: Nt(C(), C()).optional()
4879
4881
  }),
4880
4882
  resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4881
4883
  }),
4882
4884
  fe({
4883
- executionMode: ut("opencodeSdk"),
4885
+ executionMode: dt("opencodeSdk"),
4884
4886
  promptText: C(),
4885
4887
  sdkOptions: fe({
4886
4888
  provider: C(),
4887
4889
  model: C(),
4888
- allowedTools: St(C()).optional(),
4890
+ allowedTools: st(C()).optional(),
4889
4891
  env: Nt(C(), C()).optional()
4890
4892
  }),
4891
4893
  resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4892
4894
  }),
4893
4895
  fe({
4894
- executionMode: ut("openaiAgentSdk"),
4896
+ executionMode: dt("openaiAgentSdk"),
4895
4897
  promptText: C(),
4896
4898
  sdkOptions: fe({ model: C(), env: Nt(C(), C()).optional() }),
4897
4899
  resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4898
4900
  }),
4899
4901
  fe({
4900
- executionMode: ut("codexSdk"),
4902
+ executionMode: dt("codexSdk"),
4901
4903
  promptText: C(),
4902
4904
  sdkOptions: fe({
4903
4905
  model: C().optional(),
4904
- sandboxMode: dt(["read-only", "workspace-write", "danger-full-access"]).optional(),
4905
- approvalPolicy: dt(["never", "on-request", "on-failure", "untrusted"]).optional(),
4906
+ sandboxMode: pt(["read-only", "workspace-write", "danger-full-access"]).optional(),
4907
+ approvalPolicy: pt(["never", "on-request", "on-failure", "untrusted"]).optional(),
4906
4908
  env: Nt(C(), C()).optional()
4907
4909
  }),
4908
4910
  resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
4909
4911
  }),
4910
4912
  fe({
4911
- executionMode: ut("cursorSdk"),
4913
+ executionMode: dt("cursorSdk"),
4912
4914
  promptText: C(),
4913
4915
  sdkOptions: fe({ model: C(), env: Nt(C(), C()).optional() }),
4914
4916
  resume: fe({ sessionId: C().optional(), continue: ge() }).optional()
@@ -4925,7 +4927,7 @@ fe({
4925
4927
  planRejectedAt: C().optional().describe("ISO timestamp when plan was rejected"),
4926
4928
  resultRejectionFeedback: C().optional().describe("User feedback when rejecting the result (most recent)"),
4927
4929
  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"),
4930
+ resultRejectionHistory: st(fe({ feedback: C(), rejectedAt: C() })).optional().describe("All rejection messages in chronological order"),
4929
4931
  notificationChannelPlanMessageId: Ut().optional(),
4930
4932
  notificationChannelPlanMessageSentAt: C().optional(),
4931
4933
  notificationChannelCompletedMessageId: Ut().optional(),
@@ -4933,7 +4935,7 @@ fe({
4933
4935
  streamSdkEvents: ge().optional().describe("Stream SDK messages (thinking, tool calls, etc.) as sdk_event chunks"),
4934
4936
  originalTaskSummary: C().optional().describe("Summary from the original task run (passed to retry for historical context)"),
4935
4937
  planWasApproved: ge().optional().describe("True when planApproved was cleared for rePlan=true retry — indicates the plan had been approved before"),
4936
- planComments: St(fe({
4938
+ planComments: st(fe({
4937
4939
  id: C(),
4938
4940
  selectedText: C(),
4939
4941
  startOffset: Ut(),
@@ -4943,7 +4945,7 @@ fe({
4943
4945
  })).optional().describe("Inline review comments attached to the plan"),
4944
4946
  hasAiConfigSecrets: ge().optional().describe("True when AI Config has secret-backed env vars; agent must fetch resolved values via /tasks/:id/resolve-secrets"),
4945
4947
  hasCredentials: ge().optional().describe("True when the task has credentials attached; agent must fetch resolved values via /tasks/:id/resolve-credentials"),
4946
- mcpServersMode: dt(["all", "ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),
4948
+ mcpServersMode: pt(["all", "ignoreExistingMcpServers"]).optional().describe("MCP server strategy for this run; 'ignoreExistingMcpServers' overrides the existing .mcp.json with only the template's configured servers plus the agent-platform server"),
4947
4949
  enableBrowserTools: ge().optional().describe("When true, the MCP server registers browser_interact and browser_get_context (browser_automate tasks only)")
4948
4950
  });
4949
4951
  Te.PENDING + "", Te.CANCELLED, Te.ASSIGNED + "", Te.CANCELLED, Te.IN_PROGRESS + "", Te.CANCELLED, Te.FAILED, Te.WAITING_FOR_INPUT + "", Te.CANCELLED, Te.WAITING_FOR_PLAN_APPROVAL + "", Te.CANCELLED, Te.PLAN_APPROVED + "", Te.CANCELLED, Te.PLAN_REJECTED + "", Te.CANCELLED, Te.COMPLETED + "", Te.RESULT_REJECTED + "", Te.CANCELLED, Te.FAILED + "", Te.CANCELLED + "";
@@ -5560,21 +5562,21 @@ function Em() {
5560
5562
  function fn(u) {
5561
5563
  return ve(Kt(u));
5562
5564
  }
5563
- var Pt = String.fromCharCode, gt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rt = function(u) {
5565
+ var Pt = String.fromCharCode, mt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Rt = function(u) {
5564
5566
  var s = u.charCodeAt(0);
5565
5567
  return s < 128 ? u : s < 2048 ? Pt(192 | s >>> 6) + Pt(128 | s & 63) : Pt(224 | s >>> 12 & 15) + Pt(128 | s >>> 6 & 63) + Pt(128 | s & 63);
5566
5568
  }, Kt = function(u) {
5567
5569
  return u.replace(/[^\x00-\x7F]/g, Rt);
5568
- }, mt = function(u) {
5570
+ }, bt = function(u) {
5569
5571
  var s = [0, 2, 1][u.length % 3], c = u.charCodeAt(0) << 16 | (u.length > 1 ? u.charCodeAt(1) : 0) << 8 | (u.length > 2 ? u.charCodeAt(2) : 0), f = [
5570
- gt.charAt(c >>> 18),
5571
- gt.charAt(c >>> 12 & 63),
5572
- s >= 2 ? "=" : gt.charAt(c >>> 6 & 63),
5573
- s >= 1 ? "=" : gt.charAt(c & 63)
5572
+ mt.charAt(c >>> 18),
5573
+ mt.charAt(c >>> 12 & 63),
5574
+ s >= 2 ? "=" : mt.charAt(c >>> 6 & 63),
5575
+ s >= 1 ? "=" : mt.charAt(c & 63)
5574
5576
  ];
5575
5577
  return f.join("");
5576
5578
  }, ve = window.btoa || function(u) {
5577
- return u.replace(/[\s\S]{1,3}/g, mt);
5579
+ return u.replace(/[\s\S]{1,3}/g, bt);
5578
5580
  };
5579
5581
  class gn {
5580
5582
  constructor(s, c, f, b) {
@@ -5665,7 +5667,7 @@ function Em() {
5665
5667
  s.push(c);
5666
5668
  }), s;
5667
5669
  }
5668
- function bt(u, s, c) {
5670
+ function kt(u, s, c) {
5669
5671
  for (var f = 0; f < u.length; f++)
5670
5672
  s.call(c || window, u[f], f, u);
5671
5673
  }
@@ -5688,7 +5690,7 @@ function Em() {
5688
5690
  s(u[f], f, u, c) && c.push(u[f]);
5689
5691
  return c;
5690
5692
  }
5691
- function it(u, s) {
5693
+ function at(u, s) {
5692
5694
  var c = {};
5693
5695
  return ue(u, function(f, b) {
5694
5696
  (s && s(f, b, u, c) || f) && (c[b] = f);
@@ -5718,7 +5720,7 @@ function Em() {
5718
5720
  });
5719
5721
  }
5720
5722
  function bn(u) {
5721
- var s = it(u, function(f) {
5723
+ var s = at(u, function(f) {
5722
5724
  return f !== void 0;
5723
5725
  }), c = Fe(Hr(dr(s)), le.method("join", "=")).join("&");
5724
5726
  return c;
@@ -5839,11 +5841,11 @@ function Em() {
5839
5841
  });
5840
5842
  R.send(O);
5841
5843
  };
5842
- }, kt = {
5844
+ }, _t = {
5843
5845
  name: "jsonp",
5844
5846
  getAgent: On
5845
5847
  };
5846
- const en = kt;
5848
+ const en = _t;
5847
5849
  function kn(u, s, c) {
5848
5850
  var f = u + (s.useTLS ? "s" : ""), b = s.useTLS ? s.hostTLS : s.hostNonTLS;
5849
5851
  return f + "://" + b + c;
@@ -5893,14 +5895,14 @@ function Em() {
5893
5895
  c || f ? this.removeCallback(b, c, f) : this.removeAllCallbacks(b);
5894
5896
  }
5895
5897
  removeCallback(s, c, f) {
5896
- bt(s, function(b) {
5898
+ kt(s, function(b) {
5897
5899
  this._callbacks[b] = Lt(this._callbacks[b] || [], function(x) {
5898
5900
  return c && c !== x.fn || f && f !== x.context;
5899
5901
  }), this._callbacks[b].length === 0 && delete this._callbacks[b];
5900
5902
  }, this);
5901
5903
  }
5902
5904
  removeAllCallbacks(s) {
5903
- bt(s, function(c) {
5905
+ kt(s, function(c) {
5904
5906
  delete this._callbacks[c];
5905
5907
  }, this);
5906
5908
  }
@@ -5908,7 +5910,7 @@ function Em() {
5908
5910
  function Zt(u) {
5909
5911
  return "_" + u;
5910
5912
  }
5911
- class _t {
5913
+ class vt {
5912
5914
  constructor(s) {
5913
5915
  this.callbacks = new ns(), this.global_callbacks = [], this.failThrough = s;
5914
5916
  }
@@ -5938,7 +5940,7 @@ function Em() {
5938
5940
  return this;
5939
5941
  }
5940
5942
  }
5941
- class rs extends _t {
5943
+ class rs extends vt {
5942
5944
  constructor(s, c, f, b, x) {
5943
5945
  super(), this.initialize = G.transportConnectionInitializer, this.hooks = s, this.name = c, this.priority = f, this.key = b, this.options = x, this.state = "new", this.timeline = x.timeline, this.activityTimeout = x.activityTimeout, this.id = this.timeline.generateUniqueID();
5944
5946
  }
@@ -6060,12 +6062,12 @@ function Em() {
6060
6062
  isSupported: function() {
6061
6063
  return G.isXHRSupported();
6062
6064
  }
6063
- }, Wr = new pe(Se({}, fr, gr)), os = new pe(Se({}, Mn, gr)), at = {
6065
+ }, Wr = new pe(Se({}, fr, gr)), os = new pe(Se({}, Mn, gr)), ct = {
6064
6066
  ws: tn,
6065
6067
  xhr_streaming: Wr,
6066
6068
  xhr_polling: os
6067
6069
  };
6068
- const ct = at;
6070
+ const lt = ct;
6069
6071
  var Jr = new pe({
6070
6072
  file: "sockjs",
6071
6073
  urls: Dn,
@@ -6096,9 +6098,9 @@ function Em() {
6096
6098
  return s;
6097
6099
  }
6098
6100
  }, br = new pe(Se({}, fr, mr)), Yr = new pe(Se({}, Mn, mr));
6099
- ct.xdr_streaming = br, ct.xdr_polling = Yr, ct.sockjs = Jr;
6100
- const vt = ct;
6101
- class Xr extends _t {
6101
+ lt.xdr_streaming = br, lt.xdr_polling = Yr, lt.sockjs = Jr;
6102
+ const yt = lt;
6103
+ class Xr extends vt {
6102
6104
  constructor() {
6103
6105
  super();
6104
6106
  var s = this;
@@ -6191,7 +6193,7 @@ function Em() {
6191
6193
  } : null;
6192
6194
  }
6193
6195
  }, qt = kr;
6194
- class D extends _t {
6196
+ class D extends vt {
6195
6197
  constructor(s, c) {
6196
6198
  super(), this.id = s, this.transport = c, this.activityTimeout = c.activityTimeout, this.bindListeners();
6197
6199
  }
@@ -6307,7 +6309,7 @@ function Em() {
6307
6309
  this.timeline.isEmpty() || this.timeline.send(G.TimelineTransport.getAgent(this, s), c);
6308
6310
  }
6309
6311
  }
6310
- class I extends _t {
6312
+ class I extends vt {
6311
6313
  constructor(s, c) {
6312
6314
  super(function(f, b) {
6313
6315
  de.debug("No callbacks on " + s + " for " + f);
@@ -6491,7 +6493,7 @@ function Em() {
6491
6493
  this.members.reset(), super.disconnect();
6492
6494
  }
6493
6495
  }
6494
- var yt = l(978), It = l(594);
6496
+ var wt = l(978), It = l(594);
6495
6497
  class _r extends se {
6496
6498
  constructor(s, c, f) {
6497
6499
  super(s, c), this.key = null, this.nacl = f;
@@ -6558,7 +6560,7 @@ function Em() {
6558
6560
  this.emit(s, this.getDataToEmit(x));
6559
6561
  }
6560
6562
  getDataToEmit(s) {
6561
- let c = (0, yt.D4)(s);
6563
+ let c = (0, wt.D4)(s);
6562
6564
  try {
6563
6565
  return JSON.parse(c);
6564
6566
  } catch (f) {
@@ -6566,7 +6568,7 @@ function Em() {
6566
6568
  }
6567
6569
  }
6568
6570
  }
6569
- class Le extends _t {
6571
+ class Le extends vt {
6570
6572
  constructor(s, c) {
6571
6573
  super(), this.state = "initialized", this.connection = null, this.key = s, this.options = c, this.timeline = this.options.timeline, this.usingTLS = this.options.useTLS, this.errorCallbacks = this.buildErrorCallbacks(), this.connectionCallbacks = this.buildConnectionCallbacks(this.errorCallbacks), this.handshakeCallbacks = this.buildHandshakeCallbacks(this.errorCallbacks);
6572
6574
  var f = G.getNetwork();
@@ -6861,7 +6863,7 @@ function Em() {
6861
6863
  Cl(b) && c(!0);
6862
6864
  return;
6863
6865
  }
6864
- bt(b, function(O) {
6866
+ kt(b, function(O) {
6865
6867
  O.forceMinPriority(R.transport.priority);
6866
6868
  }), c(null, R);
6867
6869
  };
@@ -6874,10 +6876,10 @@ function Em() {
6874
6876
  });
6875
6877
  return {
6876
6878
  abort: function() {
6877
- bt(f, Pl);
6879
+ kt(f, Pl);
6878
6880
  },
6879
6881
  forceMinPriority: function(b) {
6880
- bt(f, function(x) {
6882
+ kt(f, function(x) {
6881
6883
  x.forceMinPriority(b);
6882
6884
  });
6883
6885
  }
@@ -7090,7 +7092,7 @@ function Em() {
7090
7092
  }
7091
7093
  };
7092
7094
  const Ml = Dl, Ul = 256 * 1024;
7093
- class jl extends _t {
7095
+ class jl extends vt {
7094
7096
  constructor(s, c, f) {
7095
7097
  super(), this.hooks = s, this.method = c, this.url = f;
7096
7098
  }
@@ -7319,7 +7321,7 @@ function Em() {
7319
7321
  ScriptReceivers: h,
7320
7322
  DependenciesReceivers: y,
7321
7323
  getDefaultStrategy: Ol,
7322
- Transports: vt,
7324
+ Transports: yt,
7323
7325
  transportConnectionInitializer: Nl,
7324
7326
  HTTPFactory: bi,
7325
7327
  TimelineTransport: en,
@@ -7639,7 +7641,7 @@ function Em() {
7639
7641
  const c = _u(u, s);
7640
7642
  return vi(c) ? c.customHandler : du(c);
7641
7643
  }
7642
- class yu extends _t {
7644
+ class yu extends vt {
7643
7645
  constructor(s) {
7644
7646
  super(function(c, f) {
7645
7647
  de.debug(`No callbacks on watchlist events for ${c}`);
@@ -7664,7 +7666,7 @@ function Em() {
7664
7666
  }), resolve: u, reject: s };
7665
7667
  }
7666
7668
  const xu = wu;
7667
- class Su extends _t {
7669
+ class Su extends vt {
7668
7670
  constructor(s) {
7669
7671
  super(function(c, f) {
7670
7672
  de.debug("No callbacks on user for " + c);
@@ -7734,12 +7736,12 @@ function Em() {
7734
7736
  Me.instances[s].connect();
7735
7737
  }
7736
7738
  static getClientFeatures() {
7737
- return ze(it({ ws: G.Transports.ws }, function(s) {
7739
+ return ze(at({ ws: G.Transports.ws }, function(s) {
7738
7740
  return s.isSupported({});
7739
7741
  }));
7740
7742
  }
7741
7743
  constructor(s, c) {
7742
- Tu(s), au(c), this.key = s, this.options = c, this.config = _i(this.options, this), this.channels = Ht.createChannels(), this.global_emitter = new _t(), this.sessionID = G.randomInt(1e9), this.timeline = new nu(this.key, this.sessionID, {
7744
+ Tu(s), au(c), this.key = s, this.options = c, this.config = _i(this.options, this), this.channels = Ht.createChannels(), this.global_emitter = new vt(), this.sessionID = G.randomInt(1e9), this.timeline = new nu(this.key, this.sessionID, {
7743
7745
  cluster: this.config.cluster,
7744
7746
  features: Me.getClientFeatures(),
7745
7747
  params: this.config.timelineParams || {},
@@ -9191,7 +9193,7 @@ const {
9191
9193
  } = Object;
9192
9194
  let {
9193
9195
  freeze: tt,
9194
- seal: ht,
9196
+ seal: ft,
9195
9197
  create: zs
9196
9198
  } = Object, {
9197
9199
  apply: $s,
@@ -9200,7 +9202,7 @@ let {
9200
9202
  tt || (tt = function(t) {
9201
9203
  return t;
9202
9204
  });
9203
- ht || (ht = function(t) {
9205
+ ft || (ft = function(t) {
9204
9206
  return t;
9205
9207
  });
9206
9208
  $s || ($s = function(t, n) {
@@ -9213,7 +9215,7 @@ Os || (Os = function(t) {
9213
9215
  r[o - 1] = arguments[o];
9214
9216
  return new t(...r);
9215
9217
  });
9216
- const ho = nt(Array.prototype.forEach), Db = nt(Array.prototype.lastIndexOf), ya = nt(Array.prototype.pop), Sr = nt(Array.prototype.push), Mb = nt(Array.prototype.splice), yo = nt(String.prototype.toLowerCase), bs = nt(String.prototype.toString), ks = nt(String.prototype.match), Tr = nt(String.prototype.replace), Ub = nt(String.prototype.indexOf), jb = nt(String.prototype.trim), wt = nt(Object.prototype.hasOwnProperty), Xe = nt(RegExp.prototype.test), Er = Zb(TypeError);
9218
+ const ho = nt(Array.prototype.forEach), Db = nt(Array.prototype.lastIndexOf), ya = nt(Array.prototype.pop), Sr = nt(Array.prototype.push), Mb = nt(Array.prototype.splice), yo = nt(String.prototype.toLowerCase), bs = nt(String.prototype.toString), ks = nt(String.prototype.match), Tr = nt(String.prototype.replace), Ub = nt(String.prototype.indexOf), jb = nt(String.prototype.trim), xt = nt(Object.prototype.hasOwnProperty), Xe = nt(RegExp.prototype.test), Er = Zb(TypeError);
9217
9219
  function nt(e) {
9218
9220
  return function(t) {
9219
9221
  t instanceof RegExp && (t.lastIndex = 0);
@@ -9245,13 +9247,13 @@ function X(e, t) {
9245
9247
  }
9246
9248
  function qb(e) {
9247
9249
  for (let t = 0; t < e.length; t++)
9248
- wt(e, t) || (e[t] = null);
9250
+ xt(e, t) || (e[t] = null);
9249
9251
  return e;
9250
9252
  }
9251
9253
  function $t(e) {
9252
9254
  const t = zs(null);
9253
9255
  for (const [n, r] of Fc(e))
9254
- wt(e, n) && (Array.isArray(r) ? t[n] = qb(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = $t(r) : t[n] = r);
9256
+ xt(e, n) && (Array.isArray(r) ? t[n] = qb(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = $t(r) : t[n] = r);
9255
9257
  return t;
9256
9258
  }
9257
9259
  function Ar(e, t) {
@@ -9270,13 +9272,13 @@ function Ar(e, t) {
9270
9272
  }
9271
9273
  return n;
9272
9274
  }
9273
- const wa = tt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _s = tt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), vs = tt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Hb = tt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ys = tt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Fb = tt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), xa = tt(["#text"]), Sa = tt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ws = tt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ta = tt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), fo = tt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Bb = ht(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Gb = ht(/<%[\w\W]*|[\w\W]*%>/gm), Wb = ht(/\$\{[\w\W]*/gm), Jb = ht(/^data-[\-\w.\u00B7-\uFFFF]+$/), Yb = ht(/^aria-[\-\w]+$/), Bc = ht(
9275
+ const wa = tt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), _s = tt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), vs = tt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Hb = tt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ys = tt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Fb = tt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), xa = tt(["#text"]), Sa = tt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ws = tt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Ta = tt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), fo = tt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Bb = ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Gb = ft(/<%[\w\W]*|[\w\W]*%>/gm), Wb = ft(/\$\{[\w\W]*/gm), Jb = ft(/^data-[\-\w.\u00B7-\uFFFF]+$/), Yb = ft(/^aria-[\-\w]+$/), Bc = ft(
9274
9276
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
9275
9277
  // eslint-disable-line no-useless-escape
9276
- ), Xb = ht(/^(?:\w+script|data):/i), Vb = ht(
9278
+ ), Xb = ft(/^(?:\w+script|data):/i), Vb = ft(
9277
9279
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
9278
9280
  // eslint-disable-line no-control-regex
9279
- ), Gc = ht(/^html$/i), Kb = ht(/^[a-z][.\w]*(-[.\w]+)+$/i);
9281
+ ), Gc = ft(/^html$/i), Kb = ft(/^[a-z][.\w]*(-[.\w]+)+$/i);
9280
9282
  var Ea = /* @__PURE__ */ Object.freeze({
9281
9283
  __proto__: null,
9282
9284
  ARIA_ATTR: Yb,
@@ -9371,12 +9373,12 @@ function Wc() {
9371
9373
  TMPLIT_EXPR: Ct,
9372
9374
  DATA_ATTR: fn,
9373
9375
  ARIA_ATTR: Pt,
9374
- IS_SCRIPT_OR_DATA: gt,
9376
+ IS_SCRIPT_OR_DATA: mt,
9375
9377
  ATTR_WHITESPACE: Rt,
9376
9378
  CUSTOM_ELEMENT: Kt
9377
9379
  } = Ea;
9378
9380
  let {
9379
- IS_ALLOWED_URI: mt
9381
+ IS_ALLOWED_URI: bt
9380
9382
  } = Ea, ve = null;
9381
9383
  const gn = X({}, [...wa, ..._s, ...vs, ...ys, ...xa]);
9382
9384
  let ye = null;
@@ -9415,20 +9417,20 @@ function Wc() {
9415
9417
  value: null
9416
9418
  }
9417
9419
  }));
9418
- let le = !0, Se = !0, mn = !1, De = !0, ue = !1, ze = !0, Re = !1, bt = !1, Fe = !1, Je = !1, Lt = !1, it = !1, Hr = !0, ur = !1;
9420
+ let le = !0, Se = !0, mn = !1, De = !0, ue = !1, ze = !0, Re = !1, kt = !1, Fe = !1, Je = !1, Lt = !1, at = !1, Hr = !0, ur = !1;
9419
9421
  const es = "user-content-";
9420
9422
  let dr = !0, bn = !1, Qt = {}, Ye = null;
9421
9423
  const pr = X({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
9422
9424
  let de = null;
9423
9425
  const Fr = X({}, ["audio", "video", "img", "source", "image", "track"]);
9424
9426
  let hr = null;
9425
- const Br = X({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", On = "http://www.w3.org/2000/svg", kt = "http://www.w3.org/1999/xhtml";
9426
- let en = kt, kn = !1, _n = null;
9427
- const ts = X({}, [$n, On, kt], bs);
9427
+ const Br = X({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", On = "http://www.w3.org/2000/svg", _t = "http://www.w3.org/1999/xhtml";
9428
+ let en = _t, kn = !1, _n = null;
9429
+ const ts = X({}, [$n, On, _t], bs);
9428
9430
  let Nn = X({}, ["mi", "mo", "mn", "ms", "mtext"]), Dn = X({}, ["annotation-xml"]);
9429
9431
  const ns = X({}, ["title", "style", "font", "a", "script"]);
9430
9432
  let Zt = null;
9431
- const _t = ["application/xhtml+xml", "text/html"], rs = "text/html";
9433
+ const vt = ["application/xhtml+xml", "text/html"], rs = "text/html";
9432
9434
  let pe = null, tn = null;
9433
9435
  const Gr = n.createElement("form"), fr = function(_) {
9434
9436
  return _ instanceof RegExp || _ instanceof Function;
@@ -9436,7 +9438,7 @@ function Wc() {
9436
9438
  let _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9437
9439
  if (!(tn && tn === _)) {
9438
9440
  if ((!_ || typeof _ != "object") && (_ = {}), _ = $t(_), Zt = // eslint-disable-next-line unicorn/prefer-includes
9439
- _t.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? rs : _.PARSER_MEDIA_TYPE, pe = Zt === "application/xhtml+xml" ? bs : yo, ve = wt(_, "ALLOWED_TAGS") ? X({}, _.ALLOWED_TAGS, pe) : gn, ye = wt(_, "ALLOWED_ATTR") ? X({}, _.ALLOWED_ATTR, pe) : W, _n = wt(_, "ALLOWED_NAMESPACES") ? X({}, _.ALLOWED_NAMESPACES, bs) : ts, hr = wt(_, "ADD_URI_SAFE_ATTR") ? X($t(Br), _.ADD_URI_SAFE_ATTR, pe) : Br, de = wt(_, "ADD_DATA_URI_TAGS") ? X($t(Fr), _.ADD_DATA_URI_TAGS, pe) : Fr, Ye = wt(_, "FORBID_CONTENTS") ? X({}, _.FORBID_CONTENTS, pe) : pr, re = wt(_, "FORBID_TAGS") ? X({}, _.FORBID_TAGS, pe) : $t({}), Ne = wt(_, "FORBID_ATTR") ? X({}, _.FORBID_ATTR, pe) : $t({}), Qt = wt(_, "USE_PROFILES") ? _.USE_PROFILES : !1, le = _.ALLOW_ARIA_ATTR !== !1, Se = _.ALLOW_DATA_ATTR !== !1, mn = _.ALLOW_UNKNOWN_PROTOCOLS || !1, De = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = _.SAFE_FOR_TEMPLATES || !1, ze = _.SAFE_FOR_XML !== !1, Re = _.WHOLE_DOCUMENT || !1, Je = _.RETURN_DOM || !1, Lt = _.RETURN_DOM_FRAGMENT || !1, it = _.RETURN_TRUSTED_TYPE || !1, Fe = _.FORCE_BODY || !1, Hr = _.SANITIZE_DOM !== !1, ur = _.SANITIZE_NAMED_PROPS || !1, dr = _.KEEP_CONTENT !== !1, bn = _.IN_PLACE || !1, mt = _.ALLOWED_URI_REGEXP || Bc, en = _.NAMESPACE || kt, Nn = _.MATHML_TEXT_INTEGRATION_POINTS || Nn, Dn = _.HTML_INTEGRATION_POINTS || Dn, H = _.CUSTOM_ELEMENT_HANDLING || {}, _.CUSTOM_ELEMENT_HANDLING && fr(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = _.CUSTOM_ELEMENT_HANDLING.tagNameCheck), _.CUSTOM_ELEMENT_HANDLING && fr(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = _.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (Se = !1), Lt && (Je = !0), Qt && (ve = X({}, xa), ye = [], Qt.html === !0 && (X(ve, wa), X(ye, Sa)), Qt.svg === !0 && (X(ve, _s), X(ye, ws), X(ye, fo)), Qt.svgFilters === !0 && (X(ve, vs), X(ye, ws), X(ye, fo)), Qt.mathMl === !0 && (X(ve, ys), X(ye, Ta), X(ye, fo))), _.ADD_TAGS && (typeof _.ADD_TAGS == "function" ? We.tagCheck = _.ADD_TAGS : (ve === gn && (ve = $t(ve)), X(ve, _.ADD_TAGS, pe))), _.ADD_ATTR && (typeof _.ADD_ATTR == "function" ? We.attributeCheck = _.ADD_ATTR : (ye === W && (ye = $t(ye)), X(ye, _.ADD_ATTR, pe))), _.ADD_URI_SAFE_ATTR && X(hr, _.ADD_URI_SAFE_ATTR, pe), _.FORBID_CONTENTS && (Ye === pr && (Ye = $t(Ye)), X(Ye, _.FORBID_CONTENTS, pe)), _.ADD_FORBID_CONTENTS && (Ye === pr && (Ye = $t(Ye)), X(Ye, _.ADD_FORBID_CONTENTS, pe)), dr && (ve["#text"] = !0), Re && X(ve, ["html", "head", "body"]), ve.table && (X(ve, ["tbody"]), delete re.tbody), _.TRUSTED_TYPES_POLICY) {
9441
+ vt.indexOf(_.PARSER_MEDIA_TYPE) === -1 ? rs : _.PARSER_MEDIA_TYPE, pe = Zt === "application/xhtml+xml" ? bs : yo, ve = xt(_, "ALLOWED_TAGS") ? X({}, _.ALLOWED_TAGS, pe) : gn, ye = xt(_, "ALLOWED_ATTR") ? X({}, _.ALLOWED_ATTR, pe) : W, _n = xt(_, "ALLOWED_NAMESPACES") ? X({}, _.ALLOWED_NAMESPACES, bs) : ts, hr = xt(_, "ADD_URI_SAFE_ATTR") ? X($t(Br), _.ADD_URI_SAFE_ATTR, pe) : Br, de = xt(_, "ADD_DATA_URI_TAGS") ? X($t(Fr), _.ADD_DATA_URI_TAGS, pe) : Fr, Ye = xt(_, "FORBID_CONTENTS") ? X({}, _.FORBID_CONTENTS, pe) : pr, re = xt(_, "FORBID_TAGS") ? X({}, _.FORBID_TAGS, pe) : $t({}), Ne = xt(_, "FORBID_ATTR") ? X({}, _.FORBID_ATTR, pe) : $t({}), Qt = xt(_, "USE_PROFILES") ? _.USE_PROFILES : !1, le = _.ALLOW_ARIA_ATTR !== !1, Se = _.ALLOW_DATA_ATTR !== !1, mn = _.ALLOW_UNKNOWN_PROTOCOLS || !1, De = _.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = _.SAFE_FOR_TEMPLATES || !1, ze = _.SAFE_FOR_XML !== !1, Re = _.WHOLE_DOCUMENT || !1, Je = _.RETURN_DOM || !1, Lt = _.RETURN_DOM_FRAGMENT || !1, at = _.RETURN_TRUSTED_TYPE || !1, Fe = _.FORCE_BODY || !1, Hr = _.SANITIZE_DOM !== !1, ur = _.SANITIZE_NAMED_PROPS || !1, dr = _.KEEP_CONTENT !== !1, bn = _.IN_PLACE || !1, bt = _.ALLOWED_URI_REGEXP || Bc, en = _.NAMESPACE || _t, Nn = _.MATHML_TEXT_INTEGRATION_POINTS || Nn, Dn = _.HTML_INTEGRATION_POINTS || Dn, H = _.CUSTOM_ELEMENT_HANDLING || {}, _.CUSTOM_ELEMENT_HANDLING && fr(_.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (H.tagNameCheck = _.CUSTOM_ELEMENT_HANDLING.tagNameCheck), _.CUSTOM_ELEMENT_HANDLING && fr(_.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (H.attributeNameCheck = _.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), _.CUSTOM_ELEMENT_HANDLING && typeof _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = _.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (Se = !1), Lt && (Je = !0), Qt && (ve = X({}, xa), ye = [], Qt.html === !0 && (X(ve, wa), X(ye, Sa)), Qt.svg === !0 && (X(ve, _s), X(ye, ws), X(ye, fo)), Qt.svgFilters === !0 && (X(ve, vs), X(ye, ws), X(ye, fo)), Qt.mathMl === !0 && (X(ve, ys), X(ye, Ta), X(ye, fo))), _.ADD_TAGS && (typeof _.ADD_TAGS == "function" ? We.tagCheck = _.ADD_TAGS : (ve === gn && (ve = $t(ve)), X(ve, _.ADD_TAGS, pe))), _.ADD_ATTR && (typeof _.ADD_ATTR == "function" ? We.attributeCheck = _.ADD_ATTR : (ye === W && (ye = $t(ye)), X(ye, _.ADD_ATTR, pe))), _.ADD_URI_SAFE_ATTR && X(hr, _.ADD_URI_SAFE_ATTR, pe), _.FORBID_CONTENTS && (Ye === pr && (Ye = $t(Ye)), X(Ye, _.FORBID_CONTENTS, pe)), _.ADD_FORBID_CONTENTS && (Ye === pr && (Ye = $t(Ye)), X(Ye, _.ADD_FORBID_CONTENTS, pe)), dr && (ve["#text"] = !0), Re && X(ve, ["html", "head", "body"]), ve.table && (X(ve, ["tbody"]), delete re.tbody), _.TRUSTED_TYPES_POLICY) {
9440
9442
  if (typeof _.TRUSTED_TYPES_POLICY.createHTML != "function")
9441
9443
  throw Er('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
9442
9444
  if (typeof _.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -9453,8 +9455,8 @@ function Wc() {
9453
9455
  tagName: "template"
9454
9456
  });
9455
9457
  const I = yo(_.tagName), se = yo(A.tagName);
9456
- return _n[_.namespaceURI] ? _.namespaceURI === On ? A.namespaceURI === kt ? I === "svg" : A.namespaceURI === $n ? I === "svg" && (se === "annotation-xml" || Nn[se]) : !!gr[I] : _.namespaceURI === $n ? A.namespaceURI === kt ? I === "math" : A.namespaceURI === On ? I === "math" && Dn[se] : !!Wr[I] : _.namespaceURI === kt ? A.namespaceURI === On && !Dn[se] || A.namespaceURI === $n && !Nn[se] ? !1 : !Wr[I] && (ns[I] || !gr[I]) : !!(Zt === "application/xhtml+xml" && _n[_.namespaceURI]) : !1;
9457
- }, at = function(_) {
9458
+ return _n[_.namespaceURI] ? _.namespaceURI === On ? A.namespaceURI === _t ? I === "svg" : A.namespaceURI === $n ? I === "svg" && (se === "annotation-xml" || Nn[se]) : !!gr[I] : _.namespaceURI === $n ? A.namespaceURI === _t ? I === "math" : A.namespaceURI === On ? I === "math" && Dn[se] : !!Wr[I] : _.namespaceURI === _t ? A.namespaceURI === On && !Dn[se] || A.namespaceURI === $n && !Nn[se] ? !1 : !Wr[I] && (ns[I] || !gr[I]) : !!(Zt === "application/xhtml+xml" && _n[_.namespaceURI]) : !1;
9459
+ }, ct = function(_) {
9458
9460
  Sr(t.removed, {
9459
9461
  element: _
9460
9462
  });
@@ -9463,7 +9465,7 @@ function Wc() {
9463
9465
  } catch (A) {
9464
9466
  j(_);
9465
9467
  }
9466
- }, ct = function(_, A) {
9468
+ }, lt = function(_, A) {
9467
9469
  try {
9468
9470
  Sr(t.removed, {
9469
9471
  attribute: A.getAttributeNode(_),
@@ -9478,7 +9480,7 @@ function Wc() {
9478
9480
  if (A.removeAttribute(_), _ === "is")
9479
9481
  if (Je || Lt)
9480
9482
  try {
9481
- at(A);
9483
+ ct(A);
9482
9484
  } catch (I) {
9483
9485
  }
9484
9486
  else
@@ -9494,9 +9496,9 @@ function Wc() {
9494
9496
  const xe = ks(_, /^[\r\n\t ]+/);
9495
9497
  I = xe && xe[0];
9496
9498
  }
9497
- Zt === "application/xhtml+xml" && en === kt && (_ = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + _ + "</body></html>");
9499
+ Zt === "application/xhtml+xml" && en === _t && (_ = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + _ + "</body></html>");
9498
9500
  const se = S ? S.createHTML(_) : _;
9499
- if (en === kt)
9501
+ if (en === _t)
9500
9502
  try {
9501
9503
  A = new m().parseFromString(se, Zt);
9502
9504
  } catch (xe) {
@@ -9509,7 +9511,7 @@ function Wc() {
9509
9511
  }
9510
9512
  }
9511
9513
  const $e = A.body || A.documentElement;
9512
- return _ && I && $e.insertBefore(n.createTextNode(I), $e.childNodes[0] || null), en === kt ? Oe.call(A, Re ? "html" : "body")[0] : Re ? A.documentElement : $e;
9514
+ return _ && I && $e.insertBefore(n.createTextNode(I), $e.childNodes[0] || null), en === _t ? Oe.call(A, Re ? "html" : "body")[0] : Re ? A.documentElement : $e;
9513
9515
  }, mr = function(_) {
9514
9516
  return Y.call(
9515
9517
  _.ownerDocument || _,
@@ -9523,21 +9525,21 @@ function Wc() {
9523
9525
  }, Yr = function(_) {
9524
9526
  return typeof d == "function" && _ instanceof d;
9525
9527
  };
9526
- function vt(D, _, A) {
9528
+ function yt(D, _, A) {
9527
9529
  ho(D, (I) => {
9528
9530
  I.call(t, _, A, tn);
9529
9531
  });
9530
9532
  }
9531
9533
  const Xr = function(_) {
9532
9534
  let A = null;
9533
- if (vt(te.beforeSanitizeElements, _, null), br(_))
9534
- return at(_), !0;
9535
+ if (yt(te.beforeSanitizeElements, _, null), br(_))
9536
+ return ct(_), !0;
9535
9537
  const I = pe(_.nodeName);
9536
- if (vt(te.uponSanitizeElement, _, {
9538
+ if (yt(te.uponSanitizeElement, _, {
9537
9539
  tagName: I,
9538
9540
  allowedTags: ve
9539
9541
  }), ze && _.hasChildNodes() && !Yr(_.firstElementChild) && Xe(/<[/\w!]/g, _.innerHTML) && Xe(/<[/\w!]/g, _.textContent) || _.nodeType === Cr.progressingInstruction || ze && _.nodeType === Cr.comment && Xe(/<[/\w]/g, _.data))
9540
- return at(_), !0;
9542
+ return ct(_), !0;
9541
9543
  if (!(We.tagCheck instanceof Function && We.tagCheck(I)) && (!ve[I] || re[I])) {
9542
9544
  if (!re[I] && Kr(I) && (H.tagNameCheck instanceof RegExp && Xe(H.tagNameCheck, I) || H.tagNameCheck instanceof Function && H.tagNameCheck(I)))
9543
9545
  return !1;
@@ -9546,18 +9548,18 @@ function Wc() {
9546
9548
  if ($e && se) {
9547
9549
  const xe = $e.length;
9548
9550
  for (let Be = xe - 1; Be >= 0; --Be) {
9549
- const yt = E($e[Be], !0);
9550
- yt.__removalCount = (_.__removalCount || 0) + 1, se.insertBefore(yt, Q(_));
9551
+ const wt = E($e[Be], !0);
9552
+ wt.__removalCount = (_.__removalCount || 0) + 1, se.insertBefore(wt, Q(_));
9551
9553
  }
9552
9554
  }
9553
9555
  }
9554
- return at(_), !0;
9556
+ return ct(_), !0;
9555
9557
  }
9556
- return _ instanceof l && !os(_) || (I === "noscript" || I === "noembed" || I === "noframes") && Xe(/<\/no(script|embed|frames)/i, _.innerHTML) ? (at(_), !0) : (ue && _.nodeType === Cr.text && (A = _.textContent, ho([Pe, He, Ct], (se) => {
9558
+ return _ instanceof l && !os(_) || (I === "noscript" || I === "noembed" || I === "noframes") && Xe(/<\/no(script|embed|frames)/i, _.innerHTML) ? (ct(_), !0) : (ue && _.nodeType === Cr.text && (A = _.textContent, ho([Pe, He, Ct], (se) => {
9557
9559
  A = Tr(A, se, " ");
9558
9560
  }), _.textContent !== A && (Sr(t.removed, {
9559
9561
  element: _.cloneNode()
9560
- }), _.textContent = A)), vt(te.afterSanitizeElements, _, null), !1);
9562
+ }), _.textContent = A)), yt(te.afterSanitizeElements, _, null), !1);
9561
9563
  }, Vr = function(_, A, I) {
9562
9564
  if (Hr && (A === "id" || A === "name") && (I in n || I in Gr))
9563
9565
  return !1;
@@ -9574,9 +9576,9 @@ function Wc() {
9574
9576
  A === "is" && H.allowCustomizedBuiltInElements && (H.tagNameCheck instanceof RegExp && Xe(H.tagNameCheck, I) || H.tagNameCheck instanceof Function && H.tagNameCheck(I)))
9575
9577
  ) return !1;
9576
9578
  } else if (!hr[A]) {
9577
- if (!Xe(mt, Tr(I, Rt, ""))) {
9579
+ if (!Xe(bt, Tr(I, Rt, ""))) {
9578
9580
  if (!((A === "src" || A === "xlink:href" || A === "href") && _ !== "script" && Ub(I, "data:") === 0 && de[_])) {
9579
- if (!(mn && !Xe(gt, Tr(I, Rt, "")))) {
9581
+ if (!(mn && !Xe(mt, Tr(I, Rt, "")))) {
9580
9582
  if (I)
9581
9583
  return !1;
9582
9584
  }
@@ -9590,7 +9592,7 @@ function Wc() {
9590
9592
  }, Kr = function(_) {
9591
9593
  return _ !== "annotation-xml" && ks(_, Kt);
9592
9594
  }, kr = function(_) {
9593
- vt(te.beforeSanitizeAttributes, _, null);
9595
+ yt(te.beforeSanitizeAttributes, _, null);
9594
9596
  const {
9595
9597
  attributes: A
9596
9598
  } = _;
@@ -9608,25 +9610,25 @@ function Wc() {
9608
9610
  const $e = A[se], {
9609
9611
  name: xe,
9610
9612
  namespaceURI: Be,
9611
- value: yt
9612
- } = $e, It = pe(xe), _r = yt;
9613
+ value: wt
9614
+ } = $e, It = pe(xe), _r = wt;
9613
9615
  let Le = xe === "value" ? _r : jb(_r);
9614
- if (I.attrName = It, I.attrValue = Le, I.keepAttr = !0, I.forceKeepAttr = void 0, vt(te.uponSanitizeAttribute, _, I), Le = I.attrValue, ur && (It === "id" || It === "name") && (ct(xe, _), Le = es + Le), ze && Xe(/((--!?|])>)|<\/(style|title|textarea)/i, Le)) {
9615
- ct(xe, _);
9616
+ if (I.attrName = It, I.attrValue = Le, I.keepAttr = !0, I.forceKeepAttr = void 0, yt(te.uponSanitizeAttribute, _, I), Le = I.attrValue, ur && (It === "id" || It === "name") && (lt(xe, _), Le = es + Le), ze && Xe(/((--!?|])>)|<\/(style|title|textarea)/i, Le)) {
9617
+ lt(xe, _);
9616
9618
  continue;
9617
9619
  }
9618
9620
  if (It === "attributename" && ks(Le, "href")) {
9619
- ct(xe, _);
9621
+ lt(xe, _);
9620
9622
  continue;
9621
9623
  }
9622
9624
  if (I.forceKeepAttr)
9623
9625
  continue;
9624
9626
  if (!I.keepAttr) {
9625
- ct(xe, _);
9627
+ lt(xe, _);
9626
9628
  continue;
9627
9629
  }
9628
9630
  if (!De && Xe(/\/>/i, Le)) {
9629
- ct(xe, _);
9631
+ lt(xe, _);
9630
9632
  continue;
9631
9633
  }
9632
9634
  ue && ho([Pe, He, Ct], (eo) => {
@@ -9634,7 +9636,7 @@ function Wc() {
9634
9636
  });
9635
9637
  const Qr = pe(_.nodeName);
9636
9638
  if (!Vr(Qr, It, Le)) {
9637
- ct(xe, _);
9639
+ lt(xe, _);
9638
9640
  continue;
9639
9641
  }
9640
9642
  if (S && typeof k == "object" && typeof k.getAttributeType == "function" && !Be)
@@ -9650,18 +9652,18 @@ function Wc() {
9650
9652
  }
9651
9653
  if (Le !== _r)
9652
9654
  try {
9653
- Be ? _.setAttributeNS(Be, xe, Le) : _.setAttribute(xe, Le), br(_) ? at(_) : ya(t.removed);
9655
+ Be ? _.setAttributeNS(Be, xe, Le) : _.setAttribute(xe, Le), br(_) ? ct(_) : ya(t.removed);
9654
9656
  } catch (eo) {
9655
- ct(xe, _);
9657
+ lt(xe, _);
9656
9658
  }
9657
9659
  }
9658
- vt(te.afterSanitizeAttributes, _, null);
9660
+ yt(te.afterSanitizeAttributes, _, null);
9659
9661
  }, qt = function D(_) {
9660
9662
  let A = null;
9661
9663
  const I = mr(_);
9662
- for (vt(te.beforeSanitizeShadowDOM, _, null); A = I.nextNode(); )
9663
- vt(te.uponSanitizeShadowNode, A, null), Xr(A), kr(A), A.content instanceof i && D(A.content);
9664
- vt(te.afterSanitizeShadowDOM, _, null);
9664
+ for (yt(te.beforeSanitizeShadowDOM, _, null); A = I.nextNode(); )
9665
+ yt(te.uponSanitizeShadowNode, A, null), Xr(A), kr(A), A.content instanceof i && D(A.content);
9666
+ yt(te.afterSanitizeShadowDOM, _, null);
9665
9667
  };
9666
9668
  return t.sanitize = function(D) {
9667
9669
  let _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = null, I = null, se = null, $e = null;
@@ -9673,10 +9675,10 @@ function Wc() {
9673
9675
  throw Er("toString is not a function");
9674
9676
  if (!t.isSupported)
9675
9677
  return D;
9676
- if (bt || Mn(_), t.removed = [], typeof D == "string" && (bn = !1), bn) {
9678
+ if (kt || Mn(_), t.removed = [], typeof D == "string" && (bn = !1), bn) {
9677
9679
  if (D.nodeName) {
9678
- const yt = pe(D.nodeName);
9679
- if (!ve[yt] || re[yt])
9680
+ const wt = pe(D.nodeName);
9681
+ if (!ve[wt] || re[wt])
9680
9682
  throw Er("root node is forbidden and cannot be sanitized in-place");
9681
9683
  }
9682
9684
  } else if (D instanceof d)
@@ -9684,11 +9686,11 @@ function Wc() {
9684
9686
  else {
9685
9687
  if (!Je && !ue && !Re && // eslint-disable-next-line unicorn/prefer-includes
9686
9688
  D.indexOf("<") === -1)
9687
- return S && it ? S.createHTML(D) : D;
9689
+ return S && at ? S.createHTML(D) : D;
9688
9690
  if (A = Jr(D), !A)
9689
- return Je ? null : it ? P : "";
9691
+ return Je ? null : at ? P : "";
9690
9692
  }
9691
- A && Fe && at(A.firstChild);
9693
+ A && Fe && ct(A.firstChild);
9692
9694
  const xe = mr(bn ? D : A);
9693
9695
  for (; se = xe.nextNode(); )
9694
9696
  Xr(se), kr(se), se.content instanceof i && qt(se.content);
@@ -9704,14 +9706,14 @@ function Wc() {
9704
9706
  }
9705
9707
  let Be = Re ? A.outerHTML : A.innerHTML;
9706
9708
  return Re && ve["!doctype"] && A.ownerDocument && A.ownerDocument.doctype && A.ownerDocument.doctype.name && Xe(Gc, A.ownerDocument.doctype.name) && (Be = "<!DOCTYPE " + A.ownerDocument.doctype.name + `>
9707
- ` + Be), ue && ho([Pe, He, Ct], (yt) => {
9708
- Be = Tr(Be, yt, " ");
9709
- }), S && it ? S.createHTML(Be) : Be;
9709
+ ` + Be), ue && ho([Pe, He, Ct], (wt) => {
9710
+ Be = Tr(Be, wt, " ");
9711
+ }), S && at ? S.createHTML(Be) : Be;
9710
9712
  }, t.setConfig = function() {
9711
9713
  let D = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
9712
- Mn(D), bt = !0;
9714
+ Mn(D), kt = !0;
9713
9715
  }, t.clearConfig = function() {
9714
- tn = null, bt = !1;
9716
+ tn = null, kt = !1;
9715
9717
  }, t.isValidAttribute = function(D, _, A) {
9716
9718
  tn || Mn({});
9717
9719
  const I = pe(D), se = pe(_);
@@ -10378,7 +10380,7 @@ function So() {
10378
10380
  return rt !== null;
10379
10381
  }
10380
10382
  const Ik = "data-ap-sdk", zk = "ap-sdk-fab", Ia = "ap-sdk-fab--dragging", li = "ap-sdk-fab--open", rl = "ap-sdk-fab-pos", Fo = "ap-sdk-fab--left-edge", $k = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/></svg>', Ok = '<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m3 3 7.07 16.97 2.51-7.39 7.39-2.51L3 3z"/><path d="m13 13 6 6"/></svg>', Nk = '<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="12" cy="12" r="8"/></svg>', Dk = '<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>';
10381
- let z = null, Ot = null, sn = null, an = null, lt = null, Zn = null, qn = null, Hn = null, To = null, $r = null, Qn = null, Eo = null, Ao = null, Co = null, ol = 0, sl = 0, il = 0, al = 0, Gn = !1, xt = !1, Or = null, En = null;
10383
+ let z = null, Ot = null, sn = null, an = null, ut = null, Zn = null, qn = null, Hn = null, To = null, $r = null, Qn = null, Eo = null, Ao = null, Co = null, ol = 0, sl = 0, il = 0, al = 0, Gn = !1, St = !1, Or = null, En = null;
10382
10384
  function Mk() {
10383
10385
  Or = (e) => {
10384
10386
  if (!z) {
@@ -10387,7 +10389,7 @@ function Mk() {
10387
10389
  }
10388
10390
  if (!Gn) {
10389
10391
  if (Math.hypot(e.clientX - il, e.clientY - al) < 5) return;
10390
- Gn = !0, xt = !0, z.classList.add(Ia);
10392
+ Gn = !0, St = !0, z.classList.add(Ia);
10391
10393
  }
10392
10394
  Uk(e.clientX - ol, e.clientY - sl);
10393
10395
  }, En = () => {
@@ -10445,50 +10447,50 @@ function cl(e, t, n) {
10445
10447
  if (Eo = e, Ao = t, Co = n, z) return;
10446
10448
  z = document.createElement("div"), z.className = zk, z.setAttribute(Ik, "1"), Zn = document.createElement("div"), Zn.className = "ap-sdk-fab__row";
10447
10449
  const r = document.createElement("span");
10448
- r.className = "ap-sdk-fab__label", r.textContent = "View captures", lt = document.createElement("button"), lt.className = "ap-sdk-fab__list ap-sdk-fab__sub", lt.setAttribute("aria-label", "My captures"), lt.setAttribute("title", "View my captures"), lt.appendChild(go(Dk));
10450
+ r.className = "ap-sdk-fab__label", r.textContent = "View captures", ut = document.createElement("button"), ut.className = "ap-sdk-fab__list ap-sdk-fab__sub", ut.setAttribute("aria-label", "My captures"), ut.setAttribute("title", "View my captures"), ut.appendChild(go(Dk));
10449
10451
  const o = document.createElement("span");
10450
- o.className = "ap-sdk-fab__badge", o.setAttribute("data-ap-badge", ""), o.style.display = "none", lt.appendChild(o), Zn.appendChild(r), Zn.appendChild(lt), qn = document.createElement("div"), qn.className = "ap-sdk-fab__row";
10452
+ o.className = "ap-sdk-fab__badge", o.setAttribute("data-ap-badge", ""), o.style.display = "none", ut.appendChild(o), Zn.appendChild(r), Zn.appendChild(ut), qn = document.createElement("div"), qn.className = "ap-sdk-fab__row";
10451
10453
  const i = document.createElement("span");
10452
10454
  i.className = "ap-sdk-fab__label", i.textContent = "Capture element", sn = document.createElement("button"), sn.className = "ap-sdk-fab__capture ap-sdk-fab__sub", sn.setAttribute("aria-label", "Capture element"), sn.setAttribute("title", "Capture element to Agent Platform"), sn.appendChild(go(Ok)), qn.appendChild(i), qn.appendChild(sn), Hn = document.createElement("div"), Hn.className = "ap-sdk-fab__row";
10453
10455
  const a = document.createElement("span");
10454
10456
  a.className = "ap-sdk-fab__label", a.textContent = "Record interaction", an = document.createElement("button"), an.className = "ap-sdk-fab__record ap-sdk-fab__sub", an.setAttribute("aria-label", "Record interaction"), an.setAttribute("title", "Record a sequence of interactions"), an.appendChild(go(Nk)), Hn.appendChild(a), Hn.appendChild(an), Ot = document.createElement("button"), Ot.className = "ap-sdk-fab__main", Ot.setAttribute("aria-label", "Agent Platform"), Ot.setAttribute("title", "Agent Platform"), Ot.appendChild(go($k)), z.appendChild(Zn), z.appendChild(qn), z.appendChild(Hn), z.appendChild(Ot), Ot.addEventListener("click", (l) => {
10455
- if (xt) {
10456
- xt = !1;
10457
+ if (St) {
10458
+ St = !1;
10457
10459
  return;
10458
10460
  }
10459
10461
  l.preventDefault(), l.stopPropagation(), z != null && z.classList.contains(li) ? Wn() : qk();
10460
10462
  }), sn.addEventListener("click", (l) => {
10461
- if (xt) {
10462
- xt = !1;
10463
+ if (St) {
10464
+ St = !1;
10463
10465
  return;
10464
10466
  }
10465
10467
  l.preventDefault(), l.stopPropagation(), Wn(), !Xn() && !So() && Eo && Eo();
10466
10468
  }), an.addEventListener("click", (l) => {
10467
- if (xt) {
10468
- xt = !1;
10469
+ if (St) {
10470
+ St = !1;
10469
10471
  return;
10470
10472
  }
10471
10473
  l.preventDefault(), l.stopPropagation(), Wn(), !Xn() && !So() && Ao && Ao();
10472
- }), lt.addEventListener("click", (l) => {
10473
- if (xt) {
10474
- xt = !1;
10474
+ }), ut.addEventListener("click", (l) => {
10475
+ if (St) {
10476
+ St = !1;
10475
10477
  return;
10476
10478
  }
10477
10479
  l.preventDefault(), l.stopPropagation(), Wn(), Co && Co();
10478
10480
  }), $r = (l) => {
10479
10481
  if (!z || !(z === l.target || z.contains(l.target))) return;
10480
10482
  const p = z.getBoundingClientRect();
10481
- ol = l.clientX - p.left, sl = l.clientY - p.top, il = l.clientX, al = l.clientY, Gn = !1, xt = !1, z.style.transition = "none", l.stopPropagation(), Mk();
10483
+ ol = l.clientX - p.left, sl = l.clientY - p.top, il = l.clientX, al = l.clientY, Gn = !1, St = !1, z.style.transition = "none", l.stopPropagation(), Mk();
10482
10484
  }, window.addEventListener("pointerdown", $r, { capture: !0 }), ((d = document.body) != null ? d : document.documentElement).appendChild(z), Yt(z), Zk(), To = setInterval(() => {
10483
10485
  Ot && Ot.classList.toggle("ap-sdk-fab__main--active", Xn() || So());
10484
10486
  }, 200);
10485
10487
  }
10486
10488
  function Ln(e) {
10487
- const t = lt == null ? void 0 : lt.querySelector("[data-ap-badge]");
10489
+ const t = ut == null ? void 0 : ut.querySelector("[data-ap-badge]");
10488
10490
  t && (e > 0 ? (t.textContent = String(e), t.style.display = "") : t.style.display = "none");
10489
10491
  }
10490
10492
  function ll() {
10491
- Gn = !1, xt = !1, Po(), Wn(), To && (clearInterval(To), To = null), $r && (window.removeEventListener("pointerdown", $r, { capture: !0 }), $r = null), z && Xt(z), z == null || z.remove(), z = null, Ot = null, sn = null, an = null, lt = null, Zn = null, qn = null, Hn = null, Eo = null, Ao = null, Co = null;
10493
+ Gn = !1, St = !1, Po(), Wn(), To && (clearInterval(To), To = null), $r && (window.removeEventListener("pointerdown", $r, { capture: !0 }), $r = null), z && Xt(z), z == null || z.remove(), z = null, Ot = null, sn = null, an = null, ut = null, Zn = null, qn = null, Hn = null, Eo = null, Ao = null, Co = null;
10492
10494
  }
10493
10495
  function ul(e, t) {
10494
10496
  return L(this, null, function* () {
@@ -10627,10 +10629,10 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10627
10629
  <div class="ap-sdk-pick-entry" data-pick-index="${H}">
10628
10630
  <div class="ap-sdk-pick-entry__header">
10629
10631
  <span class="ap-sdk-pick-entry__number">${H + 1}</span>
10630
- <span class="ap-sdk-pick-entry__element" title="${st((re = W.ctx.elementText) != null ? re : "")}">${st(W.ctx.elementText || "(no text)")}</span>
10632
+ <span class="ap-sdk-pick-entry__element" title="${it((re = W.ctx.elementText) != null ? re : "")}">${it(W.ctx.elementText || "(no text)")}</span>
10631
10633
  <button class="ap-sdk-pick-entry__remove" data-ap-remove="${H}" aria-label="Remove pick ${H + 1}">×</button>
10632
10634
  </div>
10633
- <div class="ap-sdk-pick-entry__instruction">${st(W.instruction)}</div>
10635
+ <div class="ap-sdk-pick-entry__instruction">${it(W.instruction)}</div>
10634
10636
  </div>
10635
10637
  `;
10636
10638
  }).join(""), he.querySelectorAll("[data-ap-remove]").forEach((W) => {
@@ -10639,7 +10641,7 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10639
10641
  g.completedPicks.splice(H, 1), Pt();
10640
10642
  });
10641
10643
  });
10642
- }, gt = () => {
10644
+ }, mt = () => {
10643
10645
  if (!g.currentPickedEl) {
10644
10646
  te.style.display = "none";
10645
10647
  return;
@@ -10648,16 +10650,16 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10648
10650
  }, Rt = () => {
10649
10651
  qe && (qe.disabled = !T.value.trim() || g.submitting || g.awaitingPick);
10650
10652
  }, Kt = (W, H) => {
10651
- g.currentCtx = W, g.currentPickedEl = H, fn(W), Qe == null || Qe.update(H), gt();
10653
+ g.currentCtx = W, g.currentPickedEl = H, fn(W), Qe == null || Qe.update(H), mt();
10652
10654
  };
10653
- gt(), Pe.addEventListener("click", () => {
10655
+ mt(), Pe.addEventListener("click", () => {
10654
10656
  var H;
10655
10657
  const W = (H = g.currentPickedEl) == null ? void 0 : H.parentElement;
10656
10658
  W && Kt(Ba(W), W);
10657
10659
  }), He && l && He.addEventListener("click", () => {
10658
10660
  if (g.awaitingPick) return;
10659
10661
  const W = g.currentCtx, H = g.currentPickedEl;
10660
- g.awaitingPick = !0, gt(), Rt(), fn(null), l(
10662
+ g.awaitingPick = !0, mt(), Rt(), fn(null), l(
10661
10663
  (re, Ne) => {
10662
10664
  g.awaitingPick = !1, Kt(re, Ne), Rt();
10663
10665
  },
@@ -10666,13 +10668,13 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10666
10668
  }
10667
10669
  );
10668
10670
  });
10669
- const mt = () => {
10671
+ const bt = () => {
10670
10672
  Ur(), p == null || p();
10671
10673
  };
10672
- j.addEventListener("click", mt), Q.addEventListener("click", mt);
10674
+ j.addEventListener("click", bt), Q.addEventListener("click", bt);
10673
10675
  const ve = J.querySelector("[data-ap-connect-required]");
10674
10676
  ve && a && ve.addEventListener("click", () => {
10675
- mt(), a();
10677
+ bt(), a();
10676
10678
  }), P.forEach((W) => {
10677
10679
  W.addEventListener("click", () => {
10678
10680
  g.captureType = W.dataset.apType, P.forEach((H) => H.classList.toggle("ap-sdk-active", H === W)), Z.style.display = g.captureType === "automate" ? "" : "none";
@@ -10682,10 +10684,10 @@ function hl(e, t, n, r, o, i, a, d, l, p, h = null) {
10682
10684
  });
10683
10685
  const gn = J.querySelector("[data-ap-reconfigure]");
10684
10686
  a ? gn.addEventListener("click", () => {
10685
- mt(), a();
10687
+ bt(), a();
10686
10688
  }) : gn.style.display = "none", qe && d && (T.addEventListener("input", Rt), qe.addEventListener("click", () => {
10687
10689
  const W = T.value.trim();
10688
- !W || g.awaitingPick || (g.completedPicks.push({ ctx: g.currentCtx, instruction: W }), Pt(), T.value = "", g.awaitingPick = !0, qe.disabled = !0, gt(), fn(null), d((H, re) => {
10690
+ !W || g.awaitingPick || (g.completedPicks.push({ ctx: g.currentCtx, instruction: W }), Pt(), T.value = "", g.awaitingPick = !0, qe.disabled = !0, mt(), fn(null), d((H, re) => {
10689
10691
  g.awaitingPick = !1, Kt(H, re), Rt();
10690
10692
  }));
10691
10693
  })), N.addEventListener("click", () => L(null, null, function* () {
@@ -10721,7 +10723,7 @@ ${tl(g.currentCtx.interactionSteps)}`), ue = (yield sa(Ne, De.id, Fe, We)).id, z
10721
10723
  } else
10722
10724
  ue = (yield oa(Ne, { projectId: De.id, note: re, ctx: g.currentCtx, advancedOpts: We, allowSubmit: g.allowSubmit })).id, ze = "automate", Re = re.slice(0, 120) || g.currentCtx.pageTitle || "Browser automation";
10723
10725
  else {
10724
- const Fe = Fk(le), Je = le[0].instruction.slice(0, 120) || le[0].ctx.pageTitle || "Multi-element capture", Lt = le.map((it) => it.instruction).filter(Boolean).join(`
10726
+ const Fe = Fk(le), Je = le[0].instruction.slice(0, 120) || le[0].ctx.pageTitle || "Multi-element capture", Lt = le.map((at) => at.instruction).filter(Boolean).join(`
10725
10727
 
10726
10728
  `);
10727
10729
  g.captureType === "task" ? (ue = (yield Ps(Ne, {
@@ -10750,11 +10752,11 @@ ${tl(g.currentCtx.interactionSteps)}`), ue = (yield sa(Ne, De.id, Fe, We)).id, z
10750
10752
  createdAt: (/* @__PURE__ */ new Date()).toISOString()
10751
10753
  }), pl(Ne).catch(() => {
10752
10754
  }), ze === "automate") {
10753
- mt(), si(ue, Ne, W, Re, p);
10755
+ bt(), si(ue, Ne, W, Re, p);
10754
10756
  return;
10755
10757
  }
10756
- const bt = ze === "task" ? `${W.replace(/\/+$/, "")}/tasks/${ue}` : `${W.replace(/\/+$/, "")}/planning/${ue}`;
10757
- Bk(S, ze, Re, bt, mt), J.classList.add("ap-sdk-panel--success"), Bt == null || Bt(), Bt = null, Qe == null || Qe.hide(), g.submitting = !1;
10758
+ const kt = ze === "task" ? `${W.replace(/\/+$/, "")}/tasks/${ue}` : `${W.replace(/\/+$/, "")}/planning/${ue}`;
10759
+ Bk(S, ze, Re, kt, bt), J.classList.add("ap-sdk-panel--success"), Bt == null || Bt(), Bt = null, Qe == null || Qe.hide(), g.submitting = !1;
10758
10760
  } catch (De) {
10759
10761
  mo(
10760
10762
  S,
@@ -10778,14 +10780,14 @@ function za(e) {
10778
10780
  ${e.interactionSteps.map((r) => `
10779
10781
  <div class="ap-sdk-panel__context-step">
10780
10782
  <span class="ap-sdk-panel__context-step-icon">${Hk[r.action]}</span>
10781
- <span class="ap-sdk-panel__context-step-text">${st(r.description)}</span>
10783
+ <span class="ap-sdk-panel__context-step-text">${it(r.description)}</span>
10782
10784
  </div>
10783
10785
  `).join("")}
10784
10786
  </div>
10785
10787
  ` : `
10786
10788
  <div class="ap-sdk-panel__context-label">Captured element</div>
10787
- <div class="ap-sdk-panel__context-text" title="${st((n = e.elementText) != null ? n : "")}">${st(e.elementText || "(no text)")}</div>
10788
- ${e.cssSelector ? `<div class="ap-sdk-panel__context-selector" title="${st(e.cssSelector)}">${st(e.cssSelector)}</div>` : ""}
10789
+ <div class="ap-sdk-panel__context-text" title="${it((n = e.elementText) != null ? n : "")}">${it(e.elementText || "(no text)")}</div>
10790
+ ${e.cssSelector ? `<div class="ap-sdk-panel__context-selector" title="${it(e.cssSelector)}">${it(e.cssSelector)}</div>` : ""}
10789
10791
  `;
10790
10792
  }
10791
10793
  function Fk(e) {
@@ -10818,13 +10820,13 @@ function Bk(e, t, n, r, o) {
10818
10820
  <circle class="ap-sdk-success-check__circle" cx="24" cy="24" r="22"/>
10819
10821
  <path class="ap-sdk-success-check__tick" d="M14 24l7 7 13-14"/>
10820
10822
  </svg>
10821
- <p class="ap-sdk-success-headline">${st(a)}</p>
10823
+ <p class="ap-sdk-success-headline">${it(a)}</p>
10822
10824
  <div class="ap-sdk-success-meta">
10823
- <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${t}">${st(i)}</span>
10824
- <span class="ap-sdk-success-title" title="${st(n)}">${st(l)}</span>
10825
+ <span class="ap-sdk-list-item__badge ap-sdk-list-item__badge--${t}">${it(i)}</span>
10826
+ <span class="ap-sdk-success-title" title="${it(n)}">${it(l)}</span>
10825
10827
  </div>
10826
10828
  <div class="ap-sdk-success-actions">
10827
- <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${st(d)}</button>
10829
+ <button class="ap-sdk-panel__btn ap-sdk-panel__btn--primary" data-ap-success-view>${it(d)}</button>
10828
10830
  <button class="ap-sdk-panel__btn ap-sdk-panel__btn--ghost" data-ap-success-close>Close</button>
10829
10831
  </div>
10830
10832
  </div>
@@ -10837,7 +10839,7 @@ function $a(e, t) {
10837
10839
  n.disabled = t;
10838
10840
  });
10839
10841
  }
10840
- function st(e) {
10842
+ function it(e) {
10841
10843
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
10842
10844
  }
10843
10845
  let ae = null;
@@ -11160,21 +11162,21 @@ function Da(e) {
11160
11162
  function Ss(e) {
11161
11163
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
11162
11164
  }
11163
- let pt = null, Bo = !1;
11165
+ let ht = null, Bo = !1;
11164
11166
  function o_() {
11165
- pt == null || pt.disconnect(), Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach((e) => document.body.appendChild(e)), pt && pt.observe(document.body, { childList: !0 }), Bo = !1;
11167
+ ht == null || ht.disconnect(), Array.from(document.body.querySelectorAll(':scope > [data-ap-sdk="1"]')).forEach((e) => document.body.appendChild(e)), ht && ht.observe(document.body, { childList: !0 }), Bo = !1;
11166
11168
  }
11167
11169
  function bl() {
11168
- pt || (pt = new MutationObserver((e) => {
11170
+ ht || (ht = new MutationObserver((e) => {
11169
11171
  !e.some(
11170
11172
  (n) => Array.from(n.addedNodes).some(
11171
11173
  (r) => r instanceof Element && r.getAttribute("data-ap-sdk") !== "1"
11172
11174
  )
11173
11175
  ) || Bo || (Bo = !0, queueMicrotask(o_));
11174
- }), pt.observe(document.body, { childList: !0 }));
11176
+ }), ht.observe(document.body, { childList: !0 }));
11175
11177
  }
11176
11178
  function s_() {
11177
- pt == null || pt.disconnect(), pt = null, Bo = !1;
11179
+ ht == null || ht.disconnect(), ht = null, Bo = !1;
11178
11180
  }
11179
11181
  const i_ = {
11180
11182
  click: "🖱",