@zuplo/cli 6.72.8 → 6.72.10
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/node_modules/@posthog/core/dist/surveys/activation.d.ts +20 -0
- package/node_modules/@posthog/core/dist/surveys/activation.d.ts.map +1 -0
- package/node_modules/@posthog/core/dist/surveys/activation.js +45 -0
- package/node_modules/@posthog/core/dist/surveys/activation.mjs +8 -0
- package/node_modules/@posthog/core/dist/surveys/events.d.ts +1 -4
- package/node_modules/@posthog/core/dist/surveys/events.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/surveys/index.d.ts +2 -0
- package/node_modules/@posthog/core/dist/surveys/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/surveys/index.js +16 -2
- package/node_modules/@posthog/core/dist/surveys/index.mjs +3 -1
- package/node_modules/@posthog/core/dist/surveys/keys.d.ts +14 -0
- package/node_modules/@posthog/core/dist/surveys/keys.d.ts.map +1 -0
- package/node_modules/@posthog/core/dist/surveys/keys.js +45 -0
- package/node_modules/@posthog/core/dist/surveys/keys.mjs +8 -0
- package/node_modules/@posthog/core/dist/types.d.ts +87 -76
- package/node_modules/@posthog/core/dist/types.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/types.js +65 -76
- package/node_modules/@posthog/core/dist/types.mjs +66 -77
- package/node_modules/@posthog/core/package.json +1 -1
- package/node_modules/@posthog/core/src/surveys/activation.spec.ts +61 -0
- package/node_modules/@posthog/core/src/surveys/activation.ts +28 -0
- package/node_modules/@posthog/core/src/surveys/events.ts +1 -5
- package/node_modules/@posthog/core/src/surveys/index.ts +2 -0
- package/node_modules/@posthog/core/src/surveys/keys.spec.ts +29 -0
- package/node_modules/@posthog/core/src/surveys/keys.ts +23 -0
- package/node_modules/@posthog/core/src/types.ts +88 -76
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +14 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +15 -0
- package/node_modules/@zuplo/core/customer.cli.minified.js +1 -1
- package/node_modules/@zuplo/core/index.minified.js +1 -1
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-K77Z5PRN.js +30 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-K77Z5PRN.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/{chunk-HKSZ4V6H.js → chunk-NIKKAYJU.js} +86 -86
- package/node_modules/@zuplo/runtime/out/esm/chunk-NIKKAYJU.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +124 -55
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/avvio/.github/dependabot.yml +42 -2
- package/node_modules/avvio/.github/workflows/ci.yml +1 -1
- package/node_modules/avvio/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/avvio/LICENSE +1 -3
- package/node_modules/avvio/README.md +4 -4
- package/node_modules/avvio/{boot.js → index.js} +8 -2
- package/node_modules/avvio/package.json +8 -8
- package/node_modules/avvio/test/esm.mjs +1 -1
- package/node_modules/avvio/test/gh-issues/fastify-6843.test.js +48 -0
- package/node_modules/avvio/test/on-ready-timeout-await.test.js +1 -1
- package/node_modules/avvio/test/types/index.ts +1 -1
- package/node_modules/avvio/test/types/tsconfig.json +5 -2
- package/node_modules/ws/lib/receiver.js +15 -32
- package/node_modules/ws/lib/websocket-server.js +4 -4
- package/node_modules/ws/lib/websocket.js +4 -4
- package/node_modules/ws/package.json +5 -1
- package/package.json +6 -6
- package/node_modules/@zuplo/runtime/out/esm/chunk-GBIUQ4JJ.js +0 -30
- package/node_modules/@zuplo/runtime/out/esm/chunk-GBIUQ4JJ.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-HKSZ4V6H.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-HKSZ4V6H.js.LEGAL.txt → chunk-NIKKAYJU.js.LEGAL.txt} +0 -0
|
@@ -633,43 +633,49 @@ export type SurveyAppearance = {
|
|
|
633
633
|
widgetColor?: string
|
|
634
634
|
}
|
|
635
635
|
|
|
636
|
-
export
|
|
637
|
-
TopLeft
|
|
638
|
-
TopCenter
|
|
639
|
-
TopRight
|
|
640
|
-
MiddleLeft
|
|
641
|
-
MiddleCenter
|
|
642
|
-
MiddleRight
|
|
643
|
-
Left
|
|
644
|
-
Right
|
|
645
|
-
Center
|
|
646
|
-
}
|
|
636
|
+
export const SurveyPosition = {
|
|
637
|
+
TopLeft: 'top_left',
|
|
638
|
+
TopCenter: 'top_center',
|
|
639
|
+
TopRight: 'top_right',
|
|
640
|
+
MiddleLeft: 'middle_left',
|
|
641
|
+
MiddleCenter: 'middle_center',
|
|
642
|
+
MiddleRight: 'middle_right',
|
|
643
|
+
Left: 'left',
|
|
644
|
+
Right: 'right',
|
|
645
|
+
Center: 'center',
|
|
646
|
+
} as const
|
|
647
|
+
export type SurveyPosition = (typeof SurveyPosition)[keyof typeof SurveyPosition]
|
|
647
648
|
|
|
648
|
-
export
|
|
649
|
-
Button
|
|
650
|
-
Tab
|
|
651
|
-
Selector
|
|
652
|
-
}
|
|
649
|
+
export const SurveyWidgetType = {
|
|
650
|
+
Button: 'button',
|
|
651
|
+
Tab: 'tab',
|
|
652
|
+
Selector: 'selector',
|
|
653
|
+
} as const
|
|
654
|
+
export type SurveyWidgetType = (typeof SurveyWidgetType)[keyof typeof SurveyWidgetType]
|
|
653
655
|
|
|
654
|
-
export
|
|
655
|
-
Popover
|
|
656
|
-
API
|
|
657
|
-
Widget
|
|
658
|
-
ExternalSurvey
|
|
659
|
-
}
|
|
656
|
+
export const SurveyType = {
|
|
657
|
+
Popover: 'popover',
|
|
658
|
+
API: 'api',
|
|
659
|
+
Widget: 'widget',
|
|
660
|
+
ExternalSurvey: 'external_survey',
|
|
661
|
+
} as const
|
|
662
|
+
export type SurveyType = (typeof SurveyType)[keyof typeof SurveyType]
|
|
660
663
|
|
|
661
664
|
export type SurveyQuestion = BasicSurveyQuestion | LinkSurveyQuestion | RatingSurveyQuestion | MultipleSurveyQuestion
|
|
662
665
|
|
|
663
|
-
export
|
|
664
|
-
Html
|
|
665
|
-
Text
|
|
666
|
-
}
|
|
666
|
+
export const SurveyQuestionDescriptionContentType = {
|
|
667
|
+
Html: 'html',
|
|
668
|
+
Text: 'text',
|
|
669
|
+
} as const
|
|
670
|
+
export type SurveyQuestionDescriptionContentType =
|
|
671
|
+
(typeof SurveyQuestionDescriptionContentType)[keyof typeof SurveyQuestionDescriptionContentType]
|
|
667
672
|
|
|
668
673
|
// Survey validation types
|
|
669
|
-
export
|
|
670
|
-
MinLength
|
|
671
|
-
MaxLength
|
|
672
|
-
}
|
|
674
|
+
export const SurveyValidationType = {
|
|
675
|
+
MinLength: 'min_length',
|
|
676
|
+
MaxLength: 'max_length',
|
|
677
|
+
} as const
|
|
678
|
+
export type SurveyValidationType = (typeof SurveyValidationType)[keyof typeof SurveyValidationType]
|
|
673
679
|
|
|
674
680
|
export interface SurveyValidationRule {
|
|
675
681
|
type: SurveyValidationType
|
|
@@ -710,16 +716,16 @@ type SurveyQuestionBase = {
|
|
|
710
716
|
}
|
|
711
717
|
|
|
712
718
|
export type BasicSurveyQuestion = SurveyQuestionBase & {
|
|
713
|
-
type: SurveyQuestionType.Open
|
|
719
|
+
type: typeof SurveyQuestionType.Open
|
|
714
720
|
}
|
|
715
721
|
|
|
716
722
|
export type LinkSurveyQuestion = SurveyQuestionBase & {
|
|
717
|
-
type: SurveyQuestionType.Link
|
|
723
|
+
type: typeof SurveyQuestionType.Link
|
|
718
724
|
link?: string | null
|
|
719
725
|
}
|
|
720
726
|
|
|
721
727
|
export type RatingSurveyQuestion = SurveyQuestionBase & {
|
|
722
|
-
type: SurveyQuestionType.Rating
|
|
728
|
+
type: typeof SurveyQuestionType.Rating
|
|
723
729
|
display: SurveyRatingDisplay
|
|
724
730
|
scale: 2 | 3 | 5 | 7 | 10
|
|
725
731
|
lowerBoundLabel: string
|
|
@@ -727,49 +733,52 @@ export type RatingSurveyQuestion = SurveyQuestionBase & {
|
|
|
727
733
|
skipSubmitButton?: boolean
|
|
728
734
|
}
|
|
729
735
|
|
|
730
|
-
export
|
|
731
|
-
Number
|
|
732
|
-
Emoji
|
|
733
|
-
}
|
|
736
|
+
export const SurveyRatingDisplay = {
|
|
737
|
+
Number: 'number',
|
|
738
|
+
Emoji: 'emoji',
|
|
739
|
+
} as const
|
|
740
|
+
export type SurveyRatingDisplay = (typeof SurveyRatingDisplay)[keyof typeof SurveyRatingDisplay]
|
|
734
741
|
|
|
735
742
|
export type MultipleSurveyQuestion = SurveyQuestionBase & {
|
|
736
|
-
type: SurveyQuestionType.SingleChoice | SurveyQuestionType.MultipleChoice
|
|
743
|
+
type: typeof SurveyQuestionType.SingleChoice | typeof SurveyQuestionType.MultipleChoice
|
|
737
744
|
choices: string[]
|
|
738
745
|
hasOpenChoice?: boolean
|
|
739
746
|
shuffleOptions?: boolean
|
|
740
747
|
skipSubmitButton?: boolean
|
|
741
748
|
}
|
|
742
749
|
|
|
743
|
-
export
|
|
744
|
-
Open
|
|
745
|
-
MultipleChoice
|
|
746
|
-
SingleChoice
|
|
747
|
-
Rating
|
|
748
|
-
Link
|
|
749
|
-
}
|
|
750
|
+
export const SurveyQuestionType = {
|
|
751
|
+
Open: 'open',
|
|
752
|
+
MultipleChoice: 'multiple_choice',
|
|
753
|
+
SingleChoice: 'single_choice',
|
|
754
|
+
Rating: 'rating',
|
|
755
|
+
Link: 'link',
|
|
756
|
+
} as const
|
|
757
|
+
export type SurveyQuestionType = (typeof SurveyQuestionType)[keyof typeof SurveyQuestionType]
|
|
750
758
|
|
|
751
|
-
export
|
|
752
|
-
NextQuestion
|
|
753
|
-
End
|
|
754
|
-
ResponseBased
|
|
755
|
-
SpecificQuestion
|
|
756
|
-
}
|
|
759
|
+
export const SurveyQuestionBranchingType = {
|
|
760
|
+
NextQuestion: 'next_question',
|
|
761
|
+
End: 'end',
|
|
762
|
+
ResponseBased: 'response_based',
|
|
763
|
+
SpecificQuestion: 'specific_question',
|
|
764
|
+
} as const
|
|
765
|
+
export type SurveyQuestionBranchingType = (typeof SurveyQuestionBranchingType)[keyof typeof SurveyQuestionBranchingType]
|
|
757
766
|
|
|
758
767
|
export type NextQuestionBranching = {
|
|
759
|
-
type: SurveyQuestionBranchingType.NextQuestion
|
|
768
|
+
type: typeof SurveyQuestionBranchingType.NextQuestion
|
|
760
769
|
}
|
|
761
770
|
|
|
762
771
|
export type EndBranching = {
|
|
763
|
-
type: SurveyQuestionBranchingType.End
|
|
772
|
+
type: typeof SurveyQuestionBranchingType.End
|
|
764
773
|
}
|
|
765
774
|
|
|
766
775
|
export type ResponseBasedBranching = {
|
|
767
|
-
type: SurveyQuestionBranchingType.ResponseBased
|
|
776
|
+
type: typeof SurveyQuestionBranchingType.ResponseBased
|
|
768
777
|
responseValues: Record<string, any>
|
|
769
778
|
}
|
|
770
779
|
|
|
771
780
|
export type SpecificQuestionBranching = {
|
|
772
|
-
type: SurveyQuestionBranchingType.SpecificQuestion
|
|
781
|
+
type: typeof SurveyQuestionBranchingType.SpecificQuestion
|
|
773
782
|
index: number
|
|
774
783
|
}
|
|
775
784
|
|
|
@@ -783,20 +792,22 @@ export type SurveyResponses = Record<string, SurveyResponseValue>
|
|
|
783
792
|
|
|
784
793
|
export type SurveyCallback = (surveys: Survey[]) => void
|
|
785
794
|
|
|
786
|
-
export
|
|
787
|
-
Regex
|
|
788
|
-
NotRegex
|
|
789
|
-
Exact
|
|
790
|
-
IsNot
|
|
791
|
-
Icontains
|
|
792
|
-
NotIcontains
|
|
793
|
-
}
|
|
795
|
+
export const SurveyMatchType = {
|
|
796
|
+
Regex: 'regex',
|
|
797
|
+
NotRegex: 'not_regex',
|
|
798
|
+
Exact: 'exact',
|
|
799
|
+
IsNot: 'is_not',
|
|
800
|
+
Icontains: 'icontains',
|
|
801
|
+
NotIcontains: 'not_icontains',
|
|
802
|
+
} as const
|
|
803
|
+
export type SurveyMatchType = (typeof SurveyMatchType)[keyof typeof SurveyMatchType]
|
|
794
804
|
|
|
795
|
-
export
|
|
796
|
-
Once
|
|
797
|
-
Recurring
|
|
798
|
-
Always
|
|
799
|
-
}
|
|
805
|
+
export const SurveySchedule = {
|
|
806
|
+
Once: 'once',
|
|
807
|
+
Recurring: 'recurring',
|
|
808
|
+
Always: 'always',
|
|
809
|
+
} as const
|
|
810
|
+
export type SurveySchedule = (typeof SurveySchedule)[keyof typeof SurveySchedule]
|
|
800
811
|
|
|
801
812
|
export type SurveyElement = {
|
|
802
813
|
text?: string
|
|
@@ -853,9 +864,9 @@ export type Survey = {
|
|
|
853
864
|
}
|
|
854
865
|
start_date?: string
|
|
855
866
|
end_date?: string
|
|
856
|
-
current_iteration?: number
|
|
857
|
-
current_iteration_start_date?: string
|
|
858
|
-
schedule?: SurveySchedule
|
|
867
|
+
current_iteration?: number | null
|
|
868
|
+
current_iteration_start_date?: string | null
|
|
869
|
+
schedule?: SurveySchedule | null
|
|
859
870
|
}
|
|
860
871
|
|
|
861
872
|
export type SurveyActionType = {
|
|
@@ -865,11 +876,12 @@ export type SurveyActionType = {
|
|
|
865
876
|
}
|
|
866
877
|
|
|
867
878
|
/** Sync with plugin-server/src/types.ts */
|
|
868
|
-
export
|
|
869
|
-
Contains
|
|
870
|
-
Exact
|
|
871
|
-
Regex
|
|
872
|
-
}
|
|
879
|
+
export const ActionStepStringMatching = {
|
|
880
|
+
Contains: 'contains',
|
|
881
|
+
Exact: 'exact',
|
|
882
|
+
Regex: 'regex',
|
|
883
|
+
} as const
|
|
884
|
+
export type ActionStepStringMatching = (typeof ActionStepStringMatching)[keyof typeof ActionStepStringMatching]
|
|
873
885
|
|
|
874
886
|
export type ActionStepType = {
|
|
875
887
|
event?: string
|
|
@@ -498,6 +498,20 @@ export interface SessionRecordingOptions {
|
|
|
498
498
|
* @default false
|
|
499
499
|
*/
|
|
500
500
|
recordCrossOriginIframes?: boolean;
|
|
501
|
+
/**
|
|
502
|
+
* ADVANCED: limit which DOM attributes are observed for mutations, by passing
|
|
503
|
+
* the list to the native `MutationObserver` `attributeFilter`. Mutations to
|
|
504
|
+
* unlisted attributes never reach the recorder at all, so they cost no
|
|
505
|
+
* recording CPU - useful to exclude high-frequency inline `style` mutations
|
|
506
|
+
* from JS-driven animations on animation-heavy pages.
|
|
507
|
+
*
|
|
508
|
+
* Attributes left off the list are invisible to replay, so only set this when
|
|
509
|
+
* that loss of fidelity is acceptable. When unset (the default) or set to an
|
|
510
|
+
* empty array, all attributes are observed.
|
|
511
|
+
*
|
|
512
|
+
* Normally only altered alongside posthog support guidance.
|
|
513
|
+
*/
|
|
514
|
+
attributeFilter?: string[];
|
|
501
515
|
/**
|
|
502
516
|
* Derived from `rrweb.record` options
|
|
503
517
|
* @see https://github.com/rrweb-io/rrweb/blob/master/guide.md
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog-config.d.ts","sourceRoot":"","sources":["../src/posthog-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,E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,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAElC;;OAEG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAA;IAE3C;;;;;OAKG;IACH,6CAA6C,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAEhE;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAA;IAIzC;;;SAGK;IACL,0BAA0B,CAAC,EAAE,OAAO,CAAA;IAEpC,oFAAoF;IACpF,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,oFAAoF;IACpF,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAE/B;;;OAGG;IACH,EAAE,EAAE,OAAO,CAAA;CACd"}
|
|
@@ -568,6 +568,21 @@ export interface SessionRecordingOptions {
|
|
|
568
568
|
*/
|
|
569
569
|
recordCrossOriginIframes?: boolean
|
|
570
570
|
|
|
571
|
+
/**
|
|
572
|
+
* ADVANCED: limit which DOM attributes are observed for mutations, by passing
|
|
573
|
+
* the list to the native `MutationObserver` `attributeFilter`. Mutations to
|
|
574
|
+
* unlisted attributes never reach the recorder at all, so they cost no
|
|
575
|
+
* recording CPU - useful to exclude high-frequency inline `style` mutations
|
|
576
|
+
* from JS-driven animations on animation-heavy pages.
|
|
577
|
+
*
|
|
578
|
+
* Attributes left off the list are invisible to replay, so only set this when
|
|
579
|
+
* that loss of fidelity is acceptable. When unset (the default) or set to an
|
|
580
|
+
* empty array, all attributes are observed.
|
|
581
|
+
*
|
|
582
|
+
* Normally only altered alongside posthog support guidance.
|
|
583
|
+
*/
|
|
584
|
+
attributeFilter?: string[]
|
|
585
|
+
|
|
571
586
|
/**
|
|
572
587
|
* Derived from `rrweb.record` options
|
|
573
588
|
* @see https://github.com/rrweb-io/rrweb/blob/master/guide.md
|
|
@@ -572,7 +572,7 @@ globstar while`,s,de,o,ae,He),this.matchOne(s.slice(de),o.slice(ae),f))return th
|
|
|
572
572
|
`),stderr:E.join(`
|
|
573
573
|
`),exitCode:P},"Tar process logs")}}t(GXt,"tarFolder");async function YXt({tarFilePath:s,outputDir:o,logger:f}){let d=[],y=[],E;try{await new Promise((P,F)=>{let J=ait("sh",["-c",`tar -xvf ${s} -C ${o};`]);J.stdout.on("data",G=>{let Te=G.toString().trim();Te.length>0&&d.push(Te.trim())}),J.stderr.on("data",G=>{let Te=G.toString().trim();Te.length>0&&y.push(Te.trim())}),J.on("close",G=>{E=G,G===0?P():F(new Error(`tar process exited with code ${G}`))}),J.on("error",G=>{F(G)})})}catch(P){throw new Error("Failed to untar file",{cause:P})}finally{f.info({stdout:d.join(`
|
|
574
574
|
`),stderr:y.join(`
|
|
575
|
-
`),exitCode:E},"Untar process logs")}}t(YXt,"untarFile");async function KXt(s){if(await QPe(s))return await YN.rm(s,{recursive:!0})}t(KXt,"deleteFolder");var eu=eAe;var _lt=Hp(Ast(),1);var Nst=["ai-gateway-models-inbound","ai-gateway-semantic-cache-inbound","ai-gateway-semantic-cache-inbound-v2","ai-gateway-semantic-cache-outbound","akamai-ai-firewall","akamai-ai-firewall-inbound-v2","akamai-firewall-for-ai-inbound","akamai-firewall-for-ai-outbound","comet-opik-tracing-inbound-v2","galileo-tracing-inbound-v2","prompt-injection-outbound","semantic-cache-inbound"];var WV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,E){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=E}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},xer=/[$_\p{ID_Start}]/u,Eer=/[$_\u200C\u200D\p{ID_Continue}]/u,FAe=".*";function Cer(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t(Cer,"Re");function Fst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],E=t(function(P){if(!o)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<s.length;){let J=s.substr(F,1);if(F===d+1&&xer.test(J)||F!==d+1&&Eer.test(J)){P+=s[F++];continue}break}if(!P){E(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",J=d+1,G=!1;if(s[J]==="?"){E(`Pattern cannot start with "?" at ${J}`);continue}for(;J<s.length;){if(!Cer(s[J],!1)){E(`Invalid character '${s[J]}' at ${J}.`),G=!0;break}if(s[J]==="\\"){F+=s[J++]+s[J++];continue}if(s[J]===")"){if(P--,P===0){J++;break}}else if(s[J]==="("&&(P++,s[J+1]!=="?")){E(`Capturing groups are not allowed at ${J}`),G=!0;break}F+=s[J++]}if(G)continue;if(P){E(`Unbalanced pattern at ${d}`);continue}if(!F){E(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=J;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Fst,"v");function Lst(s,o={}){let f=Fst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${fT(o.delimiter)}]+?`,y=[],E=0,P=0,F="",J=new Set,G=t(wn=>{if(P<f.length&&f[P].type===wn)return f[P++].value},"a"),Te=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:wr}=f[P];throw new TypeError(`Unexpected ${Jn} at ${wr}, expected ${wn}`)},"d"),ae=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),He=t(wn=>wn,"Se"),Ue=o.encodePart||He,je="",Yt=t(wn=>{je+=wn},"U"),zt=t(()=>{je.length&&(y.push(new WV(3,"","",Ue(je),"",3)),je="")},"$"),Sr=t((wn,sn,Jn,wr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Yt(wn);return}if(zt(),!sn&&!Jn){if(!wn)return;y.push(new WV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=FAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===FAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=E++),J.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);J.add(Ci),y.push(new WV(fc,Ci,Ue(wn),bi,Ue(wr),xs))},"V");for(;P<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Yt(yr),yr=""),zt();let xs=Te();Sr(yr,sn,Jn,"",xs);continue}let wr=wn??G("ESCAPED_CHAR");if(wr){Yt(wr);continue}if(G("OPEN")){let yr=ae(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=ae();de("CLOSE");let Ci=Te();Sr(yr,xs,bi,fc,Ci);continue}zt(),de("END")}return y}t(Lst,"D");function fT(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(fT,"S");function Ist(s){return s&&s.ignoreCase?"ui":"u"}t(Ist,"X");function ker(s,o,f){return Rst(Lst(s,f),o,f)}t(ker,"Z");function X9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(X9,"k");function Rst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=fT(F.value):d+=`(?:${fT(F.value)})${X9(F.modifier)}`;continue}o&&o.push(F.name);let J=`[^${fT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=J:F.type===0&&(G=FAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${X9(F.modifier)}`:d+=`((?:${G})${X9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${fT(F.prefix)}(${G})${fT(F.suffix)})`,d+=X9(F.modifier);continue}d+=`(?:${fT(F.prefix)}`,d+=`((?:${G})(?:`,d+=fT(F.suffix),d+=fT(F.prefix),d+=`(?:${G}))*)${fT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${fT(f.endsWith)}]|$`,E=`[${fT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${E}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,Ist(f));f.strict||(d+=`(?:${E}(?=${y}))?`);let P=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${E}|${y})`),new RegExp(d,Ist(f))}t(Rst,"F");var QN={delimiter:"",prefixes:"",sensitive:!0,strict:!0},wer={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Der={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Per(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(Per,"J");function Mst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Mst,"Q");function Aer(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(Aer,"Ee");function jst(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(jst,"W");var Bst=["ftp","file","http","https","ws","wss"];function Ust(s){if(!s)return!0;for(let o of Bst)if(s.test(o))return!0;return!1}t(Ust,"N");function Ner(s,o){if(s=Mst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(Ner,"te");function Ier(s,o){if(s=Mst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(Ier,"re");function Oer(s,o){return o||s===""?s:jst(s)?Jst(s):$st(s)}t(Oer,"ne");function Fer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Fer,"se");function Ler(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Ler,"ie");function Rer(s,o,f){if(f||s==="")return s;if(o&&!Bst.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(Rer,"ae");function Mer(s,o,f){return zst(o)===s&&(s=""),f||s===""?s:Wst(s)}t(Mer,"oe");function jer(s,o){return s=Aer(s,":"),o||s===""?s:LAe(s)}t(jer,"ce");function zst(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(zst,"_");function LAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(LAe,"y");function Ber(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(Ber,"le");function Uer(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(Uer,"fe");function $st(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t($st,"z");function Jst(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(Jst,"j");function Wst(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(Wst,"K");function zer(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(zer,"he");function $er(s){return s===""?s:new URL(`data:${s}`).pathname}t($er,"ue");function Jer(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(Jer,"de");function Wer(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(Wer,"pe");var qer=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Fst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,QN),s.encodePart=LAe;let o=ker(this.#w(),void 0,s);this.#p=Ust(o)}},OAe=["protocol","username","password","hostname","port","pathname","search","hash"],ZN="*";function Ost(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(Ost,"ge");function WP(s,o){return o?JV(s):s}t(WP,"b");function $V(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=WP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=WP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=WP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=WP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=WP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=WP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=WP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=WP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=jer(o.protocol,f)),typeof o.username=="string"&&(s.username=Ler(o.username,f)),typeof o.password=="string"&&(s.password=Fer(o.password,f)),typeof o.hostname=="string"&&(s.hostname=Oer(o.hostname,f)),typeof o.port=="string"&&(s.port=Mer(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!Per(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=WP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=Rer(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=Ier(o.search,f)),typeof o.hash=="string"&&(s.hash=Ner(o.hash,f)),s}t($V,"w");function JV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(JV,"C");function Ver(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(Ver,"Oe");function Her(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${Ver(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,E="";for(let P=0;P<s.length;++P){let F=s[P];if(F.type===3){if(F.modifier===3){E+=JV(F.value);continue}E+=`{${JV(F.value)}}${X9(F.modifier)}`;continue}let J=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),Te=P>0?s[P-1]:null,de=P<s.length-1?s[P+1]:null;if(!G&&J&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let ae=de.value.length>0?de.value[0]:"";G=y.test(ae)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&Te&&Te.type===3){let ae=Te.value[Te.value.length-1];G=o.prefixes.includes(ae)}G&&(E+="{"),E+=JV(F.prefix),J&&(E+=`:${F.name}`),F.type===2?E+=`(${F.value})`:F.type===1?J||(E+=`(${d})`):F.type===0&&(!J&&(!Te||Te.type===3||Te.modifier!==3||G||F.prefix!=="")?E+="*":E+=`(${f})`),F.type===1&&J&&F.suffix.length&&y.test(F.suffix[0])&&(E+="\\"),E+=JV(F.suffix),G&&(E+="}"),F.modifier!==3&&(E+=X9(F.modifier))}return E}t(Her,"ke");var qst=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new qer(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},E={pathname:ZN,protocol:ZN,username:ZN,password:ZN,hostname:ZN,port:ZN,search:ZN,hash:ZN};this.#e=$V(E,s,!0),zst(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of OAe){if(!(P in this.#e))continue;let F={},J=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,QN),F.encodePart=LAe;break;case"username":Object.assign(F,QN),F.encodePart=Ber;break;case"password":Object.assign(F,QN),F.encodePart=Uer;break;case"hostname":Object.assign(F,wer),jst(J)?F.encodePart=Jst:F.encodePart=$st;break;case"port":Object.assign(F,QN),F.encodePart=Wst;break;case"pathname":Ust(this.#n.protocol)?(Object.assign(F,Der,y),F.encodePart=zer):(Object.assign(F,QN,y),F.encodePart=$er);break;case"search":Object.assign(F,QN,y),F.encodePart=Jer;break;case"hash":Object.assign(F,QN,y),F.encodePart=Wer;break}try{this.#s[P]=Lst(J,F),this.#n[P]=Rst(this.#s[P],this.#t[P],F),this.#r[P]=Her(this.#s[P],F),this.#m=this.#m||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=$V(f,s,!1):f=$V(f,Ost(s,o),!1)}catch{return!1}let d;for(d of OAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=$V(f,s,!1):f=$V(f,Ost(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of OAe){let E=this.#n[y].exec(f[y]);if(!E)return null;let P={};for(let[F,J]of this.#t[y].entries())if(typeof J=="string"||typeof J=="number"){let G=E[F+1];P[J]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(s,o,f){let d=t((F,J)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<J[G])return-1;if(F[G]!==J[G])return 1}return 0},"o"),y=new WV(3,"","","","",3),E=new WV(0,"","","","",3),P=t((F,J)=>{let G=0;for(;G<Math.min(F.length,J.length);++G){let Te=d(F[G],J[G]);if(Te)return Te}return F.length===J.length?0:d(F[G]??y,J[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?P(o.#s[s],[E]):!o.#r[s]&&f.#r[s]?P([E],f.#s[s]):P(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=qst);import{AssertionError as Ger}from"node:assert";function qP(s,o){if(s===!1)throw new Ger({message:o})}t(qP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function Z9(s){return s.type===Wo.Object}t(Z9,"isAstObject");function VP(s){return s.type===Wo.Property}t(VP,"isAstProperty");function RAe(s){return s.type===Wo.Array}t(RAe,"isAstArray");function bO(s){return s.type===Wo.Literal}t(bO,"isAstLiteral");function eI(s){if(s===void 0)throw new Error("Node is undefined");if(!Z9(s))throw new Error("Node is not object")}t(eI,"assertAstObject");import{findNodeAtLocation as Yer,getNodeValue as Ker,printParseErrorCode as Xer,visit as Zer}from"jsonc-parser";var Qer={DEFAULT:{allowTrailingComma:!1}};function qV(s,o=[],f=Qer.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(J){d.type==="property"&&(d.length=J-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function E(J){return d.children?.push(J),J}t(E,"onValue"),Zer(s,{onObjectBegin:t((J,G,Te)=>{d=E({type:"object",offset:J,length:-1,line:G+1,column:Te+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((J,G,Te,de,ae)=>{d=E({type:"property",offset:G,length:-1,line:de+1,column:ae+1,parent:d,children:[]}),d.children?.push({type:"string",value:J,offset:G,length:Te,line:de,column:ae,parent:d})},"onObjectProperty"),onObjectEnd:t((J,G)=>{y(J+G),d.length=J+G-d.offset,d=d.parent,y(J+G)},"onObjectEnd"),onArrayBegin:t((J,G,Te,de)=>{d=E({type:"array",offset:J,length:-1,line:Te+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((J,G)=>{d.length=J+G-d.offset,d=d.parent,y(J+G)},"onArrayEnd"),onLiteralValue:t((J,G,Te,de,ae)=>{E({type:etr(J),offset:G,length:Te,line:de+1,column:ae+1,parent:d,value:J}),y(G+Te)},"onLiteralValue"),onSeparator:t((J,G)=>{d.type==="property"&&(J===":"?d.colonOffset=G:J===","&&y(G))},"onSeparator"),onError:t((J,G,Te,de,ae)=>{o.push({error:J,offset:G,length:Te,line:de+1,column:ae+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(qV,"parse");function etr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(etr,"getNodeType");function MAe(s,o){return Yer(s,o)}t(MAe,"findNodeAtLocation");function VV(s){return Ker(s)}t(VV,"getNodeValue");function Vst(s){return Xer(s)}t(Vst,"printParseErrorCode");var HV=class{static{t(this,"AstAdapter")}parse(o){let d=qV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){qP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var ttr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,GV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,E)=>{this.generateSource(o,d),y<E.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=ttr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import rtr from"node:fs/promises";import{parse as ntr}from"@swc/core";var Hst=t(async s=>{let o=new Set;try{let f=await rtr.readFile(s,"utf-8");(await ntr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var Gst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var jAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var Yst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var BAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var UAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var tlt=Hp(Kce(),1),rlt=Hp(elt(),1);var Qce=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new tlt.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,rlt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let E={details:{}},P=y.instancePath.split("/");if(P.length>2){let J=P[1],G=P[2]?parseInt(P[2],10):0,Te=P[3],de=Number.isNaN(G)?void 0:f[J][G][Te];E={details:{property:J,index:G,field:Te,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let J=y.instancePath.split("/"),G=J[J.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,E);d.push(F)}),d}};var uI=Qce.instance;uI.addSchema(BAe,"route-configuration.schema.json");uI.addSchema(Yst,"policy-configuration.schema.json");uI.addSchema(jAe,"policies.schema.json");uI.addSchema(UAe,"open-api-route-configuration.schema.json");uI.addSchema(Gst,"fragments.schema.json");var ZAr=uI.compile(BAe),nlt=uI.compile(UAe),tIe=uI.compile(jAe);var ele=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=tIe(o),this.results}};var tle=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=nlt(o),this.results}};import pcr from"node:path";var rIe=/\$import\((.*)\)/,kH=/\$env\((.*?)\)/g;var Bk=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},_cr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),XP=t((s,o)=>{if(!s)return!1;let f=_cr(s);return o.split("/").every((E,P)=>{let F=f[P];return F?E==="*"||VP(F)&&F.name.value===E?!0:E==="{}"?F.type===Wo.Object:E==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var rle=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),Z9(o)?o.children.forEach(f=>{this.visitor(f)}):RAe(o)?o.children.forEach(f=>{this.visitor(f)}):VP(o)&&this.visitor(o.value)}},ilt=t(s=>{let o=new RegExp(kH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(kH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),slt=t((s,o,f)=>d=>{if(bO(d)&&typeof d.value=="string"&&d.parent&&RAe(d.parent)){if(!s.some(P=>XP(d.parent,P))){kH.test(d.value)&&o.push(new Bk("An $env() statement is not expected at this location.",f,d.location,d.value));return}let E=ilt(d.value);if(E){let P=d.parent,F=P.children.indexOf(d);if(F!==-1)if(E.type==="raw"){let J={type:Wo.Raw,parent:P,value:E.value};P.children[F]=J}else P.children[F]=DS.createTemplateString(E.value,d)}return}if(!VP(d)||!bO(d.value)||typeof d.value.value!="string")return;if(!s.some(E=>XP(d,E))){kH.test(d.value.value)&&o.push(new Bk("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=ilt(d.value.value);if(y)if(y.type==="raw"){let E={type:Wo.Raw,parent:null,value:y.value};d.value=E}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var wH="config/routes.json",dcr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],mcr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],alt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],hcr="handler/{}/options/{}/rewritePattern",gcr="handler/{}/options/{}/baseUrl",nle=class extends rle{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!VP(o)||!bO(o.value)||typeof o.value.value!="string")&&XP(o,hcr)){if(!o.parent||!Z9(o.parent)){this.errors.push(new Bk("Invalid node, expected object",wH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:olt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!VP(o)||!bO(o.value)||typeof o.value.value!="string")&&XP(o,gcr)){if(!o.parent||!Z9(o.parent)){this.errors.push(new Bk("Invalid node, expected object",wH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:olt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!VP(o)||!bO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!mcr.some(F=>XP(o,F))&&!alt.some(F=>XP(o,F))){if(rIe.test(f)){if(o.name.value==="$ref")return;this.errors.push(new Bk("An $import() statement is not expected at this location.",wH,o.location,f))}return}let d=rIe.exec(f);if(alt.some(F=>XP(o,F))&&!d)return;if(!d){this.errors.push(new Bk("Invalid $import() statement",wH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=pcr.posix.join("..",y));let E=this.getImportName(y),P={type:Wo.Identifier,parent:o.parent,value:E};o.value=P}replaceEnvStatements=slt(dcr,this.errors,wH)};function olt(s){return`(request, context) => {
|
|
575
|
+
`),exitCode:E},"Untar process logs")}}t(YXt,"untarFile");async function KXt(s){if(await QPe(s))return await YN.rm(s,{recursive:!0})}t(KXt,"deleteFolder");var eu=eAe;var _lt=Hp(Ast(),1);var Nst=["ai-gateway-model-routing-v2-inbound","ai-gateway-semantic-cache-inbound","ai-gateway-semantic-cache-outbound","ai-gateway-semantic-cache-v2-inbound","akamai-ai-firewall","akamai-ai-firewall-v2-inbound","akamai-firewall-for-ai-inbound","akamai-firewall-for-ai-outbound","comet-opik-tracing-v2-inbound","galileo-tracing-v2-inbound","prompt-injection-outbound","semantic-cache-inbound"];var WV=class{static{t(this,"R")}type=3;name="";prefix="";value="";suffix="";modifier=3;constructor(s,o,f,d,y,E){this.type=s,this.name=o,this.prefix=f,this.value=d,this.suffix=y,this.modifier=E}hasCustomName(){return this.name!==""&&typeof this.name!="number"}},xer=/[$_\p{ID_Start}]/u,Eer=/[$_\u200C\u200D\p{ID_Continue}]/u,FAe=".*";function Cer(s,o){return(o?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(s)}t(Cer,"Re");function Fst(s,o=!1){let f=[],d=0;for(;d<s.length;){let y=s[d],E=t(function(P){if(!o)throw new TypeError(P);f.push({type:"INVALID_CHAR",index:d,value:s[d++]})},"c");if(y==="*"){f.push({type:"ASTERISK",index:d,value:s[d++]});continue}if(y==="+"||y==="?"){f.push({type:"OTHER_MODIFIER",index:d,value:s[d++]});continue}if(y==="\\"){f.push({type:"ESCAPED_CHAR",index:d++,value:s[d++]});continue}if(y==="{"){f.push({type:"OPEN",index:d,value:s[d++]});continue}if(y==="}"){f.push({type:"CLOSE",index:d,value:s[d++]});continue}if(y===":"){let P="",F=d+1;for(;F<s.length;){let J=s.substr(F,1);if(F===d+1&&xer.test(J)||F!==d+1&&Eer.test(J)){P+=s[F++];continue}break}if(!P){E(`Missing parameter name at ${d}`);continue}f.push({type:"NAME",index:d,value:P}),d=F;continue}if(y==="("){let P=1,F="",J=d+1,G=!1;if(s[J]==="?"){E(`Pattern cannot start with "?" at ${J}`);continue}for(;J<s.length;){if(!Cer(s[J],!1)){E(`Invalid character '${s[J]}' at ${J}.`),G=!0;break}if(s[J]==="\\"){F+=s[J++]+s[J++];continue}if(s[J]===")"){if(P--,P===0){J++;break}}else if(s[J]==="("&&(P++,s[J+1]!=="?")){E(`Capturing groups are not allowed at ${J}`),G=!0;break}F+=s[J++]}if(G)continue;if(P){E(`Unbalanced pattern at ${d}`);continue}if(!F){E(`Missing pattern at ${d}`);continue}f.push({type:"REGEX",index:d,value:F}),d=J;continue}f.push({type:"CHAR",index:d,value:s[d++]})}return f.push({type:"END",index:d,value:""}),f}t(Fst,"v");function Lst(s,o={}){let f=Fst(s);o.delimiter??="/#?",o.prefixes??="./";let d=`[^${fT(o.delimiter)}]+?`,y=[],E=0,P=0,F="",J=new Set,G=t(wn=>{if(P<f.length&&f[P].type===wn)return f[P++].value},"a"),Te=t(()=>G("OTHER_MODIFIER")??G("ASTERISK"),"f"),de=t(wn=>{let sn=G(wn);if(sn!==void 0)return sn;let{type:Jn,index:wr}=f[P];throw new TypeError(`Unexpected ${Jn} at ${wr}, expected ${wn}`)},"d"),ae=t(()=>{let wn="",sn;for(;sn=G("CHAR")??G("ESCAPED_CHAR");)wn+=sn;return wn},"T"),He=t(wn=>wn,"Se"),Ue=o.encodePart||He,je="",Yt=t(wn=>{je+=wn},"U"),zt=t(()=>{je.length&&(y.push(new WV(3,"","",Ue(je),"",3)),je="")},"$"),Sr=t((wn,sn,Jn,wr,yr)=>{let xs=3;switch(yr){case"?":xs=1;break;case"*":xs=0;break;case"+":xs=2;break}if(!sn&&!Jn&&xs===3){Yt(wn);return}if(zt(),!sn&&!Jn){if(!wn)return;y.push(new WV(3,"","",Ue(wn),"",xs));return}let bi;Jn?Jn==="*"?bi=FAe:bi=Jn:bi=d;let fc=2;bi===d?(fc=1,bi=""):bi===FAe&&(fc=0,bi="");let Ci;if(sn?Ci=sn:Jn&&(Ci=E++),J.has(Ci))throw new TypeError(`Duplicate name '${Ci}'.`);J.add(Ci),y.push(new WV(fc,Ci,Ue(wn),bi,Ue(wr),xs))},"V");for(;P<f.length;){let wn=G("CHAR"),sn=G("NAME"),Jn=G("REGEX");if(!sn&&!Jn&&(Jn=G("ASTERISK")),sn||Jn){let yr=wn??"";o.prefixes.indexOf(yr)===-1&&(Yt(yr),yr=""),zt();let xs=Te();Sr(yr,sn,Jn,"",xs);continue}let wr=wn??G("ESCAPED_CHAR");if(wr){Yt(wr);continue}if(G("OPEN")){let yr=ae(),xs=G("NAME"),bi=G("REGEX");!xs&&!bi&&(bi=G("ASTERISK"));let fc=ae();de("CLOSE");let Ci=Te();Sr(yr,xs,bi,fc,Ci);continue}zt(),de("END")}return y}t(Lst,"D");function fT(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(fT,"S");function Ist(s){return s&&s.ignoreCase?"ui":"u"}t(Ist,"X");function ker(s,o,f){return Rst(Lst(s,f),o,f)}t(ker,"Z");function X9(s){switch(s){case 0:return"*";case 1:return"?";case 2:return"+";case 3:return""}}t(X9,"k");function Rst(s,o,f={}){f.delimiter??="/#?",f.prefixes??="./",f.sensitive??=!1,f.strict??=!1,f.end??=!0,f.start??=!0,f.endsWith="";let d=f.start?"^":"";for(let F of s){if(F.type===3){F.modifier===3?d+=fT(F.value):d+=`(?:${fT(F.value)})${X9(F.modifier)}`;continue}o&&o.push(F.name);let J=`[^${fT(f.delimiter)}]+?`,G=F.value;if(F.type===1?G=J:F.type===0&&(G=FAe),!F.prefix.length&&!F.suffix.length){F.modifier===3||F.modifier===1?d+=`(${G})${X9(F.modifier)}`:d+=`((?:${G})${X9(F.modifier)})`;continue}if(F.modifier===3||F.modifier===1){d+=`(?:${fT(F.prefix)}(${G})${fT(F.suffix)})`,d+=X9(F.modifier);continue}d+=`(?:${fT(F.prefix)}`,d+=`((?:${G})(?:`,d+=fT(F.suffix),d+=fT(F.prefix),d+=`(?:${G}))*)${fT(F.suffix)})`,F.modifier===0&&(d+="?")}let y=`[${fT(f.endsWith)}]|$`,E=`[${fT(f.delimiter)}]`;if(f.end)return f.strict||(d+=`${E}?`),f.endsWith.length?d+=`(?=${y})`:d+="$",new RegExp(d,Ist(f));f.strict||(d+=`(?:${E}(?=${y}))?`);let P=!1;if(s.length){let F=s[s.length-1];F.type===3&&F.modifier===3&&(P=f.delimiter.indexOf(F)>-1)}return P||(d+=`(?=${E}|${y})`),new RegExp(d,Ist(f))}t(Rst,"F");var QN={delimiter:"",prefixes:"",sensitive:!0,strict:!0},wer={delimiter:".",prefixes:"",sensitive:!0,strict:!0},Der={delimiter:"/",prefixes:"/",sensitive:!0,strict:!0};function Per(s,o){return s.length?s[0]==="/"?!0:!o||s.length<2?!1:(s[0]=="\\"||s[0]=="{")&&s[1]=="/":!1}t(Per,"J");function Mst(s,o){return s.startsWith(o)?s.substring(o.length,s.length):s}t(Mst,"Q");function Aer(s,o){return s.endsWith(o)?s.substr(0,s.length-o.length):s}t(Aer,"Ee");function jst(s){return!s||s.length<2?!1:s[0]==="["||(s[0]==="\\"||s[0]==="{")&&s[1]==="["}t(jst,"W");var Bst=["ftp","file","http","https","ws","wss"];function Ust(s){if(!s)return!0;for(let o of Bst)if(s.test(o))return!0;return!1}t(Ust,"N");function Ner(s,o){if(s=Mst(s,"#"),o||s==="")return s;let f=new URL("https://example.com");return f.hash=s,f.hash?f.hash.substring(1,f.hash.length):""}t(Ner,"te");function Ier(s,o){if(s=Mst(s,"?"),o||s==="")return s;let f=new URL("https://example.com");return f.search=s,f.search?f.search.substring(1,f.search.length):""}t(Ier,"re");function Oer(s,o){return o||s===""?s:jst(s)?Jst(s):$st(s)}t(Oer,"ne");function Fer(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.password=s,f.password}t(Fer,"se");function Ler(s,o){if(o||s==="")return s;let f=new URL("https://example.com");return f.username=s,f.username}t(Ler,"ie");function Rer(s,o,f){if(f||s==="")return s;if(o&&!Bst.includes(o))return new URL(`${o}:${s}`).pathname;let d=s[0]=="/";return s=new URL(d?s:"/-"+s,"https://example.com").pathname,d||(s=s.substring(2,s.length)),s}t(Rer,"ae");function Mer(s,o,f){return zst(o)===s&&(s=""),f||s===""?s:Wst(s)}t(Mer,"oe");function jer(s,o){return s=Aer(s,":"),o||s===""?s:LAe(s)}t(jer,"ce");function zst(s){switch(s){case"ws":case"http":return"80";case"wws":case"https":return"443";case"ftp":return"21";default:return""}}t(zst,"_");function LAe(s){if(s==="")return s;if(/^[-+.A-Za-z0-9]*$/.test(s))return s.toLowerCase();throw new TypeError(`Invalid protocol '${s}'.`)}t(LAe,"y");function Ber(s){if(s==="")return s;let o=new URL("https://example.com");return o.username=s,o.username}t(Ber,"le");function Uer(s){if(s==="")return s;let o=new URL("https://example.com");return o.password=s,o.password}t(Uer,"fe");function $st(s){if(s==="")return s;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(s))throw new TypeError(`Invalid hostname '${s}'`);let o=new URL("https://example.com");return o.hostname=s,o.hostname}t($st,"z");function Jst(s){if(s==="")return s;if(/[^0-9a-fA-F[\]:]/g.test(s))throw new TypeError(`Invalid IPv6 hostname '${s}'`);return s.toLowerCase()}t(Jst,"j");function Wst(s){if(s===""||/^[0-9]*$/.test(s)&&parseInt(s)<=65535)return s;throw new TypeError(`Invalid port '${s}'.`)}t(Wst,"K");function zer(s){if(s==="")return s;let o=new URL("https://example.com");return o.pathname=s[0]!=="/"?"/-"+s:s,s[0]!=="/"?o.pathname.substring(2,o.pathname.length):o.pathname}t(zer,"he");function $er(s){return s===""?s:new URL(`data:${s}`).pathname}t($er,"ue");function Jer(s){if(s==="")return s;let o=new URL("https://example.com");return o.search=s,o.search.substring(1,o.search.length)}t(Jer,"de");function Wer(s){if(s==="")return s;let o=new URL("https://example.com");return o.hash=s,o.hash.substring(1,o.hash.length)}t(Wer,"pe");var qer=class{static{t(this,"H")}#e;#n=[];#t={};#r=0;#s=1;#m=0;#c=0;#u=0;#f=0;#p=!1;constructor(s){this.#e=s}get result(){return this.#t}parse(){for(this.#n=Fst(this.#e,!0);this.#r<this.#n.length;this.#r+=this.#s){if(this.#s=1,this.#n[this.#r].type==="END"){if(this.#c===0){this.#o(),this.#g()?this.#a(9,1):this.#E()?this.#a(8,1):this.#a(7,0);continue}else if(this.#c===2){this.#h(5);continue}this.#a(10,0);break}if(this.#u>0)if(this.#l())this.#u-=1;else continue;if(this.#A()){this.#u+=1;continue}switch(this.#c){case 0:this.#y()&&this.#h(1);break;case 1:if(this.#y()){this.#D();let s=7,o=1;this.#b()?(s=2,o=3):this.#p&&(s=2),this.#a(s,o)}break;case 2:this.#v()?this.#h(3):(this.#S()||this.#E()||this.#g())&&this.#h(5);break;case 3:this.#C()?this.#a(4,1):this.#v()&&this.#a(5,1);break;case 4:this.#v()&&this.#a(5,1);break;case 5:this.#O()?this.#f+=1:this.#N()&&(this.#f-=1),this.#k()&&!this.#f?this.#a(6,1):this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 6:this.#S()?this.#a(7,0):this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 7:this.#E()?this.#a(8,1):this.#g()&&this.#a(9,1);break;case 8:this.#g()&&this.#a(9,1);break;case 9:break;case 10:break}}this.#t.hostname!==void 0&&this.#t.port===void 0&&(this.#t.port="")}#a(s,o){switch(this.#c){case 0:break;case 1:this.#t.protocol=this.#w();break;case 2:break;case 3:this.#t.username=this.#w();break;case 4:this.#t.password=this.#w();break;case 5:this.#t.hostname=this.#w();break;case 6:this.#t.port=this.#w();break;case 7:this.#t.pathname=this.#w();break;case 8:this.#t.search=this.#w();break;case 9:this.#t.hash=this.#w();break;case 10:break}this.#c!==0&&s!==10&&([1,2,3,4].includes(this.#c)&&[6,7,8,9].includes(s)&&(this.#t.hostname??=""),[1,2,3,4,5,6].includes(this.#c)&&[8,9].includes(s)&&(this.#t.pathname??=this.#p?"/":""),[1,2,3,4,5,6,7].includes(this.#c)&&s===9&&(this.#t.search??="")),this.#i(s,o)}#i(s,o){this.#c=s,this.#m=this.#r+o,this.#r+=o,this.#s=0}#o(){this.#r=this.#m,this.#s=0}#h(s){this.#o(),this.#c=s}#d(s){return s<0&&(s=this.#n.length-s),s<this.#n.length?this.#n[s]:this.#n[this.#n.length-1]}#_(s,o){let f=this.#d(s);return f.value===o&&(f.type==="CHAR"||f.type==="ESCAPED_CHAR"||f.type==="INVALID_CHAR")}#y(){return this.#_(this.#r,":")}#b(){return this.#_(this.#r+1,"/")&&this.#_(this.#r+2,"/")}#v(){return this.#_(this.#r,"@")}#C(){return this.#_(this.#r,":")}#k(){return this.#_(this.#r,":")}#S(){return this.#_(this.#r,"/")}#E(){if(this.#_(this.#r,"?"))return!0;if(this.#n[this.#r].value!=="?")return!1;let s=this.#d(this.#r-1);return s.type!=="NAME"&&s.type!=="REGEX"&&s.type!=="CLOSE"&&s.type!=="ASTERISK"}#g(){return this.#_(this.#r,"#")}#A(){return this.#n[this.#r].type=="OPEN"}#l(){return this.#n[this.#r].type=="CLOSE"}#O(){return this.#_(this.#r,"[")}#N(){return this.#_(this.#r,"]")}#w(){let s=this.#n[this.#r],o=this.#d(this.#m).index;return this.#e.substring(o,s.index)}#D(){let s={};Object.assign(s,QN),s.encodePart=LAe;let o=ker(this.#w(),void 0,s);this.#p=Ust(o)}},OAe=["protocol","username","password","hostname","port","pathname","search","hash"],ZN="*";function Ost(s,o){if(typeof s!="string")throw new TypeError("parameter 1 is not of type 'string'.");let f=new URL(s,o);return{protocol:f.protocol.substring(0,f.protocol.length-1),username:f.username,password:f.password,hostname:f.hostname,port:f.port,pathname:f.pathname,search:f.search!==""?f.search.substring(1,f.search.length):void 0,hash:f.hash!==""?f.hash.substring(1,f.hash.length):void 0}}t(Ost,"ge");function WP(s,o){return o?JV(s):s}t(WP,"b");function $V(s,o,f){let d;if(typeof o.baseURL=="string")try{d=new URL(o.baseURL),o.protocol===void 0&&(s.protocol=WP(d.protocol.substring(0,d.protocol.length-1),f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&(s.username=WP(d.username,f)),!f&&o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.username===void 0&&o.password===void 0&&(s.password=WP(d.password,f)),o.protocol===void 0&&o.hostname===void 0&&(s.hostname=WP(d.hostname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&(s.port=WP(d.port,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&(s.pathname=WP(d.pathname,f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&(s.search=WP(d.search.substring(1,d.search.length),f)),o.protocol===void 0&&o.hostname===void 0&&o.port===void 0&&o.pathname===void 0&&o.search===void 0&&o.hash===void 0&&(s.hash=WP(d.hash.substring(1,d.hash.length),f))}catch{throw new TypeError(`invalid baseURL '${o.baseURL}'.`)}if(typeof o.protocol=="string"&&(s.protocol=jer(o.protocol,f)),typeof o.username=="string"&&(s.username=Ler(o.username,f)),typeof o.password=="string"&&(s.password=Fer(o.password,f)),typeof o.hostname=="string"&&(s.hostname=Oer(o.hostname,f)),typeof o.port=="string"&&(s.port=Mer(o.port,s.protocol,f)),typeof o.pathname=="string"){if(s.pathname=o.pathname,d&&!Per(s.pathname,f)){let y=d.pathname.lastIndexOf("/");y>=0&&(s.pathname=WP(d.pathname.substring(0,y+1),f)+s.pathname)}s.pathname=Rer(s.pathname,s.protocol,f)}return typeof o.search=="string"&&(s.search=Ier(o.search,f)),typeof o.hash=="string"&&(s.hash=Ner(o.hash,f)),s}t($V,"w");function JV(s){return s.replace(/([+*?:{}()\\])/g,"\\$1")}t(JV,"C");function Ver(s){return s.replace(/([.+*?^${}()[\]|/\\])/g,"\\$1")}t(Ver,"Oe");function Her(s,o){o.delimiter??="/#?",o.prefixes??="./",o.sensitive??=!1,o.strict??=!1,o.end??=!0,o.start??=!0,o.endsWith="";let f=".*",d=`[^${Ver(o.delimiter)}]+?`,y=/[$_\u200C\u200D\p{ID_Continue}]/u,E="";for(let P=0;P<s.length;++P){let F=s[P];if(F.type===3){if(F.modifier===3){E+=JV(F.value);continue}E+=`{${JV(F.value)}}${X9(F.modifier)}`;continue}let J=F.hasCustomName(),G=!!F.suffix.length||!!F.prefix.length&&(F.prefix.length!==1||!o.prefixes.includes(F.prefix)),Te=P>0?s[P-1]:null,de=P<s.length-1?s[P+1]:null;if(!G&&J&&F.type===1&&F.modifier===3&&de&&!de.prefix.length&&!de.suffix.length)if(de.type===3){let ae=de.value.length>0?de.value[0]:"";G=y.test(ae)}else G=!de.hasCustomName();if(!G&&!F.prefix.length&&Te&&Te.type===3){let ae=Te.value[Te.value.length-1];G=o.prefixes.includes(ae)}G&&(E+="{"),E+=JV(F.prefix),J&&(E+=`:${F.name}`),F.type===2?E+=`(${F.value})`:F.type===1?J||(E+=`(${d})`):F.type===0&&(!J&&(!Te||Te.type===3||Te.modifier!==3||G||F.prefix!=="")?E+="*":E+=`(${f})`),F.type===1&&J&&F.suffix.length&&y.test(F.suffix[0])&&(E+="\\"),E+=JV(F.suffix),G&&(E+="}"),F.modifier!==3&&(E+=X9(F.modifier))}return E}t(Her,"ke");var qst=class{static{t(this,"me")}#e;#n={};#t={};#r={};#s={};#m=!1;constructor(s={},o,f){try{let d;if(typeof o=="string"?d=o:f=o,typeof s=="string"){let F=new qer(s);if(F.parse(),s=F.result,d===void 0&&typeof s.protocol!="string")throw new TypeError("A base URL must be provided for a relative constructor string.");s.baseURL=d}else{if(!s||typeof s!="object")throw new TypeError("parameter 1 is not of type 'string' and cannot convert to dictionary.");if(d)throw new TypeError("parameter 1 is not of type 'string'.")}typeof f>"u"&&(f={ignoreCase:!1});let y={ignoreCase:f.ignoreCase===!0},E={pathname:ZN,protocol:ZN,username:ZN,password:ZN,hostname:ZN,port:ZN,search:ZN,hash:ZN};this.#e=$V(E,s,!0),zst(this.#e.protocol)===this.#e.port&&(this.#e.port="");let P;for(P of OAe){if(!(P in this.#e))continue;let F={},J=this.#e[P];switch(this.#t[P]=[],P){case"protocol":Object.assign(F,QN),F.encodePart=LAe;break;case"username":Object.assign(F,QN),F.encodePart=Ber;break;case"password":Object.assign(F,QN),F.encodePart=Uer;break;case"hostname":Object.assign(F,wer),jst(J)?F.encodePart=Jst:F.encodePart=$st;break;case"port":Object.assign(F,QN),F.encodePart=Wst;break;case"pathname":Ust(this.#n.protocol)?(Object.assign(F,Der,y),F.encodePart=zer):(Object.assign(F,QN,y),F.encodePart=$er);break;case"search":Object.assign(F,QN,y),F.encodePart=Jer;break;case"hash":Object.assign(F,QN,y),F.encodePart=Wer;break}try{this.#s[P]=Lst(J,F),this.#n[P]=Rst(this.#s[P],this.#t[P],F),this.#r[P]=Her(this.#s[P],F),this.#m=this.#m||this.#s[P].some(G=>G.type===2)}catch{throw new TypeError(`invalid ${P} pattern '${this.#e[P]}'.`)}}}catch(d){throw new TypeError(`Failed to construct 'URLPattern': ${d.message}`)}}test(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return!1;try{typeof s=="object"?f=$V(f,s,!1):f=$V(f,Ost(s,o),!1)}catch{return!1}let d;for(d of OAe)if(!this.#n[d].exec(f[d]))return!1;return!0}exec(s={},o){let f={pathname:"",protocol:"",username:"",password:"",hostname:"",port:"",search:"",hash:""};if(typeof s!="string"&&o)throw new TypeError("parameter 1 is not of type 'string'.");if(typeof s>"u")return;try{typeof s=="object"?f=$V(f,s,!1):f=$V(f,Ost(s,o),!1)}catch{return null}let d={};o?d.inputs=[s,o]:d.inputs=[s];let y;for(y of OAe){let E=this.#n[y].exec(f[y]);if(!E)return null;let P={};for(let[F,J]of this.#t[y].entries())if(typeof J=="string"||typeof J=="number"){let G=E[F+1];P[J]=G}d[y]={input:f[y]??"",groups:P}}return d}static compareComponent(s,o,f){let d=t((F,J)=>{for(let G of["type","modifier","prefix","value","suffix"]){if(F[G]<J[G])return-1;if(F[G]!==J[G])return 1}return 0},"o"),y=new WV(3,"","","","",3),E=new WV(0,"","","","",3),P=t((F,J)=>{let G=0;for(;G<Math.min(F.length,J.length);++G){let Te=d(F[G],J[G]);if(Te)return Te}return F.length===J.length?0:d(F[G]??y,J[G]??y)},"s");return!o.#r[s]&&!f.#r[s]?0:o.#r[s]&&!f.#r[s]?P(o.#s[s],[E]):!o.#r[s]&&f.#r[s]?P([E],f.#s[s]):P(o.#s[s],f.#s[s])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#m}};globalThis.URLPattern||(globalThis.URLPattern=qst);import{AssertionError as Ger}from"node:assert";function qP(s,o){if(s===!1)throw new Ger({message:o})}t(qP,"assert");var Wo;(function(s){s.Object="Object",s.Property="Property",s.Array="Array",s.Literal="Literal",s.TemplateString="TemplateString",s.Identifier="Identifier",s.FunctionCall="FunctionCall",s.Raw="Raw"})(Wo||(Wo={}));function Z9(s){return s.type===Wo.Object}t(Z9,"isAstObject");function VP(s){return s.type===Wo.Property}t(VP,"isAstProperty");function RAe(s){return s.type===Wo.Array}t(RAe,"isAstArray");function bO(s){return s.type===Wo.Literal}t(bO,"isAstLiteral");function eI(s){if(s===void 0)throw new Error("Node is undefined");if(!Z9(s))throw new Error("Node is not object")}t(eI,"assertAstObject");import{findNodeAtLocation as Yer,getNodeValue as Ker,printParseErrorCode as Xer,visit as Zer}from"jsonc-parser";var Qer={DEFAULT:{allowTrailingComma:!1}};function qV(s,o=[],f=Qer.DEFAULT){let d={type:"array",offset:-1,length:-1,line:-1,column:-1,children:[],parent:void 0};function y(J){d.type==="property"&&(d.length=J-d.offset,d=d.parent)}t(y,"ensurePropertyComplete");function E(J){return d.children?.push(J),J}t(E,"onValue"),Zer(s,{onObjectBegin:t((J,G,Te)=>{d=E({type:"object",offset:J,length:-1,line:G+1,column:Te+1,parent:d,children:[]})},"onObjectBegin"),onObjectProperty:t((J,G,Te,de,ae)=>{d=E({type:"property",offset:G,length:-1,line:de+1,column:ae+1,parent:d,children:[]}),d.children?.push({type:"string",value:J,offset:G,length:Te,line:de,column:ae,parent:d})},"onObjectProperty"),onObjectEnd:t((J,G)=>{y(J+G),d.length=J+G-d.offset,d=d.parent,y(J+G)},"onObjectEnd"),onArrayBegin:t((J,G,Te,de)=>{d=E({type:"array",offset:J,length:-1,line:Te+1,column:de+1,parent:d,children:[]})},"onArrayBegin"),onArrayEnd:t((J,G)=>{d.length=J+G-d.offset,d=d.parent,y(J+G)},"onArrayEnd"),onLiteralValue:t((J,G,Te,de,ae)=>{E({type:etr(J),offset:G,length:Te,line:de+1,column:ae+1,parent:d,value:J}),y(G+Te)},"onLiteralValue"),onSeparator:t((J,G)=>{d.type==="property"&&(J===":"?d.colonOffset=G:J===","&&y(G))},"onSeparator"),onError:t((J,G,Te,de,ae)=>{o.push({error:J,offset:G,length:Te,line:de+1,column:ae+1})},"onError")},f);let F=d.children?.[0];return F&&delete F.parent,F}t(qV,"parse");function etr(s){switch(typeof s){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(s){if(Array.isArray(s))return"array"}else return"null";return"object"}default:return"null"}}t(etr,"getNodeType");function MAe(s,o){return Yer(s,o)}t(MAe,"findNodeAtLocation");function VV(s){return Ker(s)}t(VV,"getNodeValue");function Vst(s){return Xer(s)}t(Vst,"printParseErrorCode");var HV=class{static{t(this,"AstAdapter")}parse(o){let d=qV(o,[]);if(d)return this.parseNode(d,void 0);throw new Error("Failed to parse JSON")}convert(o){return this.parseNode(o,void 0)}parseNode(o,f){switch(o.type){case"object":return this.createObject(o,f);case"array":return this.createArray(o,f);case"property":return this.createProperty(o,f);case"string":return this.createLiteral(o,f);case"number":return this.createLiteral(o,f);case"boolean":return this.createLiteral(o,f);case"null":return this.createLiteral(o,f)}}createLiteral(o,f){return{type:Wo.Literal,location:{line:o.line,column:o.column},parent:f,value:o.type==="null"?null:o.value}}createObject(o,f){let d={type:Wo.Object,children:[],parent:f,location:{line:o.line,column:o.column}};return o.children?.forEach(y=>{d.children.push(this.parseNode(y,d))}),d}createProperty(o,f){qP(o.children?.length===2,"Invalid property node");let d={type:Wo.Property,location:{line:o.line,column:o.column},parent:f,name:null,value:null};return d.name={value:o.children[0].value,location:{line:o.line,column:o.column},type:Wo.Identifier,parent:d},d.value=this.parseNode(o.children[1],d),d}createArray(o,f){let d={type:Wo.Array,location:{line:o.line,column:o.column},parent:f,children:[]};return o.children?.forEach(y=>d.children.push(this.parseNode(y,d))),d}};var DS={createLiteral:t((s,o)=>({type:Wo.Literal,parent:o,value:s}),"createLiteral"),createTemplateString:t((s,o)=>({type:Wo.TemplateString,parent:o,value:s}),"createTemplateString"),createIdentifier:t((s,o)=>({type:Wo.Identifier,value:s,parent:o}),"createIdentifier"),createProperty:t((s,o,f)=>{let d={type:Wo.Property,parent:f,name:null,value:o};return d.name={value:s,type:Wo.Identifier,parent:d},d.value.parent=d,d},"createProperty"),createArrayOfLiterals:t((s,o)=>{let f={type:Wo.Array,parent:o,children:[]};for(let d of s)f.children.push(DS.createLiteral(d,f));return f},"createArrayOfLiterals")};var ttr=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,GV=class{static{t(this,"SourceGenerator")}generate(o){let f=[];return this.generateSource(f,o),f.join("")}generateSource(o,f){switch(f.type){case Wo.Array:return this.generateArray(o,f);case Wo.Object:return this.generateObject(o,f);case Wo.Property:return this.generateProperty(o,f);case Wo.Literal:return this.generateLiteral(o,f);case Wo.FunctionCall:return this.generateFunctionCall(o,f);case Wo.Identifier:return this.generateIdentifier(o,f);case Wo.Raw:return this.generateRaw(o,f);case Wo.TemplateString:return this.generateTemplateString(o,f)}}generateArray(o,f){o.push("["),f.children.map(d=>{this.generateSource(o,d),o.push(",")}),o.push("]")}generateObject(o,f){o.push("{"),f.children.forEach(d=>{this.generateSource(o,d),o.push(",")}),o.push("}")}generateProperty(o,f){this.generateIdentifier(o,f.name),o.push(":"),this.generateSource(o,f.value)}generateFunctionCall(o,f){o.push(f.name.value),o.push("("),f.children.forEach((d,y,E)=>{this.generateSource(o,d),y<E.length&&o.push(",")}),o.push(")")}generateRaw(o,f){o.push(f.value)}generateTemplateString(o,f){o.push("`"),o.push(f.value.replaceAll("`","\\`")),o.push("`")}generateLiteral(o,f){if(f.value===null)return o.push("null");switch(typeof f.value){case"number":case"boolean":return o.push(`${f.value}`);case"string":{let d=f.value,y=JSON.stringify(d);return o.push(`${y}`)}}}generateIdentifier(o,f){let d=ttr.test(f.value)?f.value:`'${f.value}'`;o.push(d)}};import rtr from"node:fs/promises";import{parse as ntr}from"@swc/core";var Hst=t(async s=>{let o=new Set;try{let f=await rtr.readFile(s,"utf-8");(await ntr(f,{syntax:"typescript"})).body.forEach(y=>{y.type==="ExportDefaultDeclaration"||y.type==="ExportDefaultExpression"?o.add("default"):y.type==="ExportDeclaration"&&y.declaration.type==="FunctionDeclaration"?o.add(y.declaration.identifier.value):y.type==="ExportDeclaration"&&y.declaration.type==="VariableDeclaration"&&y.declaration.declarations[0].id.type==="Identifier"&&o.add(y.declaration.declarations[0].id.value)})}catch{return null}return o},"getJSFileExports");var Gst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/fragments.schema.json",$defs:{corsPolicyConfiguration:{type:"object",required:["name","allowedOrigins"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},allowCredentials:{type:"boolean"},maxAge:{type:"number"},allowedOrigins:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},allowedMethods:{oneOf:[{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},{type:"string"}]},allowedHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},exposeHeaders:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]}}},handlerDefinition:{type:"object",properties:{module:{type:"string",pattern:"^\\$import\\([^ )]*?\\)$"},export:{type:"string"},options:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["module","export"]},httpMethod:{type:"string",enum:["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"]}}};var jAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policies.schema.json",title:"Policies Config File",type:"object",additionalProperties:!1,properties:{policies:{type:"array",items:{$ref:"policy-configuration.schema.json"}},corsPolicies:{type:"array",items:{$ref:"fragments.schema.json#/$defs/corsPolicyConfiguration"}}}};var Yst={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/policy-configuration.schema.json",title:"Policy Configuration Fragment",type:"object",required:["name","policyType","handler"],additionalProperties:!1,properties:{name:{type:"string",pattern:"^[0-9a-z-]+$"},policyType:{type:"string"},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},options:{type:"object",additionalProperties:!0}}};var BAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration.schema.json",title:"Route Configuration Fragment",description:"",type:"object",required:["path","methods","handler"],additionalProperties:!1,$defs:{corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"}},properties:{operationId:{type:"string"},path:{type:"string",pattern:"^/[^\\s]*$"},methods:{type:"array",items:{$ref:"fragments.schema.json#/$defs/httpMethod"}},label:{type:"string",description:"An internal user-friendly identifier of the route."},enforceOpenApi:{type:"boolean",description:"If true, schema validation found in the OpenAPI spec will be enforced on requests/responses."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{$ref:"#/$defs/corsPolicy"},custom:{},mcp:{type:"object",additionalProperties:!1,properties:{enabled:{type:"boolean"}}},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},summary:{type:"string"},description:{type:"string"},excludeFromOpenApi:{type:"boolean"},tags:{type:"array",items:{type:"string"}}}};var UAe={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"http://schemas.zuplo.com/route-configuration-open-api.schema.json",title:"Open API Route Configuration Fragment",description:"These are the properties that can appear under the x-zuplo-route extension in a PathObject in Open API. It's a subset of what can appear in Zuplo's routes.json.",type:"object",required:["handler"],additionalProperties:!1,properties:{label:{type:"string",description:"An internal user-friendly identifier of the route."},key:{type:"string",deprecated:!0},handler:{$ref:"fragments.schema.json#/$defs/handlerDefinition"},corsPolicy:{type:"string",pattern:"^[0-9a-z-]+$"},custom:{},mcp:{oneOf:[{type:"object",additionalProperties:!1,properties:{type:{const:"tool"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"},includeOutputSchema:{type:"boolean"},includeStructuredContent:{type:"boolean"},annotations:{type:"object",additionalProperties:!1,properties:{title:{type:"string"},readOnlyHint:{type:"boolean"},destructiveHint:{type:"boolean"},idempotentHint:{type:"boolean"},openWorldHint:{type:"boolean"}}},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"prompt"},name:{type:"string"},description:{type:"string"},enabled:{type:"boolean"}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"resource"},name:{type:"string"},description:{type:"string"},uri:{type:"string"},mimeType:{type:"string"},enabled:{type:"boolean"},_meta:{type:"object",additionalProperties:!0}},required:["type"]},{type:"object",additionalProperties:!1,properties:{type:{const:"graphql"},enabled:{type:"boolean"},introspectionTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}},executeTool:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},description:{type:"string"}}}},required:["type"]}]},policies:{type:"object",additionalProperties:!1,properties:{inbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}},outbound:{type:"array",items:{type:"string",pattern:"^[0-9a-z-]+$"}}}},tags:{type:"array",items:{type:"string"}}}};var tlt=Hp(Kce(),1),rlt=Hp(elt(),1);var Qce=class s{static{t(this,"JsonValidator")}static#e=new s;static get instance(){return s.#e}ajv;constructor(){this.ajv=new tlt.Ajv2020({allErrors:!0,allowUnionTypes:!0}),this.ajv.addKeyword("faker"),(0,rlt.default)(this.ajv,{mode:"fast"})}addSchema(o,f){this.ajv.addSchema(o,f)}compile(o){let f=this.ajv.compile(o);return t(y=>({isValid:f(y),errors:this.toSimpleErrors(f.errors,y),warnings:[]}),"validator")}toSimpleErrors(o,f){let d=[];return o?.forEach(y=>{y.keyword==="enum"&&y.params.allowedValues&&Array.isArray(y.params.allowedValues)&&(y.message+=`; ${y.params.allowedValues.join(", ")}`),y.instancePath&&(y.instancePath=y.instancePath.replaceAll(/(\/)?(~1)(\/)?/gm,"/"));let E={details:{}},P=y.instancePath.split("/");if(P.length>2){let J=P[1],G=P[2]?parseInt(P[2],10):0,Te=P[3],de=Number.isNaN(G)?void 0:f[J][G][Te];E={details:{property:J,index:G,field:Te,fieldValue:de}}}if(y.keyword==="required"&&y.params.missingProperty&&y.instancePath&&(y.message=`A 'path' is missing required property '${y.params.missingProperty}'`),y.keyword==="additionalProperties"&&y.params.additionalProperty&&y.instancePath&&(y.message=`A 'path' should NOT include property '${y.params.additionalProperty}'`),y.keyword==="type"&&y.params.type&&y.instancePath){let J=y.instancePath.split("/"),G=J[J.length-1];y.message=`Value of property '${G}' must be '${y.params.type}'`}let F=Object.assign(y,E);d.push(F)}),d}};var uI=Qce.instance;uI.addSchema(BAe,"route-configuration.schema.json");uI.addSchema(Yst,"policy-configuration.schema.json");uI.addSchema(jAe,"policies.schema.json");uI.addSchema(UAe,"open-api-route-configuration.schema.json");uI.addSchema(Gst,"fragments.schema.json");var ZAr=uI.compile(BAe),nlt=uI.compile(UAe),tIe=uI.compile(jAe);var ele=class{static{t(this,"PoliciesConfigurationValidator")}results;validate(o){return this.results=tIe(o),this.results}};var tle=class{static{t(this,"OpenAPILocalizedValidator")}results;validate(o){return this.results=nlt(o),this.results}};import pcr from"node:path";var rIe=/\$import\((.*)\)/,kH=/\$env\((.*?)\)/g;var Bk=class extends Error{static{t(this,"CodeGenError")}location;constructor(o,f,d,y){super(o),this.location={file:f,namespace:"",line:d?d.line:0,column:d?d.column:0,length:0,lineText:y??"",suggestion:""}}},_cr=t(s=>{let o=[],f=s;for(;f.parent;)o.push(f),f=f.parent;return o.reverse()},"invertTree"),XP=t((s,o)=>{if(!s)return!1;let f=_cr(s);return o.split("/").every((E,P)=>{let F=f[P];return F?E==="*"||VP(F)&&F.name.value===E?!0:E==="{}"?F.type===Wo.Object:E==="[]"?F.type===Wo.Array:!1:!1})},"testPosition");var rle=class{static{t(this,"AstTransformer")}errors=[];transform(o){return this.visitor(o),o}visitor(o){this.visit(o),Z9(o)?o.children.forEach(f=>{this.visitor(f)}):RAe(o)?o.children.forEach(f=>{this.visitor(f)}):VP(o)&&this.visitor(o.value)}},ilt=t(s=>{let o=new RegExp(kH).exec(s);if(o?.length===2&&o[0]===s)return{type:"raw",value:`environment["${o[1]}"]`};{let f=s.replaceAll(new RegExp(kH),(d,y)=>`\${environment["${y}"] ? environment["${y}"] : ""}`);if(f!==s)return{type:"template",value:f}}return null},"replaceEnvInString"),slt=t((s,o,f)=>d=>{if(bO(d)&&typeof d.value=="string"&&d.parent&&RAe(d.parent)){if(!s.some(P=>XP(d.parent,P))){kH.test(d.value)&&o.push(new Bk("An $env() statement is not expected at this location.",f,d.location,d.value));return}let E=ilt(d.value);if(E){let P=d.parent,F=P.children.indexOf(d);if(F!==-1)if(E.type==="raw"){let J={type:Wo.Raw,parent:P,value:E.value};P.children[F]=J}else P.children[F]=DS.createTemplateString(E.value,d)}return}if(!VP(d)||!bO(d.value)||typeof d.value.value!="string")return;if(!s.some(E=>XP(d,E))){kH.test(d.value.value)&&o.push(new Bk("An $env() statement is not expected at this location.",f,d.location,d.value.value));return}let y=ilt(d.value.value);if(y)if(y.type==="raw"){let E={type:Wo.Raw,parent:null,value:y.value};d.value=E}else d.value=DS.createTemplateString(y.value,d)},"getEnvStatementTransformer");var wH="config/routes.json",dcr=["handler/{}/options/*","handler/{}/options/*/[]","policies/[]/{}/handler/{}/options/*","policies/[]/{}/handler/{}/options/*/[]","corsPolicies/[]/{}/*","corsPolicies/[]/{}/*/[]"],mcr=["handler/{}/module","handler/{}/options/{}/policies/{}/inbound/[]/{}/module","handler/{}/options/{}/policies/{}/outbound/[]/{}/module","policies/[]/{}/handler/{}/module","policies/[]/{}/handler/{}/options/{}/identifier/{}/module","policies/[]/{}/handler/{}/options/{}/validator"],alt=["handler/{}/options/*","policies/[]/{}/handler/{}/options/*"],hcr="handler/{}/options/{}/rewritePattern",gcr="handler/{}/options/{}/baseUrl",nle=class extends rle{static{t(this,"OpenAPIRoutesFragmentAstTransformer")}importCount=0;addedImports=new Map;getImportName(o){this.addedImports.has(o)||this.addedImports.set(o,`__import${this.importCount++}`);let f=this.addedImports.get(o);if(!f)throw new Error("Import name is undefined. This should not happen.");return f}getImports(){let o=[];return this.addedImports.forEach((f,d)=>{o.push({name:f,path:d})}),o}visit(o){this.rewriteHandlerFunction(o),this.rewriteForwardFunction(o),this.replaceImportStatements(o),this.replaceEnvStatements(o)}rewriteHandlerFunction(o){if(!(!VP(o)||!bO(o.value)||typeof o.value.value!="string")&&XP(o,hcr)){if(!o.parent||!Z9(o.parent)){this.errors.push(new Bk("Invalid node, expected object",wH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:olt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}rewriteForwardFunction(o){if(!(!VP(o)||!bO(o.value)||typeof o.value.value!="string")&&XP(o,gcr)){if(!o.parent||!Z9(o.parent)){this.errors.push(new Bk("Invalid node, expected object",wH,o.parent?o.parent.location:o.location,void 0));return}let f=o.value.value,d={type:Wo.Raw,parent:null,value:olt(f)},y=DS.createProperty("__rewriteFunction",d,o);o.parent.children.push(y)}}replaceImportStatements(o){if(!VP(o)||!bO(o.value))return;let f=o.value.value;if(typeof f!="string")return;if(!mcr.some(F=>XP(o,F))&&!alt.some(F=>XP(o,F))){if(rIe.test(f)){if(o.name.value==="$ref")return;this.errors.push(new Bk("An $import() statement is not expected at this location.",wH,o.location,f))}return}let d=rIe.exec(f);if(alt.some(F=>XP(o,F))&&!d)return;if(!d){this.errors.push(new Bk("Invalid $import() statement",wH,o.location,f));return}let y=d[1];y=y.replace(/\\/g,"/"),y.startsWith(".")&&(y=pcr.posix.join("..",y));let E=this.getImportName(y),P={type:Wo.Identifier,parent:o.parent,value:E};o.value=P}replaceEnvStatements=slt(dcr,this.errors,wH)};function olt(s){return`(request, context) => {
|
|
576
576
|
const { params, url, query, method, headers } = request;
|
|
577
577
|
const { host, hostname, origin, pathname, port, search } = new URL(url);
|
|
578
578
|
const e = encodeURIComponent;
|