@uniformdev/uniform-mcp 20.55.1 → 20.55.2
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/index.mjs +227 -219
- package/dist/server.mjs +227 -219
- package/package.json +8 -8
package/dist/server.mjs
CHANGED
|
@@ -17,7 +17,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
17
17
|
0%, 80%, 100% { opacity: 0; }
|
|
18
18
|
40% { opacity: 1; }
|
|
19
19
|
`]))),dre=function(e,r){var n=e.isFocused,o=e.size,a=e.theme,i=a.colors,l=a.spacing.baseUnit;return ct({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},r?{}:{color:n?i.neutral60:i.neutral20,padding:l*2})},qC=function(e){var r=e.delay,n=e.offset;return Je.jsx("span",{css:Je.css({animation:"".concat(cre," 1s ease-in-out ").concat(r,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},fre=function(e){var r=e.innerProps,n=e.isRtl,o=e.size,a=o===void 0?4:o,i=ku(e,tre);return Je.jsx("div",tr({},vr(ct(ct({},i),{},{innerProps:r,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),r),Je.jsx(qC,{delay:0,offset:n}),Je.jsx(qC,{delay:160,offset:!0}),Je.jsx(qC,{delay:320,offset:!n}))},pre=function(e,r){var n=e.isDisabled,o=e.isFocused,a=e.theme,i=a.colors,l=a.borderRadius,s=a.spacing;return ct({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},r?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},mre=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,a=e.innerRef,i=e.innerProps,l=e.menuIsOpen;return Je.jsx("div",tr({ref:a},vr(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),i,{"aria-disabled":n||void 0}),r)},gre=mre,hre=["data"],vre=function(e,r){var n=e.theme.spacing;return r?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},bre=function(e){var r=e.children,n=e.cx,o=e.getStyles,a=e.getClassNames,i=e.Heading,l=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,d=e.selectProps;return Je.jsx("div",tr({},vr(e,"group",{group:!0}),s),Je.jsx(i,tr({},l,{selectProps:d,theme:c,getStyles:o,getClassNames:a,cx:n}),u),Je.jsx("div",null,r))},yre=function(e,r){var n=e.theme,o=n.colors,a=n.spacing;return ct({label:"group",cursor:"default",display:"block"},r?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},xre=function(e){var r=eN(e);r.data;var n=ku(r,hre);return Je.jsx("div",tr({},vr(e,"groupHeading",{"group-heading":!0}),n))},Cre=bre,wre=["innerRef","isDisabled","isHidden","inputClassName"],Sre=function(e,r){var n=e.isDisabled,o=e.value,a=e.theme,i=a.spacing,l=a.colors;return ct(ct({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},Ere),r?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:l.neutral80})},uN={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Ere={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ct({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},uN)},$re=function(e){return ct({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},uN)},Tre=function(e){var r=e.cx,n=e.value,o=eN(e),a=o.innerRef,i=o.isDisabled,l=o.isHidden,s=o.inputClassName,u=ku(o,wre);return Je.jsx("div",tr({},vr(e,"input",{"input-container":!0}),{"data-value":n||""}),Je.jsx("input",tr({className:r({input:!0},s),ref:a,style:$re(l),disabled:i},u)))},Ire=Tre,Dre=function(e,r){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors;return ct({label:"multiValue",display:"flex",minWidth:0},r?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:o.baseUnit/2})},Are=function(e,r){var n=e.theme,o=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return ct({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},r?{}:{borderRadius:o/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Lre=function(e,r){var n=e.theme,o=n.spacing,a=n.borderRadius,i=n.colors,l=e.isFocused;return ct({alignItems:"center",display:"flex"},r?{}:{borderRadius:a/2,backgroundColor:l?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},cN=function(e){var r=e.children,n=e.innerProps;return Je.jsx("div",n,r)},_re=cN,Mre=cN;function Nre(t){var e=t.children,r=t.innerProps;return Je.jsx("div",tr({role:"button"},r),e||Je.jsx(e5,{size:14}))}var kre=function(e){var r=e.children,n=e.components,o=e.data,a=e.innerProps,i=e.isDisabled,l=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,d=n.Remove;return Je.jsx(u,{data:o,innerProps:ct(ct({},vr(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:s},Je.jsx(c,{data:o,innerProps:ct({},vr(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},r),Je.jsx(d,{data:o,innerProps:ct(ct({},vr(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(r||"option")},l),selectProps:s}))},Pre=kre,Ore=function(e,r){var n=e.isDisabled,o=e.isFocused,a=e.isSelected,i=e.theme,l=i.spacing,s=i.colors;return ct({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},r?{}:{backgroundColor:a?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(l.baseUnit*2,"px ").concat(l.baseUnit*3,"px"),":active":{backgroundColor:n?void 0:a?s.primary:s.primary50}})},Rre=function(e){var r=e.children,n=e.isDisabled,o=e.isFocused,a=e.isSelected,i=e.innerRef,l=e.innerProps;return Je.jsx("div",tr({},vr(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":a}),{ref:i,"aria-disabled":n},l),r)},Fre=Rre,Bre=function(e,r){var n=e.theme,o=n.spacing,a=n.colors;return ct({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},r?{}:{color:a.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Vre=function(e){var r=e.children,n=e.innerProps;return Je.jsx("div",tr({},vr(e,"placeholder",{placeholder:!0}),n),r)},jre=Vre,zre=function(e,r){var n=e.isDisabled,o=e.theme,a=o.spacing,i=o.colors;return ct({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},Hre=function(e){var r=e.children,n=e.isDisabled,o=e.innerProps;return Je.jsx("div",tr({},vr(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),r)},Wre=Hre,dN={ClearIndicator:sre,Control:gre,DropdownIndicator:are,DownChevron:sN,CrossIcon:e5,Group:Cre,GroupHeading:xre,IndicatorsContainer:Qte,IndicatorSeparator:ure,Input:Ire,LoadingIndicator:fre,Menu:Bte,MenuList:jte,MenuPortal:Zte,LoadingMessage:Gte,NoOptionsMessage:Wte,MultiValue:Pre,MultiValueContainer:_re,MultiValueLabel:Mre,MultiValueRemove:Nre,Option:Fre,Placeholder:jre,SelectContainer:Kte,SingleValue:Wre,ValueContainer:Jte},Gre=function(e){return ct(ct({},dN),e.components)};tt.MenuPlacer=Rte;tt.classNames=mte;tt.cleanValue=gte;tt.clearIndicatorCSS=ire;tt.components=dN;tt.containerCSS=Yte;tt.css=pre;tt.css$1=zre;tt.defaultComponents=Gre;tt.dropdownIndicatorCSS=ore;tt.groupCSS=vre;tt.groupHeadingCSS=yre;tt.handleInputChange=hte;tt.indicatorSeparatorCSS=lre;tt.indicatorsContainerCSS=qte;tt.inputCSS=Sre;tt.isDocumentElement=Gv;tt.isMobileDevice=Ste;tt.isTouchCapable=wte;tt.loadingIndicatorCSS=dre;tt.loadingMessageCSS=Hte;tt.menuCSS=Ote;tt.menuListCSS=Vte;tt.menuPortalCSS=Ute;tt.multiValueAsValue=Lte;tt.multiValueCSS=Dre;tt.multiValueLabelCSS=Are;tt.multiValueRemoveCSS=Lre;tt.noOptionsMessageCSS=zte;tt.noop=Hv;tt.notNullish=Tte;tt.optionCSS=Ore;tt.placeholderCSS=Bre;tt.removeProps=_te;tt.scrollIntoView=xte;tt.singleValueAsValue=Ate;tt.supportsPassiveEvents=$te;tt.valueContainerCSS=Xte;tt.valueTernary=Dte});var a5=be(js=>{"use strict";var br=ja(),qn=da(),Ure=Cm(),Zre=Sm(),Yre=$m(),Kre=Am(),n5=Lu(),Zt=z(),Ge=Uv(),Qn=Ts(),Xre=(Zm(),li(Um)),Jre=fa();function qre(t){return t&&t.__esModule?t:{default:t}}function Qre(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var Rt=Qre(Zt),ene=qre(Xre);function tne(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var rne=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:tne},nne=function(e){return Qn.jsx("span",br({css:rne},e))},fN=nne,one={guidance:function(e){var r=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(r?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var r=e.action,n=e.label,o=n===void 0?"":n,a=e.labels,i=e.isDisabled;switch(r){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return i?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var r=e.context,n=e.focused,o=e.options,a=e.label,i=a===void 0?"":a,l=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,d=function(h,g){return h&&h.length?"".concat(h.indexOf(g)+1," of ").concat(h.length):""};if(r==="value"&&l)return"value ".concat(i," focused, ").concat(d(l,n),".");if(r==="menu"&&c){var f=s?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(i).concat(p,", ").concat(d(o,n),".")}return""},onFilter:function(e){var r=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(r?" for search term "+r:"",".")}},ane=function(e){var r=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,a=e.focusableOptions,i=e.isFocused,l=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,p=s.inputValue,m=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,y=s.options,x=s.screenReaderStatus,C=s.tabSelectsValue,w=s.isLoading,S=s["aria-label"],E=s["aria-live"],$=Zt.useMemo(function(){return qn(qn({},one),d||{})},[d]),T=Zt.useMemo(function(){var F="";if(r&&$.onChange){var j=r.option,R=r.options,O=r.removedValue,W=r.removedValues,A=r.value,N=function(G){return Array.isArray(G)?null:G},_=O||j||N(A),U=_?f(_):"",q=R||W||void 0,ue=q?q.map(f):[],ye=qn({isDisabled:_&&h(_,l),label:U,labels:ue},r);F=$.onChange(ye)}return F},[r,$,h,l,f]),D=Zt.useMemo(function(){var F="",j=n||o,R=!!(n&&l&&l.includes(n));if(j&&$.onFocus){var O={focused:j,label:f(j),isDisabled:h(j,l),isSelected:R,options:a,context:j===n?"menu":"value",selectValue:l,isAppleDevice:c};F=$.onFocus(O)}return F},[n,o,f,h,$,a,l,c]),L=Zt.useMemo(function(){var F="";if(v&&y.length&&!w&&$.onFilter){var j=x({count:a.length});F=$.onFilter({inputValue:p,resultsMessage:j})}return F},[a,p,v,$,y,x,w]),k=r?.action==="initial-input-focus",V=Zt.useMemo(function(){var F="";if($.guidance){var j=o?"value":v?"menu":"input";F=$.guidance({"aria-label":S,context:j,isDisabled:n&&h(n,l),isMulti:m,isSearchable:g,tabSelectsValue:C,isInitialFocus:k})}return F},[S,n,o,m,h,g,v,$,l,C,k]),P=Qn.jsx(Zt.Fragment,null,Qn.jsx("span",{id:"aria-selection"},T),Qn.jsx("span",{id:"aria-focused"},D),Qn.jsx("span",{id:"aria-results"},L),Qn.jsx("span",{id:"aria-guidance"},V));return Qn.jsx(Zt.Fragment,null,Qn.jsx(fN,{id:u},k&&P),Qn.jsx(fN,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!k&&P))},ine=ane,r5=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],sne=new RegExp("["+r5.map(function(t){return t.letters}).join("")+"]","g"),EN={};for(Zv=0;Zv<r5.length;Zv++)for(Yv=r5[Zv],Kv=0;Kv<Yv.letters.length;Kv++)EN[Yv.letters[Kv]]=Yv.base;var Yv,Kv,Zv,$N=function(e){return e.replace(sne,function(r){return EN[r]})},lne=ene.default($N),pN=function(e){return e.replace(/^\s+|\s+$/g,"")},une=function(e){return"".concat(e.label," ").concat(e.value)},TN=function(e){return function(r,n){if(r.data.__isNew__)return!0;var o=qn({ignoreCase:!0,ignoreAccents:!0,stringify:une,trim:!0,matchFrom:"any"},e),a=o.ignoreCase,i=o.ignoreAccents,l=o.stringify,s=o.trim,u=o.matchFrom,c=s?pN(n):n,d=s?pN(l(r)):l(r);return a&&(c=c.toLowerCase(),d=d.toLowerCase()),i&&(c=lne(c),d=$N(d)),u==="start"?d.substr(0,c.length)===c:d.indexOf(c)>-1}},cne=["innerRef"];function dne(t){var e=t.innerRef,r=Jre(t,cne),n=Ge.removeProps(r,"onExited","in","enter","exit","appear");return Qn.jsx("input",br({ref:e},n,{css:Qn.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fne=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function pne(t){var e=t.isEnabled,r=t.onBottomArrive,n=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,i=Zt.useRef(!1),l=Zt.useRef(!1),s=Zt.useRef(0),u=Zt.useRef(null),c=Zt.useCallback(function(g,v){if(u.current!==null){var y=u.current,x=y.scrollTop,C=y.scrollHeight,w=y.clientHeight,S=u.current,E=v>0,$=C-w-x,T=!1;$>v&&i.current&&(n&&n(g),i.current=!1),E&&l.current&&(a&&a(g),l.current=!1),E&&v>$?(r&&!i.current&&r(g),S.scrollTop=C,T=!0,i.current=!0):!E&&-v>x&&(o&&!l.current&&o(g),S.scrollTop=0,T=!0,l.current=!0),T&&fne(g)}},[r,n,o,a]),d=Zt.useCallback(function(g){c(g,g.deltaY)},[c]),f=Zt.useCallback(function(g){s.current=g.changedTouches[0].clientY},[]),p=Zt.useCallback(function(g){var v=s.current-g.changedTouches[0].clientY;c(g,v)},[c]),m=Zt.useCallback(function(g){if(g){var v=Ge.supportsPassiveEvents?{passive:!1}:!1;g.addEventListener("wheel",d,v),g.addEventListener("touchstart",f,v),g.addEventListener("touchmove",p,v)}},[p,f,d]),h=Zt.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",f,!1),g.removeEventListener("touchmove",p,!1))},[p,f,d]);return Zt.useEffect(function(){if(e){var g=u.current;return m(g),function(){h(g)}}},[e,m,h]),function(g){u.current=g}}var mN=["boxSizing","height","overflow","paddingRight","position"],gN={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function hN(t){t.cancelable&&t.preventDefault()}function vN(t){t.stopPropagation()}function bN(){var t=this.scrollTop,e=this.scrollHeight,r=t+this.offsetHeight;t===0?this.scrollTop=1:r===e&&(this.scrollTop=t-1)}function yN(){return"ontouchstart"in window||navigator.maxTouchPoints}var xN=!!(typeof window<"u"&&window.document&&window.document.createElement),Km=0,Dd={capture:!1,passive:!1};function mne(t){var e=t.isEnabled,r=t.accountForScrollbars,n=r===void 0?!0:r,o=Zt.useRef({}),a=Zt.useRef(null),i=Zt.useCallback(function(s){if(xN){var u=document.body,c=u&&u.style;if(n&&mN.forEach(function(m){var h=c&&c[m];o.current[m]=h}),n&&Km<1){var d=parseInt(o.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+d||0;Object.keys(gN).forEach(function(m){var h=gN[m];c&&(c[m]=h)}),c&&(c.paddingRight="".concat(p,"px"))}u&&yN()&&(u.addEventListener("touchmove",hN,Dd),s&&(s.addEventListener("touchstart",bN,Dd),s.addEventListener("touchmove",vN,Dd))),Km+=1}},[n]),l=Zt.useCallback(function(s){if(xN){var u=document.body,c=u&&u.style;Km=Math.max(Km-1,0),n&&Km<1&&mN.forEach(function(d){var f=o.current[d];c&&(c[d]=f)}),u&&yN()&&(u.removeEventListener("touchmove",hN,Dd),s&&(s.removeEventListener("touchstart",bN,Dd),s.removeEventListener("touchmove",vN,Dd)))}},[n]);return Zt.useEffect(function(){if(e){var s=a.current;return i(s),function(){l(s)}}},[e,i,l]),function(s){a.current=s}}function gne(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var hne=function(e){var r=e.target;return r.ownerDocument.activeElement&&r.ownerDocument.activeElement.blur()},vne=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:gne};function bne(t){var e=t.children,r=t.lockEnabled,n=t.captureEnabled,o=n===void 0?!0:n,a=t.onBottomArrive,i=t.onBottomLeave,l=t.onTopArrive,s=t.onTopLeave,u=pne({isEnabled:o,onBottomArrive:a,onBottomLeave:i,onTopArrive:l,onTopLeave:s}),c=mne({isEnabled:r}),d=function(p){u(p),c(p)};return Qn.jsx(Zt.Fragment,null,r&&Qn.jsx("div",{onClick:hne,css:vne}),e(d))}function yne(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var xne=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:yne},Cne=function(e){var r=e.name,n=e.onFocus;return Qn.jsx("input",{required:!0,name:r,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:xne,value:"",onChange:function(){}})},wne=Cne;function o5(t){var e;return typeof window<"u"&&window.navigator!=null?t.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Sne(){return o5(/^iPhone/i)}function IN(){return o5(/^Mac/i)}function Ene(){return o5(/^iPad/i)||IN()&&navigator.maxTouchPoints>1}function $ne(){return Sne()||Ene()}function Tne(){return IN()||$ne()}var Ine=function(e){return e.label},DN=function(e){return e.label},AN=function(e){return e.value},Dne=function(e){return!!e.isDisabled},Ane={clearIndicator:Ge.clearIndicatorCSS,container:Ge.containerCSS,control:Ge.css,dropdownIndicator:Ge.dropdownIndicatorCSS,group:Ge.groupCSS,groupHeading:Ge.groupHeadingCSS,indicatorsContainer:Ge.indicatorsContainerCSS,indicatorSeparator:Ge.indicatorSeparatorCSS,input:Ge.inputCSS,loadingIndicator:Ge.loadingIndicatorCSS,loadingMessage:Ge.loadingMessageCSS,menu:Ge.menuCSS,menuList:Ge.menuListCSS,menuPortal:Ge.menuPortalCSS,multiValue:Ge.multiValueCSS,multiValueLabel:Ge.multiValueLabelCSS,multiValueRemove:Ge.multiValueRemoveCSS,noOptionsMessage:Ge.noOptionsMessageCSS,option:Ge.optionCSS,placeholder:Ge.placeholderCSS,singleValue:Ge.css$1,valueContainer:Ge.valueContainerCSS};function Lne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=qn({},t);return Object.keys(e).forEach(function(n){var o=n;t[o]?r[o]=function(a,i){return e[o](t[o](a,i),i)}:r[o]=e[o]}),r}var _ne={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Mne=4,LN=4,Nne=38,kne=LN*2,Pne={baseUnit:LN,controlHeight:Nne,menuGutter:kne},Xv={borderRadius:Mne,colors:_ne,spacing:Pne},_N={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ge.isTouchCapable(),captureMenuScroll:!Ge.isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:TN(),formatGroupLabel:Ine,getOptionLabel:DN,getOptionValue:AN,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Dne,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Ge.isMobileDevice(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var r=e.count;return"".concat(r," result").concat(r!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function CN(t,e,r,n){var o=kN(t,e,r),a=PN(t,e,r),i=NN(t,e),l=qv(t,e);return{type:"option",data:e,isDisabled:o,isSelected:a,label:i,value:l,index:n}}function Jv(t,e){return t.options.map(function(r,n){if("options"in r){var o=r.options.map(function(i,l){return CN(t,i,e,l)}).filter(function(i){return SN(t,i)});return o.length>0?{type:"group",data:r,options:o,index:n}:void 0}var a=CN(t,r,e,n);return SN(t,a)?a:void 0}).filter(Ge.notNullish)}function MN(t){return t.reduce(function(e,r){return r.type==="group"?e.push.apply(e,n5(r.options.map(function(n){return n.data}))):e.push(r.data),e},[])}function wN(t,e){return t.reduce(function(r,n){return n.type==="group"?r.push.apply(r,n5(n.options.map(function(o){return{data:o.data,id:"".concat(e,"-").concat(n.index,"-").concat(o.index)}}))):r.push({data:n.data,id:"".concat(e,"-").concat(n.index)}),r},[])}function One(t,e){return MN(Jv(t,e))}function SN(t,e){var r=t.inputValue,n=r===void 0?"":r,o=e.data,a=e.isSelected,i=e.label,l=e.value;return(!RN(t)||!a)&&ON(t,{label:i,value:l,data:o},n)}function Rne(t,e){var r=t.focusedValue,n=t.selectValue,o=n.indexOf(r);if(o>-1){var a=e.indexOf(r);if(a>-1)return r;if(o<e.length)return e[o]}return null}function Fne(t,e){var r=t.focusedOption;return r&&e.indexOf(r)>-1?r:e[0]}var t5=function(e,r){var n,o=(n=e.find(function(a){return a.data===r}))===null||n===void 0?void 0:n.id;return o||null},NN=function(e,r){return e.getOptionLabel(r)},qv=function(e,r){return e.getOptionValue(r)};function kN(t,e,r){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(e,r):!1}function PN(t,e,r){if(r.indexOf(e)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(e,r);var n=qv(t,e);return r.some(function(o){return qv(t,o)===n})}function ON(t,e,r){return t.filterOption?t.filterOption(e,r):!0}var RN=function(e){var r=e.hideSelectedOptions,n=e.isMulti;return r===void 0?n:r},Bne=1,FN=function(t){Yre(r,t);var e=Kre(r);function r(n){var o;if(Ure(this,r),o=e.call(this,n),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(s){o.controlRef=s},o.focusedOptionRef=null,o.getFocusedOptionRef=function(s){o.focusedOptionRef=s},o.menuListRef=null,o.getMenuListRef=function(s){o.menuListRef=s},o.inputRef=null,o.getInputRef=function(s){o.inputRef=s},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(s,u){var c=o.props,d=c.onChange,f=c.name;u.name=f,o.ariaOnChange(s,u),d(s,u)},o.setValue=function(s,u,c){var d=o.props,f=d.closeMenuOnSelect,p=d.isMulti,m=d.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(s,{action:u,option:c})},o.selectOption=function(s){var u=o.props,c=u.blurInputOnSelect,d=u.isMulti,f=u.name,p=o.state.selectValue,m=d&&o.isOptionSelected(s,p),h=o.isOptionDisabled(s,p);if(m){var g=o.getOptionValue(s);o.setValue(Ge.multiValueAsValue(p.filter(function(v){return o.getOptionValue(v)!==g})),"deselect-option",s)}else if(!h)d?o.setValue(Ge.multiValueAsValue([].concat(n5(p),[s])),"select-option",s):o.setValue(Ge.singleValueAsValue(s),"select-option");else{o.ariaOnChange(Ge.singleValueAsValue(s),{action:"select-option",option:s,name:f});return}c&&o.blurInput()},o.removeValue=function(s){var u=o.props.isMulti,c=o.state.selectValue,d=o.getOptionValue(s),f=c.filter(function(m){return o.getOptionValue(m)!==d}),p=Ge.valueTernary(u,f,f[0]||null);o.onChange(p,{action:"remove-value",removedValue:s}),o.focusInput()},o.clearValue=function(){var s=o.state.selectValue;o.onChange(Ge.valueTernary(o.props.isMulti,[],null),{action:"clear",removedValues:s})},o.popValue=function(){var s=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],d=u.slice(0,u.length-1),f=Ge.valueTernary(s,d,d[0]||null);c&&o.onChange(f,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(s){return t5(o.state.focusableOptionsWithIds,s)},o.getFocusableOptionsWithIds=function(){return wN(Jv(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return Ge.classNames.apply(void 0,[o.props.classNamePrefix].concat(u))},o.getOptionLabel=function(s){return NN(o.props,s)},o.getOptionValue=function(s){return qv(o.props,s)},o.getStyles=function(s,u){var c=o.props.unstyled,d=Ane[s](u,c);d.boxSizing="border-box";var f=o.props.styles[s];return f?f(d,u):d},o.getClassNames=function(s,u){var c,d;return(c=(d=o.props.classNames)[s])===null||c===void 0?void 0:c.call(d,u)},o.getElementId=function(s){return"".concat(o.state.instancePrefix,"-").concat(s)},o.getComponents=function(){return Ge.defaultComponents(o.props)},o.buildCategorizedOptions=function(){return Jv(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return MN(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(s,u){o.setState({ariaSelection:qn({value:s},u)})},o.onMenuMouseDown=function(s){s.button===0&&(s.stopPropagation(),s.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(s){o.blockOptionHover=!1},o.onControlMouseDown=function(s){if(!s.defaultPrevented){var u=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&o.onMenuClose():u&&o.openMenu("first"):(u&&(o.openAfterFocus=!0),o.focusInput()),s.target.tagName!=="INPUT"&&s.target.tagName!=="TEXTAREA"&&s.preventDefault()}},o.onDropdownIndicatorMouseDown=function(s){if(!(s&&s.type==="mousedown"&&s.button!==0)&&!o.props.isDisabled){var u=o.props,c=u.isMulti,d=u.menuIsOpen;o.focusInput(),d?(o.setState({inputIsHiddenAfterUpdate:!c}),o.onMenuClose()):o.openMenu("first"),s.preventDefault()}},o.onClearIndicatorMouseDown=function(s){s&&s.type==="mousedown"&&s.button!==0||(o.clearValue(),s.preventDefault(),o.openAfterFocus=!1,s.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(s){typeof o.props.closeMenuOnScroll=="boolean"?s.target instanceof HTMLElement&&Ge.isDocumentElement(s.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(s)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(s){var u=s.touches,c=u&&u.item(0);c&&(o.initialTouchX=c.clientX,o.initialTouchY=c.clientY,o.userIsDragging=!1)},o.onTouchMove=function(s){var u=s.touches,c=u&&u.item(0);if(c){var d=Math.abs(c.clientX-o.initialTouchX),f=Math.abs(c.clientY-o.initialTouchY),p=5;o.userIsDragging=d>p||f>p}},o.onTouchEnd=function(s){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(s.target)&&o.menuListRef&&!o.menuListRef.contains(s.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(s){o.userIsDragging||o.onControlMouseDown(s)},o.onClearIndicatorTouchEnd=function(s){o.userIsDragging||o.onClearIndicatorMouseDown(s)},o.onDropdownIndicatorTouchEnd=function(s){o.userIsDragging||o.onDropdownIndicatorMouseDown(s)},o.handleInputChange=function(s){var u=o.props.inputValue,c=s.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(s){o.props.onFocus&&o.props.onFocus(s),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(s){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(s),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(s){if(!(o.blockOptionHover||o.state.focusedOption===s)){var u=o.getFocusableOptions(),c=u.indexOf(s);o.setState({focusedOption:s,focusedOptionId:c>-1?o.getFocusedOptionId(s):null})}},o.shouldHideSelectedOptions=function(){return RN(o.props)},o.onValueInputFocus=function(s){s.preventDefault(),s.stopPropagation(),o.focus()},o.onKeyDown=function(s){var u=o.props,c=u.isMulti,d=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,m=u.isClearable,h=u.isDisabled,g=u.menuIsOpen,v=u.onKeyDown,y=u.tabSelectsValue,x=u.openMenuOnFocus,C=o.state,w=C.focusedOption,S=C.focusedValue,E=C.selectValue;if(!h&&!(typeof v=="function"&&(v(s),s.defaultPrevented))){switch(o.blockOptionHover=!0,s.key){case"ArrowLeft":if(!c||p)return;o.focusValue("previous");break;case"ArrowRight":if(!c||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(S)o.removeValue(S);else{if(!d)return;c?o.popValue():m&&o.clearValue()}break;case"Tab":if(o.isComposing||s.shiftKey||!g||!y||!w||x&&o.isOptionSelected(w,E))return;o.selectOption(w);break;case"Enter":if(s.keyCode===229)break;if(g){if(!w||o.isComposing)return;o.selectOption(w);break}return;case"Escape":g?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):m&&f&&o.clearValue();break;case" ":if(p)return;if(!g){o.openMenu("first");break}if(!w)return;o.selectOption(w);break;case"ArrowUp":g?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":g?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!g)return;o.focusOption("pageup");break;case"PageDown":if(!g)return;o.focusOption("pagedown");break;case"Home":if(!g)return;o.focusOption("first");break;case"End":if(!g)return;o.focusOption("last");break;default:return}s.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++Bne),o.state.selectValue=Ge.cleanValue(n.value),n.menuIsOpen&&o.state.selectValue.length){var a=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),l=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=a,o.state.focusedOption=i[l],o.state.focusedOptionId=t5(a,i[l])}return o}return Zre(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ge.scrollIntoView(this.menuListRef,this.focusedOptionRef),Tne()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(o){var a=this.props,i=a.isDisabled,l=a.menuIsOpen,s=this.state.isFocused;(s&&!i&&o.isDisabled||s&&l&&!o.menuIsOpen)&&this.focusInput(),s&&i&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ge.scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,a){this.props.onInputChange(o,a)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var a=this,i=this.state,l=i.selectValue,s=i.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var d=u.indexOf(l[0]);d>-1&&(c=d)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(o){var a=this.state,i=a.selectValue,l=a.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(l);l||(s=-1);var u=i.length-1,c=-1;if(i.length){switch(o){case"previous":s===0?c=0:s===-1?c=u:c=s-1;break;case"next":s>-1&&s<u&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,i=this.state.focusedOption,l=this.getFocusableOptions();if(l.length){var s=0,u=l.indexOf(i);i||(u=-1),o==="up"?s=u>0?u-1:l.length-1:o==="down"?s=(u+1)%l.length:o==="pageup"?(s=u-a,s<0&&(s=0)):o==="pagedown"?(s=u+a,s>l.length-1&&(s=l.length-1)):o==="last"&&(s=l.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:l[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(l[s])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Xv):qn(qn({},Xv),this.props.theme):Xv}},{key:"getCommonProps",value:function(){var o=this.clearValue,a=this.cx,i=this.getStyles,l=this.getClassNames,s=this.getValue,u=this.selectOption,c=this.setValue,d=this.props,f=d.isMulti,p=d.isRtl,m=d.options,h=this.hasValue();return{clearValue:o,cx:a,getStyles:i,getClassNames:l,getValue:s,hasValue:h,isMulti:f,isRtl:p,options:m,selectOption:u,selectProps:d,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,a=o.isClearable,i=o.isMulti;return a===void 0?i:a}},{key:"isOptionDisabled",value:function(o,a){return kN(this.props,o,a)}},{key:"isOptionSelected",value:function(o,a){return PN(this.props,o,a)}},{key:"filterOption",value:function(o,a){return ON(this.props,o,a)}},{key:"formatOptionLabel",value:function(o,a){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,l=this.state.selectValue;return this.props.formatOptionLabel(o,{context:a,inputValue:i,selectValue:l})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,a=o.isDisabled,i=o.isSearchable,l=o.inputId,s=o.inputValue,u=o.tabIndex,c=o.form,d=o.menuIsOpen,f=o.required,p=this.getComponents(),m=p.Input,h=this.state,g=h.inputIsHidden,v=h.ariaSelection,y=this.commonProps,x=l||this.getElementId("input"),C=qn(qn(qn({"aria-autocomplete":"list","aria-expanded":d,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},d&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?v?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?Rt.createElement(m,br({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:x,innerRef:this.getInputRef,isDisabled:a,isHidden:g,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:s},C)):Rt.createElement(dne,br({id:x,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ge.noop,onFocus:this.onInputFocus,disabled:a,tabIndex:u,inputMode:"none",form:c,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,a=this.getComponents(),i=a.MultiValue,l=a.MultiValueContainer,s=a.MultiValueLabel,u=a.MultiValueRemove,c=a.SingleValue,d=a.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,h=p.isDisabled,g=p.isMulti,v=p.inputValue,y=p.placeholder,x=this.state,C=x.selectValue,w=x.focusedValue,S=x.isFocused;if(!this.hasValue()||!m)return v?null:Rt.createElement(d,br({},f,{key:"placeholder",isDisabled:h,isFocused:S,innerProps:{id:this.getElementId("placeholder")}}),y);if(g)return C.map(function($,T){var D=$===w,L="".concat(o.getOptionLabel($),"-").concat(o.getOptionValue($));return Rt.createElement(i,br({},f,{components:{Container:l,Label:s,Remove:u},isFocused:D,isDisabled:h,key:L,index:T,removeProps:{onClick:function(){return o.removeValue($)},onTouchEnd:function(){return o.removeValue($)},onMouseDown:function(V){V.preventDefault()}},data:$}),o.formatOptionLabel($,"value"))});if(v)return null;var E=C[0];return Rt.createElement(c,br({},f,{data:E,isDisabled:h}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),a=o.ClearIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!this.isClearable()||!a||s||!this.hasValue()||u)return null;var d={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return Rt.createElement(a,br({},i,{innerProps:d,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),a=o.LoadingIndicator,i=this.commonProps,l=this.props,s=l.isDisabled,u=l.isLoading,c=this.state.isFocused;if(!a||!u)return null;var d={"aria-hidden":"true"};return Rt.createElement(a,br({},i,{innerProps:d,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator,i=o.IndicatorSeparator;if(!a||!i)return null;var l=this.commonProps,s=this.props.isDisabled,u=this.state.isFocused;return Rt.createElement(i,br({},l,{isDisabled:s,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),a=o.DropdownIndicator;if(!a)return null;var i=this.commonProps,l=this.props.isDisabled,s=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return Rt.createElement(a,br({},i,{innerProps:u,isDisabled:l,isFocused:s}))}},{key:"renderMenu",value:function(){var o=this,a=this.getComponents(),i=a.Group,l=a.GroupHeading,s=a.Menu,u=a.MenuList,c=a.MenuPortal,d=a.LoadingMessage,f=a.NoOptionsMessage,p=a.Option,m=this.commonProps,h=this.state.focusedOption,g=this.props,v=g.captureMenuScroll,y=g.inputValue,x=g.isLoading,C=g.loadingMessage,w=g.minMenuHeight,S=g.maxMenuHeight,E=g.menuIsOpen,$=g.menuPlacement,T=g.menuPosition,D=g.menuPortalTarget,L=g.menuShouldBlockScroll,k=g.menuShouldScrollIntoView,V=g.noOptionsMessage,P=g.onMenuScrollToTop,F=g.onMenuScrollToBottom;if(!E)return null;var j=function(U,q){var ue=U.type,ye=U.data,H=U.isDisabled,G=U.isSelected,te=U.label,K=U.value,ne=h===ye,Z=H?void 0:function(){return o.onOptionHover(ye)},le=H?void 0:function(){return o.selectOption(ye)},Ce="".concat(o.getElementId("option"),"-").concat(q),we={id:Ce,onClick:le,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.state.isAppleDevice?void 0:G};return Rt.createElement(p,br({},m,{innerProps:we,data:ye,isDisabled:H,isSelected:G,key:Ce,label:te,type:ue,value:K,isFocused:ne,innerRef:ne?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(U.data,"menu"))},R;if(this.hasOptions())R=this.getCategorizedOptions().map(function(_){if(_.type==="group"){var U=_.data,q=_.options,ue=_.index,ye="".concat(o.getElementId("group"),"-").concat(ue),H="".concat(ye,"-heading");return Rt.createElement(i,br({},m,{key:ye,data:U,options:q,Heading:l,headingProps:{id:H,data:_.data},label:o.formatGroupLabel(_.data)}),_.options.map(function(G){return j(G,"".concat(ue,"-").concat(G.index))}))}else if(_.type==="option")return j(_,"".concat(_.index))});else if(x){var O=C({inputValue:y});if(O===null)return null;R=Rt.createElement(d,m,O)}else{var W=V({inputValue:y});if(W===null)return null;R=Rt.createElement(f,m,W)}var A={minMenuHeight:w,maxMenuHeight:S,menuPlacement:$,menuPosition:T,menuShouldScrollIntoView:k},N=Rt.createElement(Ge.MenuPlacer,br({},m,A),function(_){var U=_.ref,q=_.placerProps,ue=q.placement,ye=q.maxHeight;return Rt.createElement(s,br({},m,A,{innerRef:U,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:x,placement:ue}),Rt.createElement(bne,{captureEnabled:v,onTopArrive:P,onBottomArrive:F,lockEnabled:L},function(H){return Rt.createElement(u,br({},m,{innerRef:function(te){o.getMenuListRef(te),H(te)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:o.getElementId("listbox")},isLoading:x,maxHeight:ye,focusedOption:h}),R)}))});return D||T==="fixed"?Rt.createElement(c,br({},m,{appendTo:D,controlElement:this.controlRef,menuPlacement:$,menuPosition:T}),N):N}},{key:"renderFormField",value:function(){var o=this,a=this.props,i=a.delimiter,l=a.isDisabled,s=a.isMulti,u=a.name,c=a.required,d=this.state.selectValue;if(c&&!this.hasValue()&&!l)return Rt.createElement(wne,{name:u,onFocus:this.onValueInputFocus});if(!(!u||l))if(s)if(i){var f=d.map(function(h){return o.getOptionValue(h)}).join(i);return Rt.createElement("input",{name:u,type:"hidden",value:f})}else{var p=d.length>0?d.map(function(h,g){return Rt.createElement("input",{key:"i-".concat(g),name:u,type:"hidden",value:o.getOptionValue(h)})}):Rt.createElement("input",{name:u,type:"hidden",value:""});return Rt.createElement("div",null,p)}else{var m=d[0]?this.getOptionValue(d[0]):"";return Rt.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,a=this.state,i=a.ariaSelection,l=a.focusedOption,s=a.focusedValue,u=a.isFocused,c=a.selectValue,d=this.getFocusableOptions();return Rt.createElement(ine,br({},o,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:l,focusedValue:s,isFocused:u,selectValue:c,focusableOptions:d,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),a=o.Control,i=o.IndicatorsContainer,l=o.SelectContainer,s=o.ValueContainer,u=this.props,c=u.className,d=u.id,f=u.isDisabled,p=u.menuIsOpen,m=this.state.isFocused,h=this.commonProps=this.getCommonProps();return Rt.createElement(l,br({},h,{className:c,innerProps:{id:d,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),Rt.createElement(a,br({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),Rt.createElement(s,br({},h,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),Rt.createElement(i,br({},h,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,a){var i=a.prevProps,l=a.clearFocusValueOnUpdate,s=a.inputIsHiddenAfterUpdate,u=a.ariaSelection,c=a.isFocused,d=a.prevWasFocused,f=a.instancePrefix,p=o.options,m=o.value,h=o.menuIsOpen,g=o.inputValue,v=o.isMulti,y=Ge.cleanValue(m),x={};if(i&&(m!==i.value||p!==i.options||h!==i.menuIsOpen||g!==i.inputValue)){var C=h?One(o,y):[],w=h?wN(Jv(o,y),"".concat(f,"-option")):[],S=l?Rne(a,y):null,E=Fne(a,C),$=t5(w,E);x={selectValue:y,focusedOption:E,focusedOptionId:$,focusableOptionsWithIds:w,focusedValue:S,clearFocusValueOnUpdate:!1}}var T=s!=null&&o!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},D=u,L=c&&d;return c&&!L&&(D={value:Ge.valueTernary(v,y,y[0]||null),options:y,action:"initial-input-focus"},L=!d),u?.action==="initial-input-focus"&&(D=null),qn(qn(qn({},x),T),{},{prevProps:o,ariaSelection:D,prevWasFocused:L})}}]),r}(Zt.Component);FN.defaultProps=_N;js.Select=FN;js.createFilter=TN;js.defaultProps=_N;js.defaultTheme=Xv;js.getOptionLabel=DN;js.getOptionValue=AN;js.mergeStyles=Lne});var jN=be(VN=>{"use strict";var BN=da(),i5=_u(),Vne=fa(),Pu=z(),jne=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function zne(t){var e=t.defaultInputValue,r=e===void 0?"":e,n=t.defaultMenuIsOpen,o=n===void 0?!1:n,a=t.defaultValue,i=a===void 0?null:a,l=t.inputValue,s=t.menuIsOpen,u=t.onChange,c=t.onInputChange,d=t.onMenuClose,f=t.onMenuOpen,p=t.value,m=Vne(t,jne),h=Pu.useState(l!==void 0?l:r),g=i5(h,2),v=g[0],y=g[1],x=Pu.useState(s!==void 0?s:o),C=i5(x,2),w=C[0],S=C[1],E=Pu.useState(p!==void 0?p:i),$=i5(E,2),T=$[0],D=$[1],L=Pu.useCallback(function(O,W){typeof u=="function"&&u(O,W),D(O)},[u]),k=Pu.useCallback(function(O,W){var A;typeof c=="function"&&(A=c(O,W)),y(A!==void 0?A:O)},[c]),V=Pu.useCallback(function(){typeof f=="function"&&f(),S(!0)},[f]),P=Pu.useCallback(function(){typeof d=="function"&&d(),S(!1)},[d]),F=l!==void 0?l:v,j=s!==void 0?s:w,R=p!==void 0?p:T;return BN(BN({},m),{},{inputValue:F,menuIsOpen:j,onChange:L,onInputChange:k,onMenuClose:P,onMenuOpen:V,value:R})}VN.useStateManager=zne});var UN=be(GN=>{"use strict";var zN=da(),s5=Lu(),Hne=fa(),l5=z(),u5=Uv(),HN=a5(),Wne=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],WN=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=String(e).toLowerCase(),a=String(n.getOptionValue(r)).toLowerCase(),i=String(n.getOptionLabel(r)).toLowerCase();return a===o||i===o},c5={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,r,n,o){return!(!e||r.some(function(a){return WN(e,a,o)})||n.some(function(a){return WN(e,a,o)}))},getNewOptionData:function(e,r){return{label:r,value:e,__isNew__:!0}}};function Gne(t){var e=t.allowCreateWhileLoading,r=e===void 0?!1:e,n=t.createOptionPosition,o=n===void 0?"last":n,a=t.formatCreateLabel,i=a===void 0?c5.formatCreateLabel:a,l=t.isValidNewOption,s=l===void 0?c5.isValidNewOption:l,u=t.getNewOptionData,c=u===void 0?c5.getNewOptionData:u,d=t.onCreateOption,f=t.options,p=f===void 0?[]:f,m=t.onChange,h=Hne(t,Wne),g=h.getOptionValue,v=g===void 0?HN.getOptionValue:g,y=h.getOptionLabel,x=y===void 0?HN.getOptionLabel:y,C=h.inputValue,w=h.isLoading,S=h.isMulti,E=h.value,$=h.name,T=l5.useMemo(function(){return s(C,u5.cleanValue(E),p,{getOptionValue:v,getOptionLabel:x})?c(C,i(C)):void 0},[i,c,x,v,C,s,p,E]),D=l5.useMemo(function(){return(r||!w)&&T?o==="first"?[T].concat(s5(p)):[].concat(s5(p),[T]):p},[r,o,w,T,p]),L=l5.useCallback(function(k,V){if(V.action!=="select-option")return m(k,V);var P=Array.isArray(k)?k:[k];if(P[P.length-1]===T){if(d)d(C);else{var F=c(C,C),j={action:"create-option",name:$,option:F};m(u5.valueTernary(S,[].concat(s5(u5.cleanValue(E)),[F]),F),j)}return}m(k,V)},[c,C,S,$,T,d,m,E]);return zN(zN({},h),{},{options:D,onChange:L})}GN.useCreatable=Gne});var KN=be(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var Une=ja(),ZN=z(),Zne=a5(),Yne=jN(),YN=UN();da();Cm();Sm();$m();Am();Lu();Uv();Ts();_u();fa();Bs();Hm();Ed();Zn();Wm();Gm();Zm();function Kne(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var Xne=Kne(ZN),Jne=ZN.forwardRef(function(t,e){var r=Yne.useStateManager(t),n=YN.useCreatable(r);return Xne.createElement(Zne.Select,Une({ref:e},n))}),qne=Jne;Qv.useCreatable=YN.useCreatable;Qv.default=qne});var f5=be((l8e,d5)=>{"use strict";process.env.NODE_ENV==="production"?d5.exports=qM():d5.exports=KN()});var JN=be(XN=>{"use strict";XN._default=f5().default});var nO=be((VPe,rO)=>{"use strict";var eie=($l(),li(Mf)).GenIcon;rO.exports.TbCheck=function(e){return eie({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l5 5l10 -10"},child:[]}]})(e)}});var aO=be((jPe,oO)=>{"use strict";var tie=($l(),li(Mf)).GenIcon;oO.exports.TbMinus=function(e){return tie({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12l14 0"},child:[]}]})(e)}});var ZO=be((Pg,bw)=>{"use strict";(function(t,e){typeof Pg=="object"&&typeof bw=="object"?bw.exports=e(z()):typeof define=="function"&&define.amd?define(["react"],e):typeof Pg=="object"?Pg.ReactPaginate=e(z()):t.ReactPaginate=e(t.React)})(Pg,t=>(()=>{var e={703:(a,i,l)=>{"use strict";var s=l(414);function u(){}function c(){}c.resetWarningCache=u,a.exports=function(){function d(m,h,g,v,y,x){if(x!==s){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}function f(){return d}d.isRequired=d;var p={array:d,bigint:d,bool:d,func:d,number:d,object:d,string:d,symbol:d,any:d,arrayOf:f,element:d,elementType:d,instanceOf:f,node:d,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:c,resetWarningCache:u};return p.PropTypes=p,p}},697:(a,i,l)=>{a.exports=l(703)()},414:a=>{"use strict";a.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:a=>{"use strict";a.exports=t}},r={};function n(a){var i=r[a];if(i!==void 0)return i.exports;var l=r[a]={exports:{}};return e[a](l,l.exports,n),l.exports}n.n=a=>{var i=a&&a.__esModule?()=>a.default:()=>a;return n.d(i,{a:i}),i},n.d=(a,i)=>{for(var l in i)n.o(i,l)&&!n.o(a,l)&&Object.defineProperty(a,l,{enumerable:!0,get:i[l]})},n.o=(a,i)=>Object.prototype.hasOwnProperty.call(a,i),n.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{default:()=>T});var a=n(98),i=n.n(a),l=n(697),s=n.n(l);function u(){return u=Object.assign?Object.assign.bind():function(D){for(var L=1;L<arguments.length;L++){var k=arguments[L];for(var V in k)Object.prototype.hasOwnProperty.call(k,V)&&(D[V]=k[V])}return D},u.apply(this,arguments)}var c=function(D){var L=D.pageClassName,k=D.pageLinkClassName,V=D.page,P=D.selected,F=D.activeClassName,j=D.activeLinkClassName,R=D.getEventListener,O=D.pageSelectedHandler,W=D.href,A=D.extraAriaContext,N=D.pageLabelBuilder,_=D.rel,U=D.ariaLabel||"Page "+V+(A?" "+A:""),q=null;return P&&(q="page",U=D.ariaLabel||"Page "+V+" is your current page",L=L!==void 0?L+" "+F:F,k!==void 0?j!==void 0&&(k=k+" "+j):k=j),i().createElement("li",{className:L},i().createElement("a",u({rel:_,role:W?void 0:"button",className:k,href:W,tabIndex:P?"-1":"0","aria-label":U,"aria-current":q,onKeyPress:O},R(O)),N(V)))};c.propTypes={pageSelectedHandler:s().func.isRequired,selected:s().bool.isRequired,pageClassName:s().string,pageLinkClassName:s().string,activeClassName:s().string,activeLinkClassName:s().string,extraAriaContext:s().string,href:s().string,ariaLabel:s().string,page:s().number.isRequired,getEventListener:s().func.isRequired,pageLabelBuilder:s().func.isRequired,rel:s().string};let d=c;function f(){return f=Object.assign?Object.assign.bind():function(D){for(var L=1;L<arguments.length;L++){var k=arguments[L];for(var V in k)Object.prototype.hasOwnProperty.call(k,V)&&(D[V]=k[V])}return D},f.apply(this,arguments)}var p=function(D){var L=D.breakLabel,k=D.breakAriaLabel,V=D.breakClassName,P=D.breakLinkClassName,F=D.breakHandler,j=D.getEventListener,R=V||"break";return i().createElement("li",{className:R},i().createElement("a",f({className:P,role:"button",tabIndex:"0","aria-label":k,onKeyPress:F},j(F)),L))};p.propTypes={breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabel:s().string,breakClassName:s().string,breakLinkClassName:s().string,breakHandler:s().func.isRequired,getEventListener:s().func.isRequired};let m=p;function h(D){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return D??L}function g(D){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},g(D)}function v(){return v=Object.assign?Object.assign.bind():function(D){for(var L=1;L<arguments.length;L++){var k=arguments[L];for(var V in k)Object.prototype.hasOwnProperty.call(k,V)&&(D[V]=k[V])}return D},v.apply(this,arguments)}function y(D,L){for(var k=0;k<L.length;k++){var V=L[k];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(D,V.key,V)}}function x(D,L){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,V){return k.__proto__=V,k},x(D,L)}function C(D,L){if(L&&(g(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(D)}function w(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function S(D){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(L){return L.__proto__||Object.getPrototypeOf(L)},S(D)}function E(D,L,k){return L in D?Object.defineProperty(D,L,{value:k,enumerable:!0,configurable:!0,writable:!0}):D[L]=k,D}var $=function(D){(function(R,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(O&&O.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),O&&x(R,O)})(j,D);var L,k,V,P,F=(V=j,P=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var R,O=S(V);if(P){var W=S(this).constructor;R=Reflect.construct(O,arguments,W)}else R=O.apply(this,arguments);return C(this,R)});function j(R){var O,W;return function(A,N){if(!(A instanceof N))throw new TypeError("Cannot call a class as a function")}(this,j),E(w(O=F.call(this,R)),"handlePreviousPage",function(A){var N=O.state.selected;O.handleClick(A,null,N>0?N-1:void 0,{isPrevious:!0})}),E(w(O),"handleNextPage",function(A){var N=O.state.selected,_=O.props.pageCount;O.handleClick(A,null,N<_-1?N+1:void 0,{isNext:!0})}),E(w(O),"handlePageSelected",function(A,N){if(O.state.selected===A)return O.callActiveCallback(A),void O.handleClick(N,null,void 0,{isActive:!0});O.handleClick(N,null,A)}),E(w(O),"handlePageChange",function(A){O.state.selected!==A&&(O.setState({selected:A}),O.callCallback(A))}),E(w(O),"getEventListener",function(A){return E({},O.props.eventListener,A)}),E(w(O),"handleClick",function(A,N,_){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},q=U.isPrevious,ue=q!==void 0&&q,ye=U.isNext,H=ye!==void 0&&ye,G=U.isBreak,te=G!==void 0&&G,K=U.isActive,ne=K!==void 0&&K;A.preventDefault?A.preventDefault():A.returnValue=!1;var Z=O.state.selected,le=O.props.onClick,Ce=_;if(le){var we=le({index:N,selected:Z,nextSelectedPage:_,event:A,isPrevious:ue,isNext:H,isBreak:te,isActive:ne});if(we===!1)return;Number.isInteger(we)&&(Ce=we)}Ce!==void 0&&O.handlePageChange(Ce)}),E(w(O),"handleBreakClick",function(A,N){var _=O.state.selected;O.handleClick(N,A,_<A?O.getForwardJump():O.getBackwardJump(),{isBreak:!0})}),E(w(O),"callCallback",function(A){O.props.onPageChange!==void 0&&typeof O.props.onPageChange=="function"&&O.props.onPageChange({selected:A})}),E(w(O),"callActiveCallback",function(A){O.props.onPageActive!==void 0&&typeof O.props.onPageActive=="function"&&O.props.onPageActive({selected:A})}),E(w(O),"getElementPageRel",function(A){var N=O.state.selected,_=O.props,U=_.nextPageRel,q=_.prevPageRel,ue=_.selectedPageRel;return N-1===A?q:N===A?ue:N+1===A?U:void 0}),E(w(O),"pagination",function(){var A=[],N=O.props,_=N.pageRangeDisplayed,U=N.pageCount,q=N.marginPagesDisplayed,ue=N.breakLabel,ye=N.breakClassName,H=N.breakLinkClassName,G=N.breakAriaLabels,te=O.state.selected;if(U<=_)for(var K=0;K<U;K++)A.push(O.getPageElement(K));else{var ne=_/2,Z=_-ne;te>U-_/2?ne=_-(Z=U-te):te<_/2&&(Z=_-(ne=te));var le,Ce,we=function(he){return O.getPageElement(he)},ae=[];for(le=0;le<U;le++){var Se=le+1;if(Se<=q)ae.push({type:"page",index:le,display:we(le)});else if(Se>U-q)ae.push({type:"page",index:le,display:we(le)});else if(le>=te-ne&&le<=te+(te===0&&_>1?Z-1:Z))ae.push({type:"page",index:le,display:we(le)});else if(ue&&ae.length>0&&ae[ae.length-1].display!==Ce&&(_>0||q>0)){var xe=le<te?G.backward:G.forward;Ce=i().createElement(m,{key:le,breakAriaLabel:xe,breakLabel:ue,breakClassName:ye,breakLinkClassName:H,breakHandler:O.handleBreakClick.bind(null,le),getEventListener:O.getEventListener}),ae.push({type:"break",index:le,display:Ce})}}ae.forEach(function(he,ve){var Ie=he;he.type==="break"&&ae[ve-1]&&ae[ve-1].type==="page"&&ae[ve+1]&&ae[ve+1].type==="page"&&ae[ve+1].index-ae[ve-1].index<=2&&(Ie={type:"page",index:he.index,display:we(he.index)}),A.push(Ie.display)})}return A}),R.initialPage!==void 0&&R.forcePage!==void 0&&console.warn("(react-paginate): Both initialPage (".concat(R.initialPage,") and forcePage (").concat(R.forcePage,") props are provided, which is discouraged.")+` Use exclusively forcePage prop for a controlled component.
|
|
20
|
-
See https://reactjs.org/docs/forms.html#controlled-components`),W=R.initialPage?R.initialPage:R.forcePage?R.forcePage:0,O.state={selected:W},O}return L=j,(k=[{key:"componentDidMount",value:function(){var R=this.props,O=R.initialPage,W=R.disableInitialCallback,A=R.extraAriaContext,N=R.pageCount,_=R.forcePage;O===void 0||W||this.callCallback(O),A&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(N)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(N,"). Did you forget a Math.ceil()?")),O!==void 0&&O>N-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(O," > ").concat(N-1,").")),_!==void 0&&_>N-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(_," > ").concat(N-1,")."))}},{key:"componentDidUpdate",value:function(R){this.props.forcePage!==void 0&&this.props.forcePage!==R.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(R.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var R=this.state.selected,O=this.props,W=O.pageCount,A=R+O.pageRangeDisplayed;return A>=W?W-1:A}},{key:"getBackwardJump",value:function(){var R=this.state.selected-this.props.pageRangeDisplayed;return R<0?0:R}},{key:"getElementHref",value:function(R){var O=this.props,W=O.hrefBuilder,A=O.pageCount,N=O.hrefAllControls;if(W)return N||R>=0&&R<A?W(R+1,A,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(R){var O=R===this.state.selected;if(this.props.ariaLabelBuilder&&R>=0&&R<this.props.pageCount){var W=this.props.ariaLabelBuilder(R+1,O);return this.props.extraAriaContext&&!O&&(W=W+" "+this.props.extraAriaContext),W}}},{key:"getPageElement",value:function(R){var O=this.state.selected,W=this.props,A=W.pageClassName,N=W.pageLinkClassName,_=W.activeClassName,U=W.activeLinkClassName,q=W.extraAriaContext,ue=W.pageLabelBuilder;return i().createElement(d,{key:R,pageSelectedHandler:this.handlePageSelected.bind(null,R),selected:O===R,rel:this.getElementPageRel(R),pageClassName:A,pageLinkClassName:N,activeClassName:_,activeLinkClassName:U,extraAriaContext:q,href:this.getElementHref(R),ariaLabel:this.ariaLabelBuilder(R),page:R+1,pageLabelBuilder:ue,getEventListener:this.getEventListener})}},{key:"render",value:function(){var R=this.props.renderOnZeroPageCount;if(this.props.pageCount===0&&R!==void 0)return R&&R(this.props);var O=this.props,W=O.disabledClassName,A=O.disabledLinkClassName,N=O.pageCount,_=O.className,U=O.containerClassName,q=O.previousLabel,ue=O.previousClassName,ye=O.previousLinkClassName,H=O.previousAriaLabel,G=O.prevRel,te=O.nextLabel,K=O.nextClassName,ne=O.nextLinkClassName,Z=O.nextAriaLabel,le=O.nextRel,Ce=this.state.selected,we=Ce===0,ae=Ce===N-1,Se="".concat(h(ue)).concat(we?" ".concat(h(W)):""),xe="".concat(h(K)).concat(ae?" ".concat(h(W)):""),he="".concat(h(ye)).concat(we?" ".concat(h(A)):""),ve="".concat(h(ne)).concat(ae?" ".concat(h(A)):""),Ie=we?"true":"false",Oe=ae?"true":"false";return i().createElement("ul",{className:_||U,role:"navigation","aria-label":"Pagination"},i().createElement("li",{className:Se},i().createElement("a",v({className:he,href:this.getElementHref(Ce-1),tabIndex:we?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":Ie,"aria-label":H,rel:G},this.getEventListener(this.handlePreviousPage)),q)),this.pagination(),i().createElement("li",{className:xe},i().createElement("a",v({className:ve,href:this.getElementHref(Ce+1),tabIndex:ae?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":Oe,"aria-label":Z,rel:le},this.getEventListener(this.handleNextPage)),te)))}}])&&y(L.prototype,k),Object.defineProperty(L,"prototype",{writable:!1}),j}(a.Component);E($,"propTypes",{pageCount:s().number.isRequired,pageRangeDisplayed:s().number,marginPagesDisplayed:s().number,previousLabel:s().node,previousAriaLabel:s().string,prevPageRel:s().string,prevRel:s().string,nextLabel:s().node,nextAriaLabel:s().string,nextPageRel:s().string,nextRel:s().string,breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabels:s().shape({forward:s().string,backward:s().string}),hrefBuilder:s().func,hrefAllControls:s().bool,onPageChange:s().func,onPageActive:s().func,onClick:s().func,initialPage:s().number,forcePage:s().number,disableInitialCallback:s().bool,containerClassName:s().string,className:s().string,pageClassName:s().string,pageLinkClassName:s().string,pageLabelBuilder:s().func,activeClassName:s().string,activeLinkClassName:s().string,previousClassName:s().string,nextClassName:s().string,previousLinkClassName:s().string,nextLinkClassName:s().string,disabledClassName:s().string,disabledLinkClassName:s().string,breakClassName:s().string,breakLinkClassName:s().string,extraAriaContext:s().string,ariaLabelBuilder:s().func,eventListener:s().string,renderOnZeroPageCount:s().func,selectedPageRel:s().string}),E($,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(D){return D},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let T=$})(),o})())});var XO=be(Cw=>{"use strict";Object.defineProperty(Cw,"__esModule",{value:!0});var Tse=Zc(),yw=Kc(),xw=Yc();function Ise(t){return t&&t.__esModule?t:{default:t}}var Dse=Ise(Tse);function YO(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function KO(t,e,r){var n=[],o=xw.getRegisteredStyles(t,n,r);return n.length<2?r:o+e(n)}var Ase=function(e){var r=Dse.default(e);r.sheet.speedy=function(l){this.isSpeedy=l},r.compat=!0;var n=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered,void 0);return xw.insertStyles(r,d,!1),r.key+"-"+d.name},o=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered),f="animation-"+d.name;return YO(r,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered);YO(r,d)},i=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return KO(r.registered,n,Lse(u))};return{css:n,cx:i,injectGlobal:a,keyframes:o,hydrate:function(s){s.forEach(function(u){r.inserted[u]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:xw.getRegisteredStyles.bind(null,r.registered),merge:KO.bind(null,r.registered,n)}},Lse=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=t(o);else{a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};Cw.default=Ase});var JO=be(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var _se=XO();Zc();Kc();Yc();var oi=_se.default({key:"css"}),Mse=oi.flush,Nse=oi.hydrate,kse=oi.cx,Pse=oi.merge,Ose=oi.getRegisteredStyles,Rse=oi.injectGlobal,Fse=oi.keyframes,Bse=oi.css,Vse=oi.sheet,jse=oi.cache;Uo.cache=jse;Uo.css=Bse;Uo.cx=kse;Uo.flush=Mse;Uo.getRegisteredStyles=Ose;Uo.hydrate=Nse;Uo.injectGlobal=Rse;Uo.keyframes=Fse;Uo.merge=Pse;Uo.sheet=Vse});var wB=be((SXe,CB)=>{"use strict";var Gge=Object.prototype.hasOwnProperty,Uge=Object.prototype.toString;CB.exports=function(e,r,n){if(Uge.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(n,e[a],a,e);else for(var i in e)Gge.call(e,i)&&r.call(n,e[i],i,e)}});var cS=be((EXe,SB)=>{"use strict";var Zge=wB();SB.exports=Wt;function Wt(t,e,r){if(arguments.length===3)return Wt.set(t,e,r);if(arguments.length===2)return Wt.get(t,e);var n=Wt.bind(Wt,t);for(var o in Wt)Wt.hasOwnProperty(o)&&(n[o]=Wt[o].bind(n,t));return n}Wt.get=function(e,r){for(var n=Array.isArray(r)?r:Wt.parse(r),o=0;o<n.length;++o){var a=n[o];if(!(typeof e=="object"&&a in e))throw new Error("Invalid reference token: "+a);e=e[a]}return e};Wt.set=function(e,r,n){var o=Array.isArray(r)?r:Wt.parse(r),a=o[0];if(o.length===0)throw Error("Can not set the root object");for(var i=0;i<o.length-1;++i){var l=o[i];typeof l!="string"&&typeof l!="number"&&(l=String(l)),!(l==="__proto__"||l==="constructor"||l==="prototype")&&(l==="-"&&Array.isArray(e)&&(l=e.length),a=o[i+1],l in e||(a.match(/^(\d+|-)$/)?e[l]=[]:e[l]={}),e=e[l])}return a==="-"&&Array.isArray(e)&&(a=e.length),e[a]=n,this};Wt.remove=function(t,e){var r=Array.isArray(e)?e:Wt.parse(e),n=r[r.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var o=Wt.get(t,r.slice(0,-1));if(Array.isArray(o)){var a=+n;if(n===""&&isNaN(a))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(o,a,1)}else delete o[n]};Wt.dict=function(e,r){var n={};return Wt.walk(e,function(o,a){n[a]=o},r),n};Wt.walk=function(e,r,n){var o=[];n=n||function(a){var i=Object.prototype.toString.call(a);return i==="[object Object]"||i==="[object Array]"},function a(i){Zge(i,function(l,s){o.push(String(s)),n(l)?a(l):r(l,Wt.compile(o)),o.pop()})}(e)};Wt.has=function(e,r){try{Wt.get(e,r)}catch{return!1}return!0};Wt.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Wt.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};Wt.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Wt.unescape)};Wt.compile=function(e){return e.length===0?"":"/"+e.map(Wt.escape).join("/")}});import{z as dc}from"zod";var sE={displayName:"Ask Una",description:"Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices.",inputSchema:dc.object({question:dc.string().describe(`Prompt for the uniform docs AI assistant.
|
|
20
|
+
See https://reactjs.org/docs/forms.html#controlled-components`),W=R.initialPage?R.initialPage:R.forcePage?R.forcePage:0,O.state={selected:W},O}return L=j,(k=[{key:"componentDidMount",value:function(){var R=this.props,O=R.initialPage,W=R.disableInitialCallback,A=R.extraAriaContext,N=R.pageCount,_=R.forcePage;O===void 0||W||this.callCallback(O),A&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(N)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(N,"). Did you forget a Math.ceil()?")),O!==void 0&&O>N-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(O," > ").concat(N-1,").")),_!==void 0&&_>N-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(_," > ").concat(N-1,")."))}},{key:"componentDidUpdate",value:function(R){this.props.forcePage!==void 0&&this.props.forcePage!==R.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(R.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var R=this.state.selected,O=this.props,W=O.pageCount,A=R+O.pageRangeDisplayed;return A>=W?W-1:A}},{key:"getBackwardJump",value:function(){var R=this.state.selected-this.props.pageRangeDisplayed;return R<0?0:R}},{key:"getElementHref",value:function(R){var O=this.props,W=O.hrefBuilder,A=O.pageCount,N=O.hrefAllControls;if(W)return N||R>=0&&R<A?W(R+1,A,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(R){var O=R===this.state.selected;if(this.props.ariaLabelBuilder&&R>=0&&R<this.props.pageCount){var W=this.props.ariaLabelBuilder(R+1,O);return this.props.extraAriaContext&&!O&&(W=W+" "+this.props.extraAriaContext),W}}},{key:"getPageElement",value:function(R){var O=this.state.selected,W=this.props,A=W.pageClassName,N=W.pageLinkClassName,_=W.activeClassName,U=W.activeLinkClassName,q=W.extraAriaContext,ue=W.pageLabelBuilder;return i().createElement(d,{key:R,pageSelectedHandler:this.handlePageSelected.bind(null,R),selected:O===R,rel:this.getElementPageRel(R),pageClassName:A,pageLinkClassName:N,activeClassName:_,activeLinkClassName:U,extraAriaContext:q,href:this.getElementHref(R),ariaLabel:this.ariaLabelBuilder(R),page:R+1,pageLabelBuilder:ue,getEventListener:this.getEventListener})}},{key:"render",value:function(){var R=this.props.renderOnZeroPageCount;if(this.props.pageCount===0&&R!==void 0)return R&&R(this.props);var O=this.props,W=O.disabledClassName,A=O.disabledLinkClassName,N=O.pageCount,_=O.className,U=O.containerClassName,q=O.previousLabel,ue=O.previousClassName,ye=O.previousLinkClassName,H=O.previousAriaLabel,G=O.prevRel,te=O.nextLabel,K=O.nextClassName,ne=O.nextLinkClassName,Z=O.nextAriaLabel,le=O.nextRel,Ce=this.state.selected,we=Ce===0,ae=Ce===N-1,Se="".concat(h(ue)).concat(we?" ".concat(h(W)):""),xe="".concat(h(K)).concat(ae?" ".concat(h(W)):""),he="".concat(h(ye)).concat(we?" ".concat(h(A)):""),ve="".concat(h(ne)).concat(ae?" ".concat(h(A)):""),Ie=we?"true":"false",Oe=ae?"true":"false";return i().createElement("ul",{className:_||U,role:"navigation","aria-label":"Pagination"},i().createElement("li",{className:Se},i().createElement("a",v({className:he,href:this.getElementHref(Ce-1),tabIndex:we?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":Ie,"aria-label":H,rel:G},this.getEventListener(this.handlePreviousPage)),q)),this.pagination(),i().createElement("li",{className:xe},i().createElement("a",v({className:ve,href:this.getElementHref(Ce+1),tabIndex:ae?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":Oe,"aria-label":Z,rel:le},this.getEventListener(this.handleNextPage)),te)))}}])&&y(L.prototype,k),Object.defineProperty(L,"prototype",{writable:!1}),j}(a.Component);E($,"propTypes",{pageCount:s().number.isRequired,pageRangeDisplayed:s().number,marginPagesDisplayed:s().number,previousLabel:s().node,previousAriaLabel:s().string,prevPageRel:s().string,prevRel:s().string,nextLabel:s().node,nextAriaLabel:s().string,nextPageRel:s().string,nextRel:s().string,breakLabel:s().oneOfType([s().string,s().node]),breakAriaLabels:s().shape({forward:s().string,backward:s().string}),hrefBuilder:s().func,hrefAllControls:s().bool,onPageChange:s().func,onPageActive:s().func,onClick:s().func,initialPage:s().number,forcePage:s().number,disableInitialCallback:s().bool,containerClassName:s().string,className:s().string,pageClassName:s().string,pageLinkClassName:s().string,pageLabelBuilder:s().func,activeClassName:s().string,activeLinkClassName:s().string,previousClassName:s().string,nextClassName:s().string,previousLinkClassName:s().string,nextLinkClassName:s().string,disabledClassName:s().string,disabledLinkClassName:s().string,breakClassName:s().string,breakLinkClassName:s().string,extraAriaContext:s().string,ariaLabelBuilder:s().func,eventListener:s().string,renderOnZeroPageCount:s().func,selectedPageRel:s().string}),E($,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(D){return D},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});let T=$})(),o})())});var XO=be(Cw=>{"use strict";Object.defineProperty(Cw,"__esModule",{value:!0});var Tse=Zc(),yw=Kc(),xw=Yc();function Ise(t){return t&&t.__esModule?t:{default:t}}var Dse=Ise(Tse);function YO(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function KO(t,e,r){var n=[],o=xw.getRegisteredStyles(t,n,r);return n.length<2?r:o+e(n)}var Ase=function(e){var r=Dse.default(e);r.sheet.speedy=function(l){this.isSpeedy=l},r.compat=!0;var n=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered,void 0);return xw.insertStyles(r,d,!1),r.key+"-"+d.name},o=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered),f="animation-"+d.name;return YO(r,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},a=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=yw.serializeStyles(u,r.registered);YO(r,d)},i=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return KO(r.registered,n,Lse(u))};return{css:n,cx:i,injectGlobal:a,keyframes:o,hydrate:function(s){s.forEach(function(u){r.inserted[u]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:xw.getRegisteredStyles.bind(null,r.registered),merge:KO.bind(null,r.registered,n)}},Lse=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))a=t(o);else{a="";for(var i in o)o[i]&&i&&(a&&(a+=" "),a+=i)}break}default:a=o}a&&(r&&(r+=" "),r+=a)}}return r};Cw.default=Ase});var JO=be(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var _se=XO();Zc();Kc();Yc();var oi=_se.default({key:"css"}),Mse=oi.flush,Nse=oi.hydrate,kse=oi.cx,Pse=oi.merge,Ose=oi.getRegisteredStyles,Rse=oi.injectGlobal,Fse=oi.keyframes,Bse=oi.css,Vse=oi.sheet,jse=oi.cache;Uo.cache=jse;Uo.css=Bse;Uo.cx=kse;Uo.flush=Mse;Uo.getRegisteredStyles=Ose;Uo.hydrate=Nse;Uo.injectGlobal=Rse;Uo.keyframes=Fse;Uo.merge=Pse;Uo.sheet=Vse});var wB=be((EXe,CB)=>{"use strict";var Gge=Object.prototype.hasOwnProperty,Uge=Object.prototype.toString;CB.exports=function(e,r,n){if(Uge.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(n,e[a],a,e);else for(var i in e)Gge.call(e,i)&&r.call(n,e[i],i,e)}});var cS=be(($Xe,SB)=>{"use strict";var Zge=wB();SB.exports=Wt;function Wt(t,e,r){if(arguments.length===3)return Wt.set(t,e,r);if(arguments.length===2)return Wt.get(t,e);var n=Wt.bind(Wt,t);for(var o in Wt)Wt.hasOwnProperty(o)&&(n[o]=Wt[o].bind(n,t));return n}Wt.get=function(e,r){for(var n=Array.isArray(r)?r:Wt.parse(r),o=0;o<n.length;++o){var a=n[o];if(!(typeof e=="object"&&a in e))throw new Error("Invalid reference token: "+a);e=e[a]}return e};Wt.set=function(e,r,n){var o=Array.isArray(r)?r:Wt.parse(r),a=o[0];if(o.length===0)throw Error("Can not set the root object");for(var i=0;i<o.length-1;++i){var l=o[i];typeof l!="string"&&typeof l!="number"&&(l=String(l)),!(l==="__proto__"||l==="constructor"||l==="prototype")&&(l==="-"&&Array.isArray(e)&&(l=e.length),a=o[i+1],l in e||(a.match(/^(\d+|-)$/)?e[l]=[]:e[l]={}),e=e[l])}return a==="-"&&Array.isArray(e)&&(a=e.length),e[a]=n,this};Wt.remove=function(t,e){var r=Array.isArray(e)?e:Wt.parse(e),n=r[r.length-1];if(n===void 0)throw new Error('Invalid JSON pointer for remove: "'+e+'"');var o=Wt.get(t,r.slice(0,-1));if(Array.isArray(o)){var a=+n;if(n===""&&isNaN(a))throw new Error('Invalid array index: "'+n+'"');Array.prototype.splice.call(o,a,1)}else delete o[n]};Wt.dict=function(e,r){var n={};return Wt.walk(e,function(o,a){n[a]=o},r),n};Wt.walk=function(e,r,n){var o=[];n=n||function(a){var i=Object.prototype.toString.call(a);return i==="[object Object]"||i==="[object Array]"},function a(i){Zge(i,function(l,s){o.push(String(s)),n(l)?a(l):r(l,Wt.compile(o)),o.pop()})}(e)};Wt.has=function(e,r){try{Wt.get(e,r)}catch{return!1}return!0};Wt.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")};Wt.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")};Wt.parse=function(e){if(e==="")return[];if(e.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(Wt.unescape)};Wt.compile=function(e){return e.length===0?"":"/"+e.map(Wt.escape).join("/")}});import{z as dc}from"zod";var sE={displayName:"Ask Una",description:"Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices.",inputSchema:dc.object({question:dc.string().describe(`Prompt for the uniform docs AI assistant.
|
|
21
21
|
The prompt should describe the information you are looking for.
|
|
22
22
|
You may be detailed but do not use more than 100 words.
|
|
23
23
|
When answering a user question, your prompt should be exactly that question.`)}),outputSchema:dc.object({success:dc.boolean(),error:dc.string().optional().describe("The error message if the question was not answered successfully"),answerMarkdown:dc.string().describe("The answer, in markdown format, from the Uniform docs chatbot")}),runsAt:"server",timeout:60,callable:!0};function lE(t,e){t.tool("askQuestion","Ask the Uniform Docs assistant, Una, questions about Uniform features, usage, and best practices",sE.inputSchema.shape,async r=>{let n=await e.toolInvoker.invoke("askQuestion",r);return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}})}import{autoFixParameterGroups as pE,CanvasClient as wz}from"@uniformdev/canvas";import*as Bh from"zod/v3";import az from"fast-json-patch";function kh(t,e){return az.applyPatch(t,e).newDocument}import*as $a from"zod/v3";var Ph=$a.array($a.object({op:$a.enum(["add","remove","replace"]),path:$a.string().describe("The JSON path to patch"),value:$a.unknown().describe("The value to patch - for remove, leave this blank")}));function iz(t){return Array.isArray(t)&&t.length>0}function uE(t){return!!t&&typeof t=="object"&&"type"in t}function cE(t){return typeof t=="object"&&t!==null&&"root"in t&&uE(t.root)}function Tl(t){return"children"in t&&iz(t.children)}var sz=({context:t,renderChildren:e})=>Tl(t.currentNode)?`${e(t.currentNode.children)} `:"";var lz=({context:t,renderChildren:e})=>{if(!Tl(t.currentNode))return"";let r=e(t.currentNode.children);return r.endsWith(" ")?r:`${r} `};var uz=({context:t,renderChildren:e})=>Tl(t.currentNode)?`${e(t.currentNode.children)} `:"";var cz=({context:t,renderChildren:e})=>Tl(t.currentNode)?`${e(t.currentNode.children)} `:"";var dz=({context:t,renderChildren:e})=>Tl(t.currentNode)?`${e(t.currentNode.children)} `:"";var fz=({context:t,renderChildren:e})=>Tl(t.currentNode)?`${e(t.currentNode.children)} `:"";var pz=({context:t})=>t.currentNode.text;var mz=()=>" ";var gz=()=>" ",hz=new Map([["text",pz],["tab",mz],["linebreak",gz],["paragraph",uz],["listitem",lz],["heading",sz],["table",cz],["tablecell",dz],["tablerow",fz]]),vz=t=>{let e=hz.get(t.currentNode.type);return e||(({context:r,renderChildren:n})=>Tl(r.currentNode)?n(r.currentNode.children):"")};function bz(t,e){let r=[];return e?.ancestorNodes&&(r=r.concat(e.ancestorNodes)),e?.currentNode&&r.unshift(e.currentNode),{...e??{},currentNode:t,ancestorNodes:r}}function H2(t,e){var r;if(!uE(t))return"";let n=bz(t,e),o=(r=n.resolveRenderer)==null?void 0:r.call(n,n);if(typeof o>"u")o=vz(n);else if(o===null)return"";let a=i=>yz(i,n);if(o){let i=o({context:n,renderChildren:a});return n.ancestorNodes.length>0?i:i.trim()}else throw new Error(`There is no renderer for node type: ${n.currentNode.type}`)}function yz(t,e){return Array.isArray(t)?t.map(r=>H2(r,e)).join(""):""}var xz=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],Cz=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var Oh={required:!1,formatting:{builtIn:Cz.map(t=>t.type)},elements:{builtIn:xz.map(t=>t.type)},elementsConfig:{asset:{allowedTypes:["image"]}}};import*as Dr from"zod/v3";import*as $t from"zod/v3";var Rh=$t.object({name:$t.string().describe('Title-cased display name. Ex: "Headline"'),id:$t.string().describe("The public ID. Must be unique within the current entity fields/parameters."),type:$t.enum(["text","richText","select","multi-select","number","date","dateTime","checkbox","link","asset","json","contentReference","$enr","group"]).describe("The data type of the property. The group type defines a grouping of other properties."),guidance:$t.string().describe('Describe what kind of content should be populated, for a LLM to use as a guide. 1-2 sentences max. Ex: "Meta tags based on the content", "2-3 word headline"'),localizable:$t.boolean().describe("Whether values are stored as locale-specific"),typeConfig:$t.object({allowedTypes:$t.array($t.enum(["image","video","audio","other"])).optional().describe("The types of asset allowed. ONLY applies when type=asset, omit for other types"),options:$t.array($t.object({text:$t.string().describe("The text to display to the author"),value:$t.string().describe("The value to store for the option")})).optional().describe("The author-selectable options for the select property. ONLY applies when type=select or multi-select, omit for other types"),required:$t.boolean().optional().describe("Whether an author must enter a value for this property"),min:$t.number().optional().describe("When type=number, this is the smallest allowed value (omit for no minimum). When type=multi-select, this is the minimum number of selections the author must make (omit for no minimum). When type=reference and isMulti=true, this is the minimum number of references the author must select (omit for no minimum). Omit for all other types."),max:$t.number().optional().describe("When type=number, this is the largest allowed value (omit for no maximum). When type=multi-select, this is the maximum number of selections the author can make (omit for no maximum). When type=reference and isMulti=true, this is the maximum number of references the author can select (omit for no maximum). Omit for all other types."),allowedContentTypes:$t.array($t.string()).optional().describe("When type=reference, this is a list of content type public IDs the author can reference. The content type ID must already exist. Omit for all other types."),isMulti:$t.boolean().optional().describe("When type=reference, this is whether the author can select multiple referenced entries. When false, only one reference is allowed. Omit for all other types."),childrenParams:$t.array($t.string()).optional().describe("When type=group, this is a list of public IDs of the properties to group. The property ID must be defined within this definition. Omit for all other types."),collapsed:$t.boolean().optional().describe("When type=group, this is whether the group is collapsed by default."),schema:$t.any().describe("When type=json, this is an optional JSON schema the property value must follow. Omit for all other types.")}).optional()});var dE=Dr.object({name:Dr.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:Dr.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),description:Dr.string().describe('Describe the purpose of the component in 1-2 sentences. If the component seems generic, such as "Promo" or "Hero", this should be blank.'),canBeComposition:Dr.boolean().describe("True if the component can have pages/compositions created from it. False if it is a part of a page."),parameters:Dr.array(Rh).describe("The properties of the component. The key is the publicId of the property.").optional(),slots:Dr.array(Dr.object({name:Dr.string().describe('Title-cased display name of the slot. Ex: "Content"'),id:Dr.string().describe("The public id of the slot. Must be unique within this component's slots."),allowedComponents:Dr.array(Dr.string()).describe("The components public IDs allowed in the slot."),minComponents:Dr.number().describe("The minimum number of components allowed in the slot. Omit for no minimum.").min(0).optional(),maxComponents:Dr.number().describe("The maximum number of components allowed in the slot. Omit for no maximum.").min(1).optional(),inheritAllowedComponents:Dr.boolean().describe("Set to false")})).describe("The slots of the component. The key is the publicId of the slot.").optional()});function fE(t){let e=t.slots?.map(o=>({...o,patternsInAllowedComponents:!0,inheritAllowedComponents:!1,maxComponents:o.maxComponents===0?void 0:o.maxComponents,minComponents:o.minComponents===0?void 0:o.minComponents})),r=t.parameters?.find(o=>o.type==="asset"&&typeof o.typeConfig=="object"&&o.typeConfig!==null&&"allowedTypes"in o.typeConfig&&Array.isArray(o.typeConfig.allowedTypes)&&o.typeConfig.allowedTypes?.includes("image"))?.id,n=t.parameters?.find(o=>o.type==="text")?.id;return{...t,slots:e,titleParameter:n,thumbnailParameter:r}}function Fh(t,e){return`${e.baseWebUrl}/dashboards/canvas/components/${t}`}function fc(t,e){let r=t.filter(n=>e===void 0&&n.type==="richText"||e!==void 0&&e.includes(n.id));if(r.length!==0)for(let n of r){if(n.typeConfig===void 0){n.typeConfig=Oh;continue}n.typeConfig={...Oh,required:n.typeConfig.required??Oh.required}}}var Sz={action:Bh.enum(["create","update","delete"]).describe("The action to perform"),publicId:Bh.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),component:dE.describe("Full component definition to create. Omit for update or delete.").optional(),patches:Ph.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function mE(t,e){t.tool("componentAction","Creates, updates, or deletes a Uniform Component definition (or Composition definition)",Sz,async({publicId:r,action:n,component:o,patches:a})=>{let i=new wz(e),l=!1;if(n==="create"){if(!o)throw new Error("Component definition is required for create");let s=fE(o);s.parameters&&(l=pE(s.parameters),fc(s.parameters)),await i.updateComponentDefinition({componentDefinition:s})}if(n==="update"){if(!a)throw new Error("Patches are required for update");let s=await i.getComponentDefinitions({componentId:r});if(!s.componentDefinitions.length)throw new Error(`Component with public ID ${r} does not exist, try creating it instead`);let u=s.componentDefinitions[0],c=u.parameters?.filter(f=>f.type==="richText").map(f=>f.id),d=kh(u,a);if(d.parameters){l=pE(d.parameters);let f=d.parameters?.filter(p=>p.type==="richText").map(p=>p.id).filter(p=>!c?.includes(p));fc(d.parameters,f)}await i.updateComponentDefinition({componentDefinition:d})}return n==="delete"&&await i.removeComponentDefinition({componentId:r}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:Fh(r,e),warning:l?"Issues with parameter group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{CanvasClient as gE}from"@uniformdev/canvas";import*as hE from"zod/v3";var Ez={id:hE.string()};function vE(t,e){t.tool("componentList","Lists all Uniform Component definitions",async()=>{let o=(await new gE(e).getComponentDefinitions({includeSystem:!0})).componentDefinitions.map(a=>({id:a.id,name:a.name,type:a.canBeComposition?"composition":"component",description:a.description,editUrl:Fh(a.id,e)}));return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}),t.tool("componentGet","Gets a Uniform Component definition details (slots, parameters, etc.)",Ez,async({id:r})=>{let o=await new gE(e).getComponentDefinitions({componentId:r,includeSystem:!0});return{content:[{type:"text",text:JSON.stringify(o.componentDefinitions[0],null,2)}]}})}import*as He from"zod/v3";import*as pc from"zod/v3";var us=pc.object({componentId:pc.string().describe("ID of the component pattern instance the data resource belongs to - can be created in the same call to this tool"),dataResourceName:pc.string().describe("Name of the data resource to update. Must be defined as a pattern data resource on the pattern, new names cannot be created"),editInstructions:pc.string().describe('Prompt that will be used to generate the data resource value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a pattern data resource. Omit unchanged data resources.");var $z=He.object({parentComponentId:He.string().describe("ID of the component the slot belongs to"),slotName:He.string().describe("Public ID of the target slot"),slotIndex:He.number().describe("Index to insert the new component at. Omit for append.").optional(),newComponentInstanceUuid:He.string().uuid().describe("UUID of the new component to create. You MUST generate a valid unique UUID using the `createUuid` tool."),instanceType:He.enum(["component","componentPattern"]),componentType:He.string().describe("Public ID of the component definition to insert. Component definition must be registered with Uniform. Omit when inserting a component pattern instance.").optional(),componentPatternId:He.string().describe("UUID of the component pattern definition to insert. Component pattern must be registered with Uniform. Omit when inserting a component instance.").optional()}),Vh=He.object({componentId:He.string().describe("ID of the component the parameter belongs to - can be created in the same call to this tool"),parameterId:He.string().describe("Public ID of the parameter to update. Must be defined in the component type of the parent componentId"),parameterType:He.string().describe("The type of the parameterId as defined on the component definition"),fromLocale:He.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:He.string().describe("Locale of the parameter value. Omit for non-localized values.").optional(),editInstructions:He.string().describe('Prompt that will be used to generate the parameter value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a parameter. Omit unchanged parameters."),jh=He.object({createComponentInstances:He.array($z).describe("New components to insert in slots. Do not use for moves or duplications. Omit for delete. These actions are performed before moving, duplicating, or deleting components, and parameter updates.").optional(),moveComponentInstances:He.array(He.object({componentId:He.string().describe("Existing component ID to move. Cannot be root component."),newParentComponentId:He.string(),newSlotName:He.string().describe("Destination slot to move to"),newSlotIndex:He.number().describe("Destination index in the parent slot to move to")})).describe("Moves existing component instances to a new location in a composition. The destination can be the same slot to cause a reorder. Omit for create or delete, or if nothing needs moving. These actions are performed before duplicating or deleting components, and parameter updates.").optional(),duplicateComponentInstances:He.array(He.string().describe("Component ID to duplicate. Cannot be root component. All descendants of the duplicated component will be duplicated as well. Duplicates are placed in the same slot as the original component, at the end.")).describe("Component instances to duplicate/copy. Omit when empty. These actions are performed before deleting components and parameter updates.").optional(),deleteComponentInstances:He.array(He.string().describe("Component ID to remove. Cannot be the pattern root component.")).describe("Component instances to delete from slots during an update. Omit for create or delete, or if nothing needs deleting. These actions are performed after moving and duplicating components, and before parameter updates.").optional(),dataResourceUpdates:He.array(us).describe("Updates to pattern data resources. Use empty array if no changes are needed.").optional()}),cs=He.object({enableLocales:He.array(He.string()).describe("Locales to enable. Omit for no change.").optional(),disableLocales:He.array(He.string()).describe("Locales to disable. Existing data in disabled locales will be lost. Omit for no change.").optional()}),Tz=He.object({summary:He.string().describe("Short summary of the edit that was made.").optional(),success:He.boolean()}),cve=He.object({success:He.boolean().describe("Whether all actions were successful"),actionsTaken:He.array(Tz).describe("Array of individual actions that were taken")});import*as ui from"zod/v3";var Iz=Vh.extend({overridable:ui.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),bE=jh.extend({name:ui.string().describe("Name of the pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:ui.string().describe("Component definition type of the pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:ui.string().describe("Description of the pattern for authors. If the description does not need to be changed, omit this field.").optional(),parameterUpdates:ui.array(Iz).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),dataResourceUpdates:ui.array(us).describe("Updates to the pattern instance data resources. Use empty array if no changes are needed.").optional(),localeUpdates:cs.optional()}).describe("Modification instructions for the pattern");import*as ds from"zod/v3";var yE=ds.object({...jh.shape,name:ds.string().describe("Name of the composition. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:ds.string().describe("Component definition type of the composition. Must be registered with Uniform and have canBeComposition=true in the component definition. Always include for creates. Omit otherwise.").optional(),parameterUpdates:ds.array(Vh).describe("Updates to the parameters of the pattern. Use empty array if no changes are needed.").optional(),localeUpdates:cs.optional(),dataResourceUpdates:ds.array(us).describe("Updates to pattern instance data resources. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the composition");import*as Ta from"zod/v3";import*as On from"zod/v3";var W2=On.object({fieldId:On.string().describe("Public ID of the field to update. Must be defined in the content type of the parent entry."),fieldType:On.string().describe("The type of the fieldId as defined on the content type"),fromLocale:On.string().describe("When translating from a different locale, use the locale you are translating from. Omit for non-localized values.").optional(),locale:On.string().describe("Locale of the field value. Omit for non-localized values.").optional(),editInstructions:On.string().describe('Prompt that will be used to generate the field value. Omission will leave the value unchanged. To reset an overridden value to pattern default, say "reset override".').optional()}).describe("A value change to a field. Omit unchanged fields."),xE=On.object({type:On.string().describe("Content type of the entry. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),slug:On.string().describe("Slug (human-readable identifier) of the entry. If the slug does not need to be changed, omit this field.").optional(),fieldUpdates:On.array(W2).describe("Updates to the fields of the entry. Use empty array if no changes are needed.").optional(),localeUpdates:cs.optional(),dataResourceUpdates:On.array(us).describe("Updates to the data resources of the entry. Use empty array if no changes are needed.").optional()}).describe("Modification instructions for the entry");var Dz=W2.extend({overridable:Ta.enum(["yes","no"]).describe("Whether the parameter value set on the pattern definition is overridable by pattern consumers. Omit when no change is needed.").optional()}),CE=Ta.object({name:Ta.string().describe("Name of the entry pattern. If the name does not need to be changed, omit this field. Always include for creates.").optional(),type:Ta.string().describe("Content type of the entry pattern. Must be registered with Uniform. Always include for creates. Omit otherwise.").optional(),description:Ta.string().describe("Description of the entry pattern for authors. If the description does not need to be changed, omit this field.").optional(),fieldUpdates:Ta.array(Dz).describe("Updates to the fields of the entry pattern. Use empty array if no changes are needed.").optional(),localeUpdates:cs.optional()}).describe("Modification instructions for the entry pattern");import*as en from"zod/v3";import{CANVAS_BLOCK_PARAM_TYPE as Fge}from"@uniformdev/canvas";import{getEffectivePropertyValue as Bge}from"@uniformdev/canvas";import{CANVAS_PERSONALIZATION_PARAM as Vge}from"@uniformdev/canvas";var ci="uniformContentInternalReference";var Az="$p:";function zh(t){return`${Az}${t}`}function wE({slotDefinition:t,slotSectionDefinition:e}){return{slotDefinition:{...t,allowedComponentsIndex:new Set(t?.allowedComponents??[]),maxComponents:t?.maxComponents??Number.MAX_VALUE,minComponents:t?.minComponents??0,allowAllPatternsOfAllowedTypes:!t?.patternsInAllowedComponents},slotSectionDefinition:e?{...e,specificTypesIndex:new Set(e?.specificTypes??[])}:void 0}}import{CANVAS_HYPOTHESIS_PARAM as Dve,CANVAS_LOCALIZATION_SLOT as Ave,CANVAS_LOCALIZATION_TYPE as Lve,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as _ve,CANVAS_PERSONALIZATION_ALGORITHM_TYPE as Mve,CANVAS_PERSONALIZATION_EVENT_NAME_PARAM as Nve,CANVAS_PERSONALIZATION_TAKE_PARAM as kve,CANVAS_PERSONALIZE_SLOT as Pve,CANVAS_PERSONALIZE_TYPE as Ove,CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as Rve,CANVAS_SLOT_SECTION_MAX_PARAM as Fve,CANVAS_SLOT_SECTION_MIN_PARAM as Bve,CANVAS_SLOT_SECTION_NAME_PARAM as Vve,CANVAS_SLOT_SECTION_SLOT as jve,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as zve,CANVAS_SLOT_SECTION_TYPE as Hve,CANVAS_TEST_SLOT as Wve,CANVAS_TEST_TYPE as Gve}from"@uniformdev/canvas";var Lz={$personalization:{isNestableIntoItself:!0},$test:void 0,$localization:void 0,$loop:void 0,$slotSection:{isAutoAllowed:!0,isNestableIntoItself:!0,isOnlyAllowedInPatternEditor:!0}},SE=t=>Lz[t];function Hh(t,{slotDefinition:e,slotSectionDefinition:r},n=!1){let o=_z(t,e,n);return r?o?Mz(t,r):!1:o}function _z(t,e,r=!1){let n=SE(t.type);if(n?.isOnlyAllowedInPatternEditor&&!r)return!1;if(n?.isAutoAllowed||e.allowAllComponents)return!0;let o=e.allowedComponentsIndex.has(t.type);return e.allowAllPatternsOfAllowedTypes||!t._pattern?o:e.allowedComponentsIndex.has(zh(t._pattern))||!1}function Mz(t,e){return e.groupType==="inherit"||!e.groupType?!0:e.groupType==="specific"?t._pattern?e.specificTypesIndex.has(zh(t._pattern)):e.specificTypesIndex.has(t.type):e.groupType==="except"?t._pattern?!e.specificTypesIndex.has(zh(t._pattern)):!e.specificTypesIndex.has(t.type):!1}function mc(t,e,r,n){return`ref-${t}-${e}`+(r?`-${r}`:"")+(n!==void 0&&n>-1?`(${n})`:"")}function EE(t,e={}){let{targetLocale:r,enabledLocales:n=[],isPatternParameter:o=!1}=e,a=r??(n.length>0?"${locale}":void 0);return{type:ci,...o?{isPatternParameter:!0}:{},variables:{entryIds:t,...a?{locale:a}:{}}}}import{CANVAS_SLOT_SECTION_GROUP_TYPE_PARAM as Nz,CANVAS_SLOT_SECTION_MAX_PARAM as kz,CANVAS_SLOT_SECTION_MIN_PARAM as Pz,CANVAS_SLOT_SECTION_NAME_PARAM as Oz,CANVAS_SLOT_SECTION_SLOT as Rz,CANVAS_SLOT_SECTION_SPECIFIC_PARAM as Fz,CANVAS_SLOT_SECTION_TYPE as Bz}from"@uniformdev/canvas";var U2=({twee:t,parentNodeId:e,slotName:r,componentDefinitionsIndex:n})=>{let o=G2({twee:t,parentNodeId:e,slotName:r,componentDefinitionsIndex:n});if(o)return wE(o)};function G2({twee:t,parentNodeId:e,slotName:r,componentDefinitionsIndex:n}){let o=t.getNodeById(e);if(!o)return;if(r===Rz){let u=Vz({node:o,twee:t}),c=t.getParentInfo(e);if(!c)return;let d=G2({parentNodeId:c.parentId,slotName:c.parentName,twee:t,componentDefinitionsIndex:n});return d?{slotDefinition:d.slotDefinition,slotSectionDefinition:u}:void 0}let i=n[o.value.type]?.slots?.find(u=>u.id===r);if(!i)return;if(!i.inheritAllowedComponents)return{slotDefinition:i,slotSectionDefinition:void 0};let l=t.getParentInfo(e);if(!l)return{slotDefinition:i,slotSectionDefinition:void 0};let s=G2({parentNodeId:l.parentId,slotName:l.parentName,twee:t,componentDefinitionsIndex:n});return s?{slotDefinition:s.slotDefinition,slotSectionDefinition:s.slotSectionDefinition}:{slotDefinition:i,slotSectionDefinition:void 0}}function Vz({node:t,twee:e}){if(t.value.type!==Bz)return;let r=e.getNodeProperty(t.nodeId,Nz)?.value??"inherit",n=e.getNodeProperty(t.nodeId,Oz)?.value??"Slot Section",o=Number(e.getNodeProperty(t.nodeId,Pz)?.value),a=Number(e.getNodeProperty(t.nodeId,kz)?.value),i=e.getNodeProperty(t.nodeId,Fz)?.value??[];return{groupType:r,name:n,specificTypes:i,min:o,max:a}}function Gh({definition:t,lastUserChoice:e,currentValue:r}){if(t&&!t.localizable)return!1;if(r){if(r.locales&&Wh(r.locales)||r.localesConditions&&Wh(r.localesConditions))return!0;if(r.value!==void 0||r.conditions!==void 0)return!1}if(e!==void 0)return e;if(t)return!t.notLocalizedByDefault}function Wh(t){return Array.isArray(t)?t.some(e=>Wh(e)):t===void 0?!1:t===null||typeof t!="object"?!0:Object.values(t).some(e=>Wh(e))}function Z2({twee:t,nodeId:e,currentEditorLocale:r,definition:n}){let o=t.getNodeById(e),a=o?.propertyValueLocalizability?.[n.id],i=t.getNodeProperty(e,n?.id),l=Gh({lastUserChoice:a,currentValue:i,definition:n});if(o&&l!==void 0&&l!==(a??!1)&&t.updateNode({nodeId:e,updateMetadata:s=>{s.propertyValueLocalizability[n.id]=l},doNotSetDirty:!0}),l)return r}function $E({twee:t,nodeId:e,dataType:r,dataResourceName:n,dataResourceEdit:o}){if(!t.getNodeById(e))throw new Error(`Node with ID ${e} not found`);o.action==="resetOverride"?t.updateNode({nodeId:e,updateDataResources:[{type:"reset",name:n}]}):o.action==="setValue"&&t.updateNode({nodeId:e,updateDataResources:[{type:"set",name:n,value:{type:r,variables:o.newValue}}]})}import{CANVAS_ENRICHMENT_TAG_PARAM as Dge,CANVAS_PERSONALIZATION_ALGORITHM_PARAM as Age,CANVAS_PERSONALIZATION_PARAM as Lge,CANVAS_PERSONALIZE_SLOT as _ge,convertToBindExpression as Mge,createVariableReference as Nge,isSystemComponentDefinition as kge}from"@uniformdev/canvas";var TE=Object.prototype.hasOwnProperty;function Vr(t,e){var r,n;if(t===e)return!0;if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&Vr(t[n],e[n]););return n===-1}if(!r||typeof t=="object"){n=0;for(r in t)if(TE.call(t,r)&&++n&&!TE.call(e,r)||!(r in e)||!Vr(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!==t&&e!==e}function Uh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}var jz={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Y2(t,e){function r(o,a,i){if(!(typeof document>"u")){i=Uh({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in i)i[s]&&(l+="; "+s,i[s]!==!0&&(l+="="+i[s].split(";")[0]));return document.cookie=o+"="+t.write(a,o)+l}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},l=0;l<a.length;l++){var s=a[l].split("="),u=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(i[c]=t.read(u,c),o===c)break}catch{}}return o?i[o]:i}}return Object.create({set:r,get:n,remove:function(o,a){r(o,"",Uh({},a,{expires:-1}))},withAttributes:function(o){return Y2(this.converter,Uh({},this.attributes,o))},withConverter:function(o){return Y2(Uh({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var zz=Y2(jz,{path:"/"});function Nf(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(o){o(r)}),(n=t.get("*"))&&n.slice().map(function(o){o(e,r)})}}}var LE=B(kf(),1);var OE=B(kf(),1),RE=B(kf(),1);var Gz=t=>{throw TypeError(t)};var Q2=(t,e,r)=>e.has(t)||Gz("Cannot "+r),Bt=(t,e,r)=>(Q2(t,e,"read from private field"),r?r.call(t):e.get(t));var DE=(t,e,r,n)=>(Q2(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Of=(t,e,r)=>(Q2(t,e,"access private method"),r);var Uz="_",Zz;Zz=new WeakMap;var Yz,Kz;Yz=new WeakMap;Kz=new WeakMap;var Xz,Jz,qz,Qz;Xz=new WeakMap;Jz=new WeakMap;qz=new WeakMap;Qz=new WeakMap;function eH(t,e){return`${t}${Uz}${e}`}function tH(t,e){var r;if(typeof t>"u"||t===null)return!1;let n=Number(t);if(isNaN(n))return!1;switch((r=e?.op)!=null?r:"="){case"=":return n===e.rhs;case"!=":return n!==e.rhs;case">":return n>e.rhs;case"<":return n<e.rhs;default:return console.warn(`Unknown match type ${e.op} is false.`),!1}}function rH(t,e){return`${t} ${nH(e)}`}function nH(t){return`${t.op} ${t.rhs}`}var K2=eH("$pvc","v"),oH=({update:t,criteria:e,commands:r,onLogMessage:n})=>{var o,a;if(e.type!=="PVC")return{result:!1,changed:!1};let i=!!(t.state.url&&(!t.previousState||((o=t.state.url)==null?void 0:o.toString())!==((a=t.previousState.url)==null?void 0:a.toString()))),s=(t.visitor.sessionScores[K2]||0)+1,u={result:!1,changed:i},c=r.some(d=>d.type==="modscoreS"&&d.data.dimension===K2);return i&&!c&&r.push({type:"modscoreS",data:{dimension:K2,delta:1}}),tH(s,e.match)&&(u.result=!0),n?.(["debug",203,{criteria:e,result:u,explanation:rH(s,e.match)}]),u};oH.alwaysExecute=!0;var aH;aH=new WeakMap;var AE="ssc";var iH,sH,lH;iH=new WeakMap;sH=new WeakMap;lH=new WeakMap;var X2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hbe=X2.split(""),uH=new Array(123);for(let t=0;t<X2.length;t++)uH[X2.charCodeAt(t)]=t;var cH,dH,fH,pH;cH=new WeakMap;dH=new WeakMap;fH=new WeakMap;pH=new WeakMap;var mH,gH;mH=new WeakSet;gH=async function(){let t=await new Promise(e=>{setTimeout(()=>{e(void 0)},2e3)});t&&this.signalAsyncDataUpdate(t)};var hH=()=>({quirks:{},scores:{},sessionScores:{},tests:{},goals:{},consent:!1,controlGroup:!1,personalizeVariants:{}}),ybe=(0,LE.default)();var vH,bH;vH=new WeakSet;bH=function(t){return this.partitionKey?`${this.partitionKey}.${t}`:t};var _E="ufvisitor",Il,e4,Zh,oo,Pf,ME,yH,NE,xH,J2,CH;Il=new WeakMap;e4=new WeakMap;Zh=new WeakMap;oo=new WeakMap;Pf=new WeakSet;ME=function(){return Bt(this,e4).get(_E)};yH=function(t,e=!1){var r,n,o,a,i,l,s,u,c,d,f;let p=Bt(this,Pf,ME),m=Date.now();Of(this,Pf,J2).call(this,t.scores),Of(this,Pf,J2).call(this,t.sessionScores),(n=(r=Bt(this,oo)).decay)==null||n.call(r,{now:m,lastUpd:p?.updated,scores:t.scores,sessionScores:t.sessionScores,onLogMessage:Bt(this,oo).onLogMessage});let h=!Vr(p?.visitorData.scores,t.scores),g=!Vr(p?.visitorData.sessionScores,t.sessionScores),v=!Vr(p?.visitorData.quirks,t.quirks),y=!Vr(p?.visitorData.tests,t.tests),x=!Vr(p?.visitorData.goals,t.goals),C={updated:m,visitorData:t};if(Of(this,Pf,NE).call(this),Bt(this,e4).set(_E,C,!!t.consent),(a=(o=Bt(this,oo)).onLogMessage)==null||a.call(o,["debug",102,t]),!e&&((h||g)&&Bt(this,Il).emit("scoresUpdated",t),v&&Bt(this,Il).emit("quirksUpdated",t),y&&Bt(this,Il).emit("testsUpdated",t),((i=p?.visitorData)==null?void 0:i.consent)!==t.consent&&Bt(this,Il).emit("consentUpdated",t),((l=p?.visitorData)==null?void 0:l.controlGroup)!==t.controlGroup&&(Bt(this,Il).emit("controlGroupUpdated",t),(c=(u=Bt(this,oo)).onLogMessage)==null||c.call(u,["debug",104,(s=t.controlGroup)!=null?s:!1])),x)){let w=Object.keys((d=t.goals)!=null?d:{});for(let S=0;S<w.length;S++){let E=w[S];(f=p?.visitorData.goals)!=null&&f[E]||Bt(this,Il).emit("goalConverted",{goalId:E})}}};NE=function(){typeof document>"u"||!Bt(this,oo).visitLifespan||(Bt(this,Zh)&&window.clearTimeout(Bt(this,Zh)),DE(this,Zh,window.setTimeout(()=>{this.data},Bt(this,oo).visitLifespan+50)))};xH=function(t){let e=Bt(this,oo).visitLifespan;return e?t.updated+e<Date.now():!1};J2=function(t){var e,r;if(Bt(this,oo).manifest)for(let n in t){let o=t[n],a=Bt(this,oo).manifest.getDimensionByKey(n);a&&o>a.cap&&((r=(e=Bt(this,oo)).onLogMessage)==null||r.call(e,["debug",110,{dim:n,score:o,cap:a.cap}]),t[n]=a.cap)}};CH=function(){var t,e,r;return{...hH(),consent:(t=Bt(this,oo).defaultConsent)!=null?t:!1,controlGroup:(r=(e=Bt(this,oo).manifest)==null?void 0:e.rollForControlGroup())!=null?r:!1}};var wH,SH,Yh,EH,$H,TH,IH,DH,Kh,q2,AH,kE,LH,PE;wH=new WeakMap;SH=new WeakMap;Yh=new WeakMap;EH=new WeakMap;$H=new WeakMap;TH=new WeakMap;IH=new WeakMap;DH=new WeakMap;Kh=new WeakMap;q2=new WeakSet;AH=function(t){Bt(this,Kh).emit("testResult",t)};kE=async function(t){let e=this.manifest.computeGoals(t);e.length!==0&&await this.storage.updateData(e)};LH=function(t){let e=Of(this,q2,PE).call(this,t);!Vr(e,Bt(this,Yh))&&(DE(this,Yh,e),Of(this,q2,kE).call(this,{scores:Bt(this,Yh),quirks:void 0}),Bt(this,Kh).emit("scoresUpdated",e),Bt(this,Kh).emit("log",["info",3,e]))};PE=function(t){var e;let r={...t.scores};for(let n in t.sessionScores)r[n]=((e=r[n])!=null?e:0)+t.sessionScores[n];return r=this.manifest.computeAggregateDimensions(r),r};var wbe=(0,OE.default)();var Sbe=(0,RE.default)();function fe(t,...e){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let o of e)n.append("v",o);throw r.search=n.toString(),Error(`Minified Lexical error #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _8(t,...e){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;n.append("code",t);for(let o of e)n.append("v",o);r.search=n.toString(),console.warn(`Minified Lexical warning #${t}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}var ta=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,_H=ta&&"documentMode"in document?document.documentMode:null,qo=ta&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),kl=ta&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),o0=!(!ta||!("InputEvent"in window)||_H)&&"getTargetRanges"in new window.InputEvent("input"),Xf=ta&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),$c=ta&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,MH=ta&&/Android/.test(navigator.userAgent),M8=ta&&/^(?=.*Chrome).*/i.test(navigator.userAgent),FE=ta&&MH&&M8,Jf=ta&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&qo&&!M8;function N8(...t){let e=[];for(let r of t)if(r&&typeof r=="string")for(let[n]of r.matchAll(/\S+/g))e.push(n);return e}var NH=0,kH=1,PH=2;var k8=128;var OH=1,RH=2,FH=3,BH=4,VH=5,jH=6,C0=Xf||$c||Jf?"\xA0":"\u200B",ps=`
|
|
@@ -2617,10 +2617,13 @@ to {
|
|
|
2617
2617
|
overflow: hidden;
|
|
2618
2618
|
white-space: nowrap;
|
|
2619
2619
|
`,Ize=b.css`
|
|
2620
|
+
/* matches the rendered height of ParameterInput (padding + line-height + border) */
|
|
2621
|
+
min-height: calc(var(--spacing-sm) * 2 + var(--fs-sm) * 1.5 + 2px);
|
|
2622
|
+
`,Dze=b.css`
|
|
2620
2623
|
// this allows the button to be as wide as the text
|
|
2621
2624
|
min-width: 0;
|
|
2622
2625
|
margin-right: auto;
|
|
2623
|
-
`;function qde(t){var e;let n=(e=Qde(t).formatToParts().find(o=>o.type==="timeZoneName"))==null?void 0:e.value;return String(t).replace(/_/g," ")+(n?` (${n})`:"")}function Qde(t){try{return Intl.DateTimeFormat("en",{timeZoneName:"shortOffset",timeZone:t})}catch(e){if(!(e instanceof RangeError))throw e;return Intl.DateTimeFormat("en",{timeZoneName:"short",timeZone:t})}}var efe=typeof Intl<"u"&&typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):["Etc/UTC"];function tfe(t){let e=new Date,r=new Date(e.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(e.toLocaleString("en-US",{timeZone:t})).getTime()-r.getTime())/6e4}var
|
|
2626
|
+
`;function qde(t){var e;let n=(e=Qde(t).formatToParts().find(o=>o.type==="timeZoneName"))==null?void 0:e.value;return String(t).replace(/_/g," ")+(n?` (${n})`:"")}function Qde(t){try{return Intl.DateTimeFormat("en",{timeZoneName:"shortOffset",timeZone:t})}catch(e){if(!(e instanceof RangeError))throw e;return Intl.DateTimeFormat("en",{timeZoneName:"short",timeZone:t})}}var efe=typeof Intl<"u"&&typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):["Etc/UTC"];function tfe(t){let e=new Date,r=new Date(e.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(e.toLocaleString("en-US",{timeZone:t})).getTime()-r.getTime())/6e4}var Aze=efe.map(t=>{let e=t;return e==="Europe/Kiev"&&(e="Europe/Kyiv"),{label:qde(e),value:e,offset:tfe(e)}}).sort((t,e)=>t.offset!==e.offset?t.offset-e.offset:t.value.localeCompare(e.value)),Lze=(0,tc.createContext)({clearValue(){},changeDate(){},changeTime(){}});var rfe=b.css`
|
|
2624
2627
|
display: grid;
|
|
2625
2628
|
grid-template-columns: max-content auto;
|
|
2626
2629
|
gap: var(--spacing-sm) var(--spacing-md);
|
|
@@ -2635,7 +2638,7 @@ to {
|
|
|
2635
2638
|
`,afe=b.css`
|
|
2636
2639
|
display: flex;
|
|
2637
2640
|
margin: 0;
|
|
2638
|
-
`,ife=Fw.default.forwardRef(({items:t,variant:e="horizontal",...r},n)=>t?.length?(0,I.jsx)("dl",{ref:n,css:e==="vertical"?nfe:rfe,...r,children:t?.map(({label:o,value:a})=>(0,I.jsxs)(Fw.default.Fragment,{children:[(0,I.jsx)("dt",{css:ofe,children:o}),(0,I.jsx)("dd",{css:afe,children:typeof a=="boolean"?(0,I.jsx)(sfe,{value:a}):a})]},o))}):null);ife.displayName="DescriptionList";var sfe=({value:t})=>(0,I.jsx)(t?bF.TbCheck:yF.TbMinus,{style:{color:t?"var(--accent-dark)":"var(--gray-500)"},strokeWidth:3}),
|
|
2641
|
+
`,ife=Fw.default.forwardRef(({items:t,variant:e="horizontal",...r},n)=>t?.length?(0,I.jsx)("dl",{ref:n,css:e==="vertical"?nfe:rfe,...r,children:t?.map(({label:o,value:a})=>(0,I.jsxs)(Fw.default.Fragment,{children:[(0,I.jsx)("dt",{css:ofe,children:o}),(0,I.jsx)("dd",{css:afe,children:typeof a=="boolean"?(0,I.jsx)(sfe,{value:a}):a})]},o))}):null);ife.displayName="DescriptionList";var sfe=({value:t})=>(0,I.jsx)(t?bF.TbCheck:yF.TbMinus,{style:{color:t?"var(--accent-dark)":"var(--gray-500)"},strokeWidth:3}),kze=b.css`
|
|
2639
2642
|
&[open] {
|
|
2640
2643
|
& > summary svg {
|
|
2641
2644
|
rotate: 0deg;
|
|
@@ -2644,7 +2647,7 @@ to {
|
|
|
2644
2647
|
padding-bottom: var(--spacing-sm);
|
|
2645
2648
|
}
|
|
2646
2649
|
}
|
|
2647
|
-
`,
|
|
2650
|
+
`,Pze=b.css`
|
|
2648
2651
|
position: relative;
|
|
2649
2652
|
animation: ${que} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
2650
2653
|
will-change: height;
|
|
@@ -2652,13 +2655,13 @@ to {
|
|
|
2652
2655
|
&:focus-within {
|
|
2653
2656
|
z-index: 1;
|
|
2654
2657
|
}
|
|
2655
|
-
`,
|
|
2658
|
+
`,Oze=b.css`
|
|
2656
2659
|
margin-left: calc(1.25rem / 2);
|
|
2657
2660
|
border-left: 1px solid var(--gray-300);
|
|
2658
2661
|
padding-top: calc(var(--spacing-md) / 2);
|
|
2659
2662
|
padding-left: var(--spacing-base);
|
|
2660
2663
|
padding-bottom: var(--spacing-sm);
|
|
2661
|
-
`,
|
|
2664
|
+
`,Rze=b.css`
|
|
2662
2665
|
align-items: center;
|
|
2663
2666
|
cursor: pointer;
|
|
2664
2667
|
display: grid;
|
|
@@ -2670,12 +2673,12 @@ to {
|
|
|
2670
2673
|
&::-webkit-details-marker {
|
|
2671
2674
|
display: none;
|
|
2672
2675
|
}
|
|
2673
|
-
`,Rze=b.css`
|
|
2674
|
-
padding: 0;
|
|
2675
2676
|
`,Fze=b.css`
|
|
2677
|
+
padding: 0;
|
|
2678
|
+
`,Bze=b.css`
|
|
2676
2679
|
transition: rotate var(--duration-fast) var(--timing-ease-out);
|
|
2677
2680
|
rotate: -90deg;
|
|
2678
|
-
`,
|
|
2681
|
+
`,Vze=b.css`
|
|
2679
2682
|
visibility: hidden;
|
|
2680
2683
|
`;var lfe=b.css`
|
|
2681
2684
|
background: transparent;
|
|
@@ -2700,7 +2703,7 @@ to {
|
|
|
2700
2703
|
`,ufe=b.css`
|
|
2701
2704
|
opacity: 0.3;
|
|
2702
2705
|
pointer-events: none;
|
|
2703
|
-
`,
|
|
2706
|
+
`,Hze=(0,xF.forwardRef)(({disableDnd:t,height:e="3.125rem",...r},n)=>(0,I.jsx)("button",{type:"button",ref:n,css:[lfe,t?ufe:null,{height:e}],disabled:t,...r})),cfe=(t="var(--white)")=>b.css`
|
|
2704
2707
|
background-color: ${t};
|
|
2705
2708
|
display: flex;
|
|
2706
2709
|
gap: var(--spacing-sm);
|
|
@@ -2736,7 +2739,7 @@ to {
|
|
|
2736
2739
|
overflow: auto;
|
|
2737
2740
|
padding: 0 var(--spacing-md) var(--spacing-base) var(--spacing-sm);
|
|
2738
2741
|
${Zo}
|
|
2739
|
-
`,
|
|
2742
|
+
`,Gze=b.css`
|
|
2740
2743
|
font-size: var(--fs-base);
|
|
2741
2744
|
`,hfe=b.keyframes`
|
|
2742
2745
|
0% {
|
|
@@ -2792,13 +2795,13 @@ to {
|
|
|
2792
2795
|
&:first-of-type {
|
|
2793
2796
|
background: rgba(31, 43, 52, 0.4);
|
|
2794
2797
|
}
|
|
2795
|
-
`,SF=(0,ro.createContext)({providerId:"",drawersRegistry:[],registerDrawer:()=>{},unregisterDrawer:()=>{},registerTakeoverStackId:()=>{},unregisterTakeoverStackId:()=>{}}),Cfe=({children:t})=>{let[e,r]=(0,ro.useState)([]),n=(0,ro.useId)(),[o,a]=(0,ro.useState)(void 0);RR({handler:()=>{var c,d;(d=(c=e.at(-1))==null?void 0:c.onRequestClose)==null||d.call(c)},shortcut:"escape"});let i=(0,ro.useCallback)(({drawer:c,onFirstRender:d})=>{r(f=>{var p,m;let h=f.findIndex(C=>EF(C,c)),g=f[h],v=g!==void 0&&!yR(g,c),y=!g||v,x=[...f];return v&&((p=g.onRequestClose)==null||p.call(g),x.splice(h,1)),(y||v)&&d?.(),x=[...x,{...c,registeredAt:(m=g?.registeredAt)!=null?m:Date.now(),onFirstRender:d,isFirstRender:y}].sort((C,w)=>{var S,E;return((S=C.registeredAt)!=null?S:0)-((E=w.registeredAt)!=null?E:0)}),x})},[r]),l=(0,ro.useCallback)(c=>{r(d=>d.filter(f=>!yR(c,f)))},[r]),s=(0,ro.useCallback)(c=>{o!==c&&a(c)},[o]),u=(0,ro.useCallback)(c=>{o===c&&a(void 0)},[o]);return(0,I.jsx)(SF.Provider,{value:{drawersRegistry:e,registerDrawer:i,unregisterDrawer:l,providerId:n,drawerTakeoverStackId:o,registerTakeoverStackId:s,unregisterTakeoverStackId:u},children:t})},Kw=()=>(0,ro.useContext)(SF);function EF(t,e){return t?.id===e?.id&&t?.stackId===e?.stackId}function yR(t,e){return EF(t,e)&&t.instanceKey===e.instanceKey}var $F="_default",TF=(0,$o.createContext)({}),wfe=()=>(0,$o.useContext)(TF),Sfe=$o.default.forwardRef(({minWidth:t,maxWidth:e,position:r,leftAligned:n,...o},a)=>{var i;let{stackId:l}=wfe(),{drawerTakeoverStackId:s}=Kw(),u={width:o.width,minWidth:t,maxWidth:e,position:r,leftAligned:n},c=(0,$o.useRef)((i=s??o.stackId)!=null?i:l);return c.current?(0,I.jsx)(xR,{ref:a,...o,stackId:c.current}):(0,I.jsxs)(Cfe,{children:[(0,I.jsx)(xR,{ref:a,...o}),(0,I.jsx)($fe,{stackId:$F,...u})]})});Sfe.displayName="Drawer";var xR=({ref:t,stackId:e=$F,id:r,bgColor:n="var(--gray-50)",children:o,header:a,instanceKey:i,onRequestClose:l,leftAligned:s,width:u="medium",testId:c="side-dialog"})=>{let{registerDrawer:d,unregisterDrawer:f,providerId:p}=Kw(),m=(0,$o.useRef)(null),[h,g]=(0,$o.useState)(null);if((0,$o.useEffect)(()=>(d({drawer:{width:u,id:r,stackId:e,onRequestClose:l,instanceKey:i},onFirstRender:()=>{var y,x;g(Efe({providerId:p,stackId:e,id:r})),t&&"current"in t&&!((y=t.current)!=null&&y.contains(document.activeElement))&&((x=m.current)==null||x.focus({preventScroll:!0}))}}),()=>{f({id:r,stackId:e,instanceKey:i})}),[r,e,i,p,d,f]),!h)return null;let v=`dialog-header-${p}-${e}-${r}`;return(0,I.jsx)(TF.Provider,{value:{id:r,stackId:e,leftAligned:s},children:(0,wF.createPortal)((0,I.jsxs)("div",{ref:t,id:r,role:"dialog",tabIndex:-1,"aria-labelledby":v,css:cfe(n),"data-testid":c,children:[(0,I.jsxs)("div",{css:ffe,children:[a?(0,I.jsx)("div",{id:v,css:pfe,"data-testid":"header",children:a}):null,(0,I.jsx)(lf,{ref:m,type:"button",onClick:l,css:dfe,title:"Close dialog",buttonType:"ghost","data-testid":"close-button",children:(0,I.jsx)(_n,{icon:CF.CgChevronRight,iconColor:"gray",size:24,css:{transform:"rotate(var(--drawer-close-icon-rotation))"}})})]}),(0,I.jsx)("div",{css:gfe,children:o})]}),h)})},Efe=t=>document.querySelector(Object.entries(IF(t)).map(([e,r])=>`[${e}="${r}"]`).join("")),
|
|
2798
|
+
`,SF=(0,ro.createContext)({providerId:"",drawersRegistry:[],registerDrawer:()=>{},unregisterDrawer:()=>{},registerTakeoverStackId:()=>{},unregisterTakeoverStackId:()=>{}}),Cfe=({children:t})=>{let[e,r]=(0,ro.useState)([]),n=(0,ro.useId)(),[o,a]=(0,ro.useState)(void 0);RR({handler:()=>{var c,d;(d=(c=e.at(-1))==null?void 0:c.onRequestClose)==null||d.call(c)},shortcut:"escape"});let i=(0,ro.useCallback)(({drawer:c,onFirstRender:d})=>{r(f=>{var p,m;let h=f.findIndex(C=>EF(C,c)),g=f[h],v=g!==void 0&&!yR(g,c),y=!g||v,x=[...f];return v&&((p=g.onRequestClose)==null||p.call(g),x.splice(h,1)),(y||v)&&d?.(),x=[...x,{...c,registeredAt:(m=g?.registeredAt)!=null?m:Date.now(),onFirstRender:d,isFirstRender:y}].sort((C,w)=>{var S,E;return((S=C.registeredAt)!=null?S:0)-((E=w.registeredAt)!=null?E:0)}),x})},[r]),l=(0,ro.useCallback)(c=>{r(d=>d.filter(f=>!yR(c,f)))},[r]),s=(0,ro.useCallback)(c=>{o!==c&&a(c)},[o]),u=(0,ro.useCallback)(c=>{o===c&&a(void 0)},[o]);return(0,I.jsx)(SF.Provider,{value:{drawersRegistry:e,registerDrawer:i,unregisterDrawer:l,providerId:n,drawerTakeoverStackId:o,registerTakeoverStackId:s,unregisterTakeoverStackId:u},children:t})},Kw=()=>(0,ro.useContext)(SF);function EF(t,e){return t?.id===e?.id&&t?.stackId===e?.stackId}function yR(t,e){return EF(t,e)&&t.instanceKey===e.instanceKey}var $F="_default",TF=(0,$o.createContext)({}),wfe=()=>(0,$o.useContext)(TF),Sfe=$o.default.forwardRef(({minWidth:t,maxWidth:e,position:r,leftAligned:n,...o},a)=>{var i;let{stackId:l}=wfe(),{drawerTakeoverStackId:s}=Kw(),u={width:o.width,minWidth:t,maxWidth:e,position:r,leftAligned:n},c=(0,$o.useRef)((i=s??o.stackId)!=null?i:l);return c.current?(0,I.jsx)(xR,{ref:a,...o,stackId:c.current}):(0,I.jsxs)(Cfe,{children:[(0,I.jsx)(xR,{ref:a,...o}),(0,I.jsx)($fe,{stackId:$F,...u})]})});Sfe.displayName="Drawer";var xR=({ref:t,stackId:e=$F,id:r,bgColor:n="var(--gray-50)",children:o,header:a,instanceKey:i,onRequestClose:l,leftAligned:s,width:u="medium",testId:c="side-dialog"})=>{let{registerDrawer:d,unregisterDrawer:f,providerId:p}=Kw(),m=(0,$o.useRef)(null),[h,g]=(0,$o.useState)(null);if((0,$o.useEffect)(()=>(d({drawer:{width:u,id:r,stackId:e,onRequestClose:l,instanceKey:i},onFirstRender:()=>{var y,x;g(Efe({providerId:p,stackId:e,id:r})),t&&"current"in t&&!((y=t.current)!=null&&y.contains(document.activeElement))&&((x=m.current)==null||x.focus({preventScroll:!0}))}}),()=>{f({id:r,stackId:e,instanceKey:i})}),[r,e,i,p,d,f]),!h)return null;let v=`dialog-header-${p}-${e}-${r}`;return(0,I.jsx)(TF.Provider,{value:{id:r,stackId:e,leftAligned:s},children:(0,wF.createPortal)((0,I.jsxs)("div",{ref:t,id:r,role:"dialog",tabIndex:-1,"aria-labelledby":v,css:cfe(n),"data-testid":c,children:[(0,I.jsxs)("div",{css:ffe,children:[a?(0,I.jsx)("div",{id:v,css:pfe,"data-testid":"header",children:a}):null,(0,I.jsx)(lf,{ref:m,type:"button",onClick:l,css:dfe,title:"Close dialog",buttonType:"ghost","data-testid":"close-button",children:(0,I.jsx)(_n,{icon:CF.CgChevronRight,iconColor:"gray",size:24,css:{transform:"rotate(var(--drawer-close-icon-rotation))"}})})]}),(0,I.jsx)("div",{css:gfe,children:o})]}),h)})},Efe=t=>document.querySelector(Object.entries(IF(t)).map(([e,r])=>`[${e}="${r}"]`).join("")),Kze=b.css`
|
|
2796
2799
|
background: var(--gray-50);
|
|
2797
2800
|
display: flex;
|
|
2798
2801
|
flex-direction: column;
|
|
2799
2802
|
gap: var(--spacing-base);
|
|
2800
2803
|
height: 100%;
|
|
2801
|
-
`,
|
|
2804
|
+
`,Xze=b.css`
|
|
2802
2805
|
background: var(--white);
|
|
2803
2806
|
padding: var(--spacing-base);
|
|
2804
2807
|
flex: 1;
|
|
@@ -2806,29 +2809,29 @@ to {
|
|
|
2806
2809
|
overflow-y: auto;
|
|
2807
2810
|
${Zo}
|
|
2808
2811
|
border-radius: var(--rounded-base);
|
|
2809
|
-
`,
|
|
2812
|
+
`,Jze=b.css`
|
|
2810
2813
|
display: flex;
|
|
2811
2814
|
gap: var(--spacing-sm);
|
|
2812
2815
|
padding: 0 var(--spacing-base) var(--spacing-base);
|
|
2813
|
-
`;var CR={narrow:"29rem",medium:"43rem",wide:"57rem"},wR=64,SR=16,$fe=({stackId:t,position:e="absolute",width:r="medium",minWidth:n="0",maxWidth:o="100%",leftAligned:a=!1,withoutFluidWidth:i=!1,...l})=>{let{drawersRegistry:s,providerId:u}=Kw(),c=s.filter(({stackId:f})=>f===t);(0,Wy.useEffect)(()=>{c.forEach(({isFirstRender:f,onFirstRender:p})=>{f&&p?.()})},[c]);let d=(0,Wy.useMemo)(()=>{var f;let p=(f=CR[r])!=null?f:r;return i?p:`max(${[p,...c.map(({width:h})=>{var g;return h?(g=CR[h])!=null?g:h:null})].filter(h=>typeof h=="string").join()})`},[c,r,i]);return c.length===0?null:(0,I.jsx)("div",{css:[mfe,{position:e},e==="sticky"?{height:"100%",marginTop:"-100%"}:void 0],...l,children:c.map(({id:f,stackId:p,onRequestClose:m},h)=>(0,I.jsx)(Tfe,{index:h,totalDrawers:c.length,width:d,minWidth:n,maxWidth:o,onOverlayClick:m,leftAligned:a,children:(0,I.jsx)("div",{...IF({providerId:u,stackId:p,id:f}),style:{width:"100%",height:"100%"}})},`${p}-${f}`))})},Tfe=({index:t,totalDrawers:e,width:r,minWidth:n,maxWidth:o,leftAligned:a,onOverlayClick:i,children:l})=>{let s=SR*t;if(e*SR>wR){let c=t===0?0:t/e;s=Math.round(wR*c)}let u=`calc(${r} - ${s}px)`;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{css:xfe,onClick:i}),(0,I.jsx)("div",{css:[bfe,a?yfe:null],style:{width:u,minWidth:n,maxWidth:o},"data-testid":"drawer-wrapper",children:l})]})},IF=({providerId:t,stackId:e,id:r})=>({"data-drawer-id":`${t}-${e}-${r}`,"data-testid":"container-drawer"});var
|
|
2816
|
+
`;var CR={narrow:"29rem",medium:"43rem",wide:"57rem"},wR=64,SR=16,$fe=({stackId:t,position:e="absolute",width:r="medium",minWidth:n="0",maxWidth:o="100%",leftAligned:a=!1,withoutFluidWidth:i=!1,...l})=>{let{drawersRegistry:s,providerId:u}=Kw(),c=s.filter(({stackId:f})=>f===t);(0,Wy.useEffect)(()=>{c.forEach(({isFirstRender:f,onFirstRender:p})=>{f&&p?.()})},[c]);let d=(0,Wy.useMemo)(()=>{var f;let p=(f=CR[r])!=null?f:r;return i?p:`max(${[p,...c.map(({width:h})=>{var g;return h?(g=CR[h])!=null?g:h:null})].filter(h=>typeof h=="string").join()})`},[c,r,i]);return c.length===0?null:(0,I.jsx)("div",{css:[mfe,{position:e},e==="sticky"?{height:"100%",marginTop:"-100%"}:void 0],...l,children:c.map(({id:f,stackId:p,onRequestClose:m},h)=>(0,I.jsx)(Tfe,{index:h,totalDrawers:c.length,width:d,minWidth:n,maxWidth:o,onOverlayClick:m,leftAligned:a,children:(0,I.jsx)("div",{...IF({providerId:u,stackId:p,id:f}),style:{width:"100%",height:"100%"}})},`${p}-${f}`))})},Tfe=({index:t,totalDrawers:e,width:r,minWidth:n,maxWidth:o,leftAligned:a,onOverlayClick:i,children:l})=>{let s=SR*t;if(e*SR>wR){let c=t===0?0:t/e;s=Math.round(wR*c)}let u=`calc(${r} - ${s}px)`;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{css:xfe,onClick:i}),(0,I.jsx)("div",{css:[bfe,a?yfe:null],style:{width:u,minWidth:n,maxWidth:o},"data-testid":"drawer-wrapper",children:l})]})},IF=({providerId:t,stackId:e,id:r})=>({"data-drawer-id":`${t}-${e}-${r}`,"data-testid":"container-drawer"});var eHe=b.css`
|
|
2814
2817
|
background: var(--white);
|
|
2815
2818
|
border: 1px solid var(--gray-200);
|
|
2816
2819
|
border-radius: var(--rounded-2xl);
|
|
2817
2820
|
padding: var(--spacing-lg);
|
|
2818
|
-
`,
|
|
2821
|
+
`,tHe=b.css`
|
|
2819
2822
|
overflow-y: auto;
|
|
2820
2823
|
overflow-x: hidden;
|
|
2821
2824
|
${Zo}
|
|
2822
|
-
`;var
|
|
2825
|
+
`;var nHe=b.css`
|
|
2823
2826
|
font-size: var(--fs-base);
|
|
2824
2827
|
margin: 0;
|
|
2825
|
-
`,
|
|
2828
|
+
`,oHe=b.css`
|
|
2826
2829
|
color: var(--primary-action-default);
|
|
2827
2830
|
|
|
2828
2831
|
&:hover {
|
|
2829
2832
|
color: var(--primary-action-hover);
|
|
2830
2833
|
}
|
|
2831
|
-
`,
|
|
2834
|
+
`,aHe=b.css`
|
|
2832
2835
|
align-items: center;
|
|
2833
2836
|
display: flex;
|
|
2834
2837
|
gap: var(--spacing-sm);
|
|
@@ -2890,7 +2893,7 @@ to {
|
|
|
2890
2893
|
`,Rfe=b.css`
|
|
2891
2894
|
height: inherit;
|
|
2892
2895
|
width: inherit;
|
|
2893
|
-
`,Ffe=({width:t,height:e,...r})=>(0,I.jsxs)("svg",{role:"img",width:t??"214",height:e??"214",viewBox:"0 0 214 214",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-testid":"broken-image",...r,children:[(0,I.jsx)("rect",{width:"214",height:"214",fill:"#F9FAFB"}),(0,I.jsx)("rect",{width:"214",height:"214",fill:"url(#pattern0)"}),(0,I.jsxs)("defs",{children:[(0,I.jsx)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,I.jsx)("use",{xlinkHref:"#image0_761_4353",transform:"scale(0.0025)"})}),(0,I.jsx)("image",{id:"image0_761_4353",width:"400",height:"400",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD/SUwPLy8uoq/T+Y+peCxUu4EGiCwMrK8urK6vLy0unp6cnJaRNN0kYbBPgvTBuUuUanCGhgdWl14Fb6MzwYHnUqRIKZQgDDmgKGjx0JqAy8LItaOdPtL1EYxtH6jHJxwiZSCJybgMrAyvHUcDJr9dzN8YNFEGAOaxHUuWbrBDSsGhtYlUNYXdFs1srxyUn5Q447SADD6qAohNQkgcEAakV/EhNVcrQTzcCfMgHfJPzG26IkbBwpDXaIgNxqOGeVcKsiYk1mFTPxHUqAUM4SwLDO8uBvRgTKdwNz0pK7rawwmZWDamHnUBIuDD0Xnh+BYRko9zn3f48Hk1lLK8fHTGbNT5wLtXxuRS90NX4MgfkT+FoGzti3NeGlFuYfJleYhcCMos5yKX4DgfkTyCwD9/b2a+4JDlc/zD9WrnB+AhjW+Znxi04SGJSBw7ULyeHR23cffvv9j9d/vZuWh1pQS9O+5fMFEmAOa4HwuXRjBIoyMGlVJycnz1+83t75rAvLtq5cuXR383ZlEIOHDZnMqkSz0A8ZYS0UPxdvgkB+Gfjb0+eFWxWXff3m3eHh0bQQBqu3khY47cd8Ph8Cy/sHh/NpmVYh0AaBogxMXknjKdWAk/NWVy5f+vevP01bBK9lpEfHRywmTeJt7QRGWK2h5kINE1AZePmSFnsm+rDKwD9evv7z1dtJt1JAB4dHW1tvpkWmAZYm4Kd9y+ftE2AOq33mXLEBAirXhusPEk2p4nv67IVcqea8dx8/Xbt+ddpkVjGXz8qsGoBtfoVhtUmbazVD4IJl4FgQ169d3bi5PvZh+a9yRvb5KwNZ4DGGtUD4XPrcBIZ3A9MLO1UGvvrrneatkhfQwOrH+3eTp60sr5wsHSdP44R5E8Cw5k14ke0fHh19+bKnckZ/FhlHQ9dev3H95vqN5I07lYHP/tja3duvv6zGTT8++P7OrZv1p+lb8aMkTFJq5wQMqx3OrV5F9vTu/fbHTzs19+xbDaiJi937fnPj5o1kS+8/fvpz603l/Hr5tyoDf378QLcIyx9WHh8dHWvbmcqv+LB9AmnB2o+JK16EgKxKpZDHkKrgIFt5/PDejbXrSSy6FZhZBt77YTN5e1HzVkOzwq2S4Ns7AcNqj3ULV9JKyPcftlu4UGuXWF+7/ujhveRQKL8MlFVNuyFYTkqOL7cqf8JxFwhgWF1QoZkYtl6//bi900xb3Wglc0b885fdZ8+3kmWgXO+XJ4+S3qfUKQO7oX9FFBhWBZSIH739+4OTW6lee/zo3sZ6etIqswzU5Lqm2JNloKQ/PDpmo+TO/iuAYXVWmnMEpruBOXM352hxoadmzoirDNQS9p0vu/XByqQoA+sRBfoWwwok1tRQt169nfpdtC/yy0C5Vf0SdqWuAlB3A+WASQxauJAsKpONcMK8CWBY8yY89/YHi61292ouM3iKJci7Qu//8F3OwijdW9A/NSkXX2kZhG4vUgYmQQU6AcMKJFZ1qB8/Tp1ol1VpGff6jbXqX3bp0/wNrTS/niwDlZkSz7wbOFhnxUqrLnWGmlgwrBo4Mb6qGV796+cftZ9B99PQAFDPviSXsOtuIGVg99Wca4QBevNc8zdofG//oDKLWxvr3XcrDawGe3umtohRgrqroBuClZmWP9S6rZ9/epDTIHcDy9yiHGNYUZSaGue0Re1r169N/U03vsgvA0f7GtcHThlYz8fgWwzLQMSQKWSWgXq9jZ5kzrkbmPn4DncDQ3aXr0FjWF9J8P9tEThXGVi5r/FYpPmP7ywtLzO/PkYv1l8xrFh6hY82vwx8ufVGWy8kE9YuDvonedr2p8+asNf27ckzOaHLBDCsLqvjFluD+xoLjWbWn/z0oMFdHNxwO+aDYTmqOmtOWiGxs/NFj7zsHRzIDvTn8uVLmrxfW7t28RuOze5rnF8G5jy+Myswftc2AQyrbeIdvF6x4d+7D9vlG47/vP1td6l4plqLJO5+d3s22xqWgQvY1zhzF4cOKkJI0whgWNPI9OVzLeN6ufVXcm9S2Zb+0dpx2da50AyXWa0mF4Xmb2iVuYtD5uM758qFkxdOAMNauASLDEAepF208iPQ6k09IZwzyV20mVkGNruvceYuDvlZc2Z3CGBY3dGi7Uh2Pn85l1sV8RU7miY9K7MMVJuZG1ppcJe5r/HH7c85Dxu2jZvrNUEAw2qCYsA2tMdDzpMulZnJszSZtXlno/Jbfdh4GZj5eptiX+PTJXZhn6ZM+M8xrPASzpaAdigtT7Gft5G/3324fWtdtxEnf5hZBhYLo5JbULGv8SThPn+CYfVRfS1fKO79zZy8jEav5xmbgF9UGagseJJ5Zilj/RDDiqVXM9HWu9W1q1e09kqjJ/lazd41KgzLhpW5hD1zRlyrwNjXuBmxvVrBsLz0zMumxobkQeV972oWPWiQpXaKPSEyy8DMhVHsa5wnYx/PqpiD6COGPuW8v38wbdXVYHXo5pllVhptPbh3dxqevb2DYmCVs/+UFkY9ffYyOWmlLZL1xF/OLuwqA5OtTYucz4MSYIQVVLjZw675l/zO7YobfxpD6QGdSo+TY1xazVoUmvl8DBtaza5rP36JYfVD51KWldZTfK/xVOnEb4dr1659PBzfOb5YGJVcws6+xt84cnRhAhjWhRFGa2Bl+ht0tNChcqWCFm2Vs8yfEc/c15jX25TxclxDAMOqgeP51ZXpr6WYXKkgBGOvEctcGCXv4/U2nh1ooVlhWAvFv4iLa0JKw6jKVaNaqXDr1plXV+g0PRo9CjPz+Rj2NR4R46BZAhhWszwDtCa30lxV5coGzcc/+9+fule4vr4mX/v06cv7j9vFnFfjZWDmhlYCyqLQAL2qrRAxrLZId+k6sqRKw1KM8ixtjKV/yvFmLowaDsea3NdYDfKW07IQHGNYfewDMixNh9fcLixDyZwRzywDNVLL3Nf4w/ZOsSq1HAzHPSeAYfW0A2g56PMXr5LJZy6Mkv01+3obvdprd29fZalmzWSvyTg5oScEMKyeCD2epgYvd+5svH9/pvQrn5RfBr76650Mq/zbymNZj+yv8qvyh+XHdzQG1I5dejwouf1WuQWOjQlgWMbiJlK7d3dTU0SVD0JnvvBdhvL02YvkW05VBmbua1y5mZ/uXe7u7v306H7lGrFEknztRQDD8tLznNmoMFTZpb2xyr/LLAPb3NdYgywVsHhWWaZ+HmNY/dT9W9aq1G7eWHsxfA+FysCcF77r5l3jZaAeNqwfqeFZ3zTr8RGG1WPxv6Z+9eqVX5880m2+a1qgdTnRJVQGFjPiX39d/f8qAzP3Nc5/vQ2eVc26T58memefUPQ6V21opeULSQSZ+xprc5ifHz9Iep9GapmP74wCw7NGKPp5gGH1U/dvWS9qX+PyLg6aTdcrLdZvrMnCtMfWaHn9tyhLR3hWCUbvDjGs3kleTrjx19tk7mtc3sVBs/6aTR+9U1rrLW7eXNMUe826VjyrLGKvjtlxtFdyn0lWZWDO9nsaCv329LmWcZ758cRfVABqp1BN4U98c+aDogwcvWFszK2KU2VeAwurnU0rPEutnWmdv7gTwLDcFa7Kb077GicnrTSvL+/b3vlcBFXpVv98hWdVCcdnGFbv+kDhVioG6zNXRfb7s5e6hVd/2uBu4P27Wgyhg/ozVQZqT/fR2oUatyraYZxVz7Of3yY6WT+hGGedXwZqCXvyhe8aUv3y5GFOGahlVioDR9vJJ92qkADPMu6Ks6WGYc3GLd6viruBGgcld2EfGwpNS1XLIHJeb6ORmspALYsftZPpVsX5eNaIGwcigGH1oht8LQMTcmsOW2XgaEa8Bo3KwCePH+SUgXKrURmoBs/lVkUAeFaNEH37KtGD+4bDMt/MMrCYEc8pA3/NKwNlfOUyUGxncKtCETzLsmfOkBTrsGaAFuYnGlgNV1ql/7NUXhhVk17+Lg6Tj+/M7FZFPIVn5azP2rjJ/lk1Gsb+CsOKrV9d9MtLOcusVAY+f/F6tNSgpkFtSpWzL1XlLg4XdKsiqkzP2ttP3NmsyZGvOk4Aw+q4QDOGpxe+b97eSM6vZ+5rrLuBObs4KFbVgBqsjQXdiFsVbeZ41tjV+asTAQzLSc1/csnc0ErOMo99jceANuhWRct41hjhXv0Vw7KSW0MhbZOgzRLqs1IZ+HIr6/U2mfsaT9vFoXG3KvLCs+r1Nf4Ww/IRN/P1NloYlbmvcebrbSrLQGGdk1sVguFZPh33PJlgWOeh1eFzmy0DMze0kvdpCXvlSoi5ulWhA57V4f44r9AwrHmRba3dzBlxlYGN72us7fdGT9uU823BrYrL4Vll7H04Xt4/OOxDnq45Dp60WV5OrjjXUGhyYdQkE7WT+Xqbmn2NW3OrUfyHR0f167NGZ/7fv5+MjjmISIARVkTV/olZS9iTVqVTKxdGTaZ98TJQbbbvVoOLDveiyfSsycT5JBABDCuQWN9CHT4bOBhcfftoytG0GfGx03U3UJuFJu2vvK/xWAv660LcqggDz5qUw/ITDCuerMOnbVaTZpVfBs6wr/EktQW6VREMnjUpit8nGFYwTTPLwPIL32syHG5o9Uj/W3OOvtKEff3rbRbuVkX8hWf9939/KuDJjJLjx8mf8EnXCCR6atfC7XM8xeS6hldJCJlloB7f0asDk/8aJx/f6YhbjbBUupW+1esXR+dwEJQAhhVDuOGkVVYZOG1hVDlPmVQjZaDa7JRb7Xz+IrMuZ1o+1vt4yn/lOCIBDCuAavllYPKF78q22cd3jo+12cOrLkBUJNPGVkV4t26x7UwXhLpQDBjWhfDN+8fDMlB7WqU3tKpZGFUOMvPxnWQZOGpzYBJVE0ajEzpyoOGVZrg6EgxhzEwACWdGN/cfZpaB8ov6GfFRoM0+vjNqNsTBg/t3Q8RJkPUEMKx6Pgv7VmXgynL6hRH1C6NG0eeXgZmP74xaDnFw97vbDK9CKJUMEsNKImr7BA2shiut0mVg4/sa5+zi0DaOC1/v1sZ68kVkF74IDbREAMNqCXTmZfLLwMx9jTPLwMzHdzKz6M5pm3c2fri72Z14iOSCBDCsCwJs8ueZZWDmjLjKwJx9jTUFZlkG6k6FKkHtE92kQrS1aAIY1qIVGF5/HmXgo4f3kkvYMx/f6QSj7CC0NExloKwq5+5qdquc2AkCbC+zeBnyy8DMfY0zX29zcnL65u/3Wr60eARNRCB70hB1bY3lC03Q7GobGNbildENrJwnmXNmxHVrMXNfY/lU5d57i8dBBBCYToCScDqbtr45OT1ZXa67J9js622U1tHR8cnpaVv5cR0INEYAw2oM5cwNabCjB5prJlwODmQwicIt8/U2p6enQ7PCrWaWix8ukkDdf9gXGVfPri0TqclYc1I10+dFGajlCzUtFF/J9Q6PjuVZyTM5AQLdJMAcVld00dT75Uur06I5ODz6z+/PJyfIM/c1VrOUgdPY8nkgAoywuiKWBj41dZ9GWD/e/34sVpWBvzx5WDP4Ks5XyxpYMWk1Ro+/RiTAHFaHVCsGUCrxKmPSfnu7u/uagNe3Okd77+mTyjPLH2pdaH29WT6ZYwh0nACG1S2B5FnTDEuBaqJKTzsfHx//8iS9r7HOpwzslrpEc2ECzGFdGGHTDSQnszL382N+vWllaG/xBDCsxWswGYEGWXKlyc8zP6EMzATFaeEIUBJ2UbLB7PvyYKJqhuBUVNZM3s/QID+BQHcIzPKvRHeiN45EvjPDgimVgbiVca8gNQyru33gXHf3VAYyadVdLYmsIQIYVkMg59CMRli6zZfTsIZVw4VWLGHPocU5gQlgWJ0WT2VhssSjDOy0hATXKAEm3RvFOYfGNHrSuyj0Z7JtlYHDmS4GVpNs+MSTACOsALpWTmZRBgZQjhCbJoBhNU10Du1NTmZRBs4BM00GIIBhBRBJIY4ms7gbGEMwopwPAeaw5sN1Dq2qBlw6XUrOwc/hyjQJga4QYITVFSVy4sCtcihxjjEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="})]})]}),Bfe=100;function LF({alt:t,src:e,srcSet:r,className:n,imgClassName:o,variant:a="inline",width:i,height:l,errorFallbackSrc:s,...u}){let[c,d]=(0,ai.useState)(!0),[f,p]=(0,ai.useState)(""),{currentSrc:m,currentSrcSet:h,tryFallback:g}=Jue({src:e??"",srcSet:r,errorFallbackSrc:s,logContext:"Image"}),v="The text you provided is not a valid URL";(0,ai.useEffect)(()=>{p("")},[e,r]);let y=(0,ai.useCallback)(()=>{let S="";try{if(m==="")d(!1);else{let E=String(m).startsWith("//")?`https://${m}`:String(m);if(!lue(E,{allowRelative:!0,isSecure:!0}))throw Error(v)}S=""}catch{S=v,d(!1)}p(S)},[p,m]),x=(0,ai.useRef)(y);return x.current=y,(0,ai.useEffect)(()=>{x.current()},[m]),(0,I.jsxs)("span",{className:n,css:[_fe,c?Mfe:null,a==="fill-container"?Ofe:null],children:[m&&!f?(0,I.jsx)("img",{...u,className:o,alt:t,src:m,srcSet:h,css:[ER,a==="fill-container"?Rfe:null,c?Nfe:$R],loading:"lazy",width:i,height:l,onLoad:()=>{p(""),m&&d(!0);let S=setTimeout(()=>{d(!1)},Bfe);return()=>clearTimeout(S)},onError:()=>{if(g()){d(!0);return}p("Image failed to load"),d(!1)}}):null,m&&f?(0,I.jsxs)("span",{style:{display:"inline-flex",position:"relative",...a==="fill-container"?{}:{width:i,height:l}},children:[(0,I.jsx)(Ffe,{css:[kfe,ER,$R],"data-testid":"broken-image"}),(0,I.jsx)(QR,{message:f,css:Pfe,truncated:!0})]}):null]})}var dHe=b.css`
|
|
2896
|
+
`,Ffe=({width:t,height:e,...r})=>(0,I.jsxs)("svg",{role:"img",width:t??"214",height:e??"214",viewBox:"0 0 214 214",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","data-testid":"broken-image",...r,children:[(0,I.jsx)("rect",{width:"214",height:"214",fill:"#F9FAFB"}),(0,I.jsx)("rect",{width:"214",height:"214",fill:"url(#pattern0)"}),(0,I.jsxs)("defs",{children:[(0,I.jsx)("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,I.jsx)("use",{xlinkHref:"#image0_761_4353",transform:"scale(0.0025)"})}),(0,I.jsx)("image",{id:"image0_761_4353",width:"400",height:"400",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAABX2lDQ1BJQ0MgUHJvZmlsZQAAKJFtkMFLAlEQxj/NEFIyQaJDhz1EEFiYdupmRhp5WCyxhA7rc3ODdXvsrkSn+ge6RATRPTpGBF46CP0DQVDQqVu3LoGXkm2eW61W8xjmx8fMvOED/GGFcz0AoG7YZiG7IK1vlKXgC/wYQ4ReVGEWT8tynlrwXfuj/QCfqPfTYlertBTZv3o9W8mdhmcblxN/+/tiqKpajOoHZZJx0wZ8CWJ51+aCD4hjJh1FfCy45vKF4IrLN92etUKG+I54hGlKlfiZOF7p0Ws9XNcb7OsGcX1YNYqrVEcpx5FHFhKK0GHDhEKcwyJ59P/MXHcmgx1w7FH/NmrQaFJCmhROW1TiZRhgmEGcOIkEZUp4/dtDT7PIh/lD+op72mYMuNaAYeZpk0dANATclrliKj/O+toBayuVdDnUBAZPHOetBASngM6j47w3HadzDgw8Aa32JyLnYb5bLiabAAAAOGVYSWZNTQAqAAAACAABh2kABAAAAAEAAAAaAAAAAAACoAIABAAAAAEAAAGQoAMABAAAAAEAAAGQAAAAADj5TfYAABuPSURBVHgB7Z0Ld9RG1kX94GmMAYcECJAwyZq1vv//czKLDEMghkB4GIPf9ne6FRq5W60qt9Vq3aPNypoR3erSvftUTuqWSqXl/YPDJf5AAAIQiEBgJUKQxAgBCEBgQADDoh9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD0AAAmEIYFhhpCJQCEAAw6IPQAACYQhgWGGkIlAIQADDog9AAAJhCGBYYaQiUAhAAMOiD/SUwPLy8uoq/T+Y+peCxUu4EGiCwMrK8urK6vLy0unp6cnJaRNN0kYbBPgvTBuUuUanCGhgdWl14Fb6MzwYHnUqRIKZQgDDmgKGjx0JqAy8LItaOdPtL1EYxtH6jHJxwiZSCJybgMrAyvHUcDJr9dzN8YNFEGAOaxHUuWbrBDSsGhtYlUNYXdFs1srxyUn5Q447SADD6qAohNQkgcEAakV/EhNVcrQTzcCfMgHfJPzG26IkbBwpDXaIgNxqOGeVcKsiYk1mFTPxHUqAUM4SwLDO8uBvRgTKdwNz0pK7rawwmZWDamHnUBIuDD0Xnh+BYRko9zn3f48Hk1lLK8fHTGbNT5wLtXxuRS90NX4MgfkT+FoGzti3NeGlFuYfJleYhcCMos5yKX4DgfkTyCwD9/b2a+4JDlc/zD9WrnB+AhjW+Znxi04SGJSBw7ULyeHR23cffvv9j9d/vZuWh1pQS9O+5fMFEmAOa4HwuXRjBIoyMGlVJycnz1+83t75rAvLtq5cuXR383ZlEIOHDZnMqkSz0A8ZYS0UPxdvgkB+Gfjb0+eFWxWXff3m3eHh0bQQBqu3khY47cd8Ph8Cy/sHh/NpmVYh0AaBogxMXknjKdWAk/NWVy5f+vevP01bBK9lpEfHRywmTeJt7QRGWK2h5kINE1AZePmSFnsm+rDKwD9evv7z1dtJt1JAB4dHW1tvpkWmAZYm4Kd9y+ftE2AOq33mXLEBAirXhusPEk2p4nv67IVcqea8dx8/Xbt+ddpkVjGXz8qsGoBtfoVhtUmbazVD4IJl4FgQ169d3bi5PvZh+a9yRvb5KwNZ4DGGtUD4XPrcBIZ3A9MLO1UGvvrrneatkhfQwOrH+3eTp60sr5wsHSdP44R5E8Cw5k14ke0fHh19+bKnckZ/FhlHQ9dev3H95vqN5I07lYHP/tja3duvv6zGTT8++P7OrZv1p+lb8aMkTFJq5wQMqx3OrV5F9vTu/fbHTzs19+xbDaiJi937fnPj5o1kS+8/fvpz603l/Hr5tyoDf378QLcIyx9WHh8dHWvbmcqv+LB9AmnB2o+JK16EgKxKpZDHkKrgIFt5/PDejbXrSSy6FZhZBt77YTN5e1HzVkOzwq2S4Ns7AcNqj3ULV9JKyPcftlu4UGuXWF+7/ujhveRQKL8MlFVNuyFYTkqOL7cqf8JxFwhgWF1QoZkYtl6//bi900xb3Wglc0b885fdZ8+3kmWgXO+XJ4+S3qfUKQO7oX9FFBhWBZSIH739+4OTW6lee/zo3sZ6etIqswzU5Lqm2JNloKQ/PDpmo+TO/iuAYXVWmnMEpruBOXM352hxoadmzoirDNQS9p0vu/XByqQoA+sRBfoWwwok1tRQt169nfpdtC/yy0C5Vf0SdqWuAlB3A+WASQxauJAsKpONcMK8CWBY8yY89/YHi61292ouM3iKJci7Qu//8F3OwijdW9A/NSkXX2kZhG4vUgYmQQU6AcMKJFZ1qB8/Tp1ol1VpGff6jbXqX3bp0/wNrTS/niwDlZkSz7wbOFhnxUqrLnWGmlgwrBo4Mb6qGV796+cftZ9B99PQAFDPviSXsOtuIGVg99Wca4QBevNc8zdofG//oDKLWxvr3XcrDawGe3umtohRgrqroBuClZmWP9S6rZ9/epDTIHcDy9yiHGNYUZSaGue0Re1r169N/U03vsgvA0f7GtcHThlYz8fgWwzLQMSQKWSWgXq9jZ5kzrkbmPn4DncDQ3aXr0FjWF9J8P9tEThXGVi5r/FYpPmP7ywtLzO/PkYv1l8xrFh6hY82vwx8ufVGWy8kE9YuDvonedr2p8+asNf27ckzOaHLBDCsLqvjFluD+xoLjWbWn/z0oMFdHNxwO+aDYTmqOmtOWiGxs/NFj7zsHRzIDvTn8uVLmrxfW7t28RuOze5rnF8G5jy+Myswftc2AQyrbeIdvF6x4d+7D9vlG47/vP1td6l4plqLJO5+d3s22xqWgQvY1zhzF4cOKkJI0whgWNPI9OVzLeN6ufVXcm9S2Zb+0dpx2da50AyXWa0mF4Xmb2iVuYtD5uM758qFkxdOAMNauASLDEAepF208iPQ6k09IZwzyV20mVkGNruvceYuDvlZc2Z3CGBY3dGi7Uh2Pn85l1sV8RU7miY9K7MMVJuZG1ppcJe5r/HH7c85Dxu2jZvrNUEAw2qCYsA2tMdDzpMulZnJszSZtXlno/Jbfdh4GZj5eptiX+PTJXZhn6ZM+M8xrPASzpaAdigtT7Gft5G/3324fWtdtxEnf5hZBhYLo5JbULGv8SThPn+CYfVRfS1fKO79zZy8jEav5xmbgF9UGagseJJ5Zilj/RDDiqVXM9HWu9W1q1e09kqjJ/lazd41KgzLhpW5hD1zRlyrwNjXuBmxvVrBsLz0zMumxobkQeV972oWPWiQpXaKPSEyy8DMhVHsa5wnYx/PqpiD6COGPuW8v38wbdXVYHXo5pllVhptPbh3dxqevb2DYmCVs/+UFkY9ffYyOWmlLZL1xF/OLuwqA5OtTYucz4MSYIQVVLjZw675l/zO7YobfxpD6QGdSo+TY1xazVoUmvl8DBtaza5rP36JYfVD51KWldZTfK/xVOnEb4dr1659PBzfOb5YGJVcws6+xt84cnRhAhjWhRFGa2Bl+ht0tNChcqWCFm2Vs8yfEc/c15jX25TxclxDAMOqgeP51ZXpr6WYXKkgBGOvEctcGCXv4/U2nh1ooVlhWAvFv4iLa0JKw6jKVaNaqXDr1plXV+g0PRo9CjPz+Rj2NR4R46BZAhhWszwDtCa30lxV5coGzcc/+9+fule4vr4mX/v06cv7j9vFnFfjZWDmhlYCyqLQAL2qrRAxrLZId+k6sqRKw1KM8ixtjKV/yvFmLowaDsea3NdYDfKW07IQHGNYfewDMixNh9fcLixDyZwRzywDNVLL3Nf4w/ZOsSq1HAzHPSeAYfW0A2g56PMXr5LJZy6Mkv01+3obvdprd29fZalmzWSvyTg5oScEMKyeCD2epgYvd+5svH9/pvQrn5RfBr76650Mq/zbymNZj+yv8qvyh+XHdzQG1I5dejwouf1WuQWOjQlgWMbiJlK7d3dTU0SVD0JnvvBdhvL02YvkW05VBmbua1y5mZ/uXe7u7v306H7lGrFEknztRQDD8tLznNmoMFTZpb2xyr/LLAPb3NdYgywVsHhWWaZ+HmNY/dT9W9aq1G7eWHsxfA+FysCcF77r5l3jZaAeNqwfqeFZ3zTr8RGG1WPxv6Z+9eqVX5880m2+a1qgdTnRJVQGFjPiX39d/f8qAzP3Nc5/vQ2eVc26T58memefUPQ6V21opeULSQSZ+xprc5ifHz9Iep9GapmP74wCw7NGKPp5gGH1U/dvWS9qX+PyLg6aTdcrLdZvrMnCtMfWaHn9tyhLR3hWCUbvDjGs3kleTrjx19tk7mtc3sVBs/6aTR+9U1rrLW7eXNMUe826VjyrLGKvjtlxtFdyn0lWZWDO9nsaCv329LmWcZ758cRfVABqp1BN4U98c+aDogwcvWFszK2KU2VeAwurnU0rPEutnWmdv7gTwLDcFa7Kb077GicnrTSvL+/b3vlcBFXpVv98hWdVCcdnGFbv+kDhVioG6zNXRfb7s5e6hVd/2uBu4P27Wgyhg/ozVQZqT/fR2oUatyraYZxVz7Of3yY6WT+hGGedXwZqCXvyhe8aUv3y5GFOGahlVioDR9vJJ92qkADPMu6Ks6WGYc3GLd6viruBGgcld2EfGwpNS1XLIHJeb6ORmspALYsftZPpVsX5eNaIGwcigGH1oht8LQMTcmsOW2XgaEa8Bo3KwCePH+SUgXKrURmoBs/lVkUAeFaNEH37KtGD+4bDMt/MMrCYEc8pA3/NKwNlfOUyUGxncKtCETzLsmfOkBTrsGaAFuYnGlgNV1ql/7NUXhhVk17+Lg6Tj+/M7FZFPIVn5azP2rjJ/lk1Gsb+CsOKrV9d9MtLOcusVAY+f/F6tNSgpkFtSpWzL1XlLg4XdKsiqkzP2ttP3NmsyZGvOk4Aw+q4QDOGpxe+b97eSM6vZ+5rrLuBObs4KFbVgBqsjQXdiFsVbeZ41tjV+asTAQzLSc1/csnc0ErOMo99jceANuhWRct41hjhXv0Vw7KSW0MhbZOgzRLqs1IZ+HIr6/U2mfsaT9vFoXG3KvLCs+r1Nf4Ww/IRN/P1NloYlbmvcebrbSrLQGGdk1sVguFZPh33PJlgWOeh1eFzmy0DMze0kvdpCXvlSoi5ulWhA57V4f44r9AwrHmRba3dzBlxlYGN72us7fdGT9uU823BrYrL4Vll7H04Xt4/OOxDnq45Dp60WV5OrjjXUGhyYdQkE7WT+Xqbmn2NW3OrUfyHR0f167NGZ/7fv5+MjjmISIARVkTV/olZS9iTVqVTKxdGTaZ98TJQbbbvVoOLDveiyfSsycT5JBABDCuQWN9CHT4bOBhcfftoytG0GfGx03U3UJuFJu2vvK/xWAv660LcqggDz5qUw/ITDCuerMOnbVaTZpVfBs6wr/EktQW6VREMnjUpit8nGFYwTTPLwPIL32syHG5o9Uj/W3OOvtKEff3rbRbuVkX8hWf9939/KuDJjJLjx8mf8EnXCCR6atfC7XM8xeS6hldJCJlloB7f0asDk/8aJx/f6YhbjbBUupW+1esXR+dwEJQAhhVDuOGkVVYZOG1hVDlPmVQjZaDa7JRb7Xz+IrMuZ1o+1vt4yn/lOCIBDCuAavllYPKF78q22cd3jo+12cOrLkBUJNPGVkV4t26x7UwXhLpQDBjWhfDN+8fDMlB7WqU3tKpZGFUOMvPxnWQZOGpzYBJVE0ajEzpyoOGVZrg6EgxhzEwACWdGN/cfZpaB8ov6GfFRoM0+vjNqNsTBg/t3Q8RJkPUEMKx6Pgv7VmXgynL6hRH1C6NG0eeXgZmP74xaDnFw97vbDK9CKJUMEsNKImr7BA2shiut0mVg4/sa5+zi0DaOC1/v1sZ68kVkF74IDbREAMNqCXTmZfLLwMx9jTPLwMzHdzKz6M5pm3c2fri72Z14iOSCBDCsCwJs8ueZZWDmjLjKwJx9jTUFZlkG6k6FKkHtE92kQrS1aAIY1qIVGF5/HmXgo4f3kkvYMx/f6QSj7CC0NExloKwq5+5qdquc2AkCbC+zeBnyy8DMfY0zX29zcnL65u/3Wr60eARNRCB70hB1bY3lC03Q7GobGNbildENrJwnmXNmxHVrMXNfY/lU5d57i8dBBBCYToCScDqbtr45OT1ZXa67J9js622U1tHR8cnpaVv5cR0INEYAw2oM5cwNabCjB5prJlwODmQwicIt8/U2p6enQ7PCrWaWix8ukkDdf9gXGVfPri0TqclYc1I10+dFGajlCzUtFF/J9Q6PjuVZyTM5AQLdJMAcVld00dT75Uur06I5ODz6z+/PJyfIM/c1VrOUgdPY8nkgAoywuiKWBj41dZ9GWD/e/34sVpWBvzx5WDP4Ks5XyxpYMWk1Ro+/RiTAHFaHVCsGUCrxKmPSfnu7u/uagNe3Okd77+mTyjPLH2pdaH29WT6ZYwh0nACG1S2B5FnTDEuBaqJKTzsfHx//8iS9r7HOpwzslrpEc2ECzGFdGGHTDSQnszL382N+vWllaG/xBDCsxWswGYEGWXKlyc8zP6EMzATFaeEIUBJ2UbLB7PvyYKJqhuBUVNZM3s/QID+BQHcIzPKvRHeiN45EvjPDgimVgbiVca8gNQyru33gXHf3VAYyadVdLYmsIQIYVkMg59CMRli6zZfTsIZVw4VWLGHPocU5gQlgWJ0WT2VhssSjDOy0hATXKAEm3RvFOYfGNHrSuyj0Z7JtlYHDmS4GVpNs+MSTACOsALpWTmZRBgZQjhCbJoBhNU10Du1NTmZRBs4BM00GIIBhBRBJIY4ms7gbGEMwopwPAeaw5sN1Dq2qBlw6XUrOwc/hyjQJga4QYITVFSVy4sCtcihxjjEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBsBDMtNUfKBgDEBDMtYXFKDgBuB/we75KcVO2CRagAAAABJRU5ErkJggg=="})]})]}),Bfe=100;function LF({alt:t,src:e,srcSet:r,className:n,imgClassName:o,variant:a="inline",width:i,height:l,errorFallbackSrc:s,...u}){let[c,d]=(0,ai.useState)(!0),[f,p]=(0,ai.useState)(""),{currentSrc:m,currentSrcSet:h,tryFallback:g}=Jue({src:e??"",srcSet:r,errorFallbackSrc:s,logContext:"Image"}),v="The text you provided is not a valid URL";(0,ai.useEffect)(()=>{p("")},[e,r]);let y=(0,ai.useCallback)(()=>{let S="";try{if(m==="")d(!1);else{let E=String(m).startsWith("//")?`https://${m}`:String(m);if(!lue(E,{allowRelative:!0,isSecure:!0}))throw Error(v)}S=""}catch{S=v,d(!1)}p(S)},[p,m]),x=(0,ai.useRef)(y);return x.current=y,(0,ai.useEffect)(()=>{x.current()},[m]),(0,I.jsxs)("span",{className:n,css:[_fe,c?Mfe:null,a==="fill-container"?Ofe:null],children:[m&&!f?(0,I.jsx)("img",{...u,className:o,alt:t,src:m,srcSet:h,css:[ER,a==="fill-container"?Rfe:null,c?Nfe:$R],loading:"lazy",width:i,height:l,onLoad:()=>{p(""),m&&d(!0);let S=setTimeout(()=>{d(!1)},Bfe);return()=>clearTimeout(S)},onError:()=>{if(g()){d(!0);return}p("Image failed to load"),d(!1)}}):null,m&&f?(0,I.jsxs)("span",{style:{display:"inline-flex",position:"relative",...a==="fill-container"?{}:{width:i,height:l}},children:[(0,I.jsx)(Ffe,{css:[kfe,ER,$R],"data-testid":"broken-image"}),(0,I.jsx)(QR,{message:f,css:Pfe,truncated:!0})]}):null]})}var fHe=b.css`
|
|
2894
2897
|
align-items: center;
|
|
2895
2898
|
box-sizing: border-box;
|
|
2896
2899
|
border-radius: var(--rounded-base);
|
|
@@ -2920,19 +2923,19 @@ to {
|
|
|
2920
2923
|
margin: unset;
|
|
2921
2924
|
}
|
|
2922
2925
|
}
|
|
2923
|
-
`,fHe=b.css`
|
|
2924
|
-
border: 1px dashed var(--gray-800);
|
|
2925
2926
|
`,pHe=b.css`
|
|
2927
|
+
border: 1px dashed var(--gray-800);
|
|
2928
|
+
`,mHe=b.css`
|
|
2926
2929
|
display: block;
|
|
2927
2930
|
font-weight: var(--fw-bold);
|
|
2928
2931
|
margin: 0 0 var(--spacing-base);
|
|
2929
2932
|
max-width: 13rem;
|
|
2930
|
-
`,
|
|
2933
|
+
`,gHe=b.css`
|
|
2931
2934
|
display: block;
|
|
2932
2935
|
max-width: 10rem;
|
|
2933
2936
|
max-height: 4rem;
|
|
2934
2937
|
margin: 0 auto;
|
|
2935
|
-
`,
|
|
2938
|
+
`,hHe=b.css`
|
|
2936
2939
|
color: var(--gray-500);
|
|
2937
2940
|
display: -webkit-box;
|
|
2938
2941
|
-webkit-line-clamp: 1;
|
|
@@ -2944,7 +2947,7 @@ to {
|
|
|
2944
2947
|
white-space: normal;
|
|
2945
2948
|
position: absolute;
|
|
2946
2949
|
bottom: calc(var(--spacing-base) * 3.8);
|
|
2947
|
-
`,
|
|
2950
|
+
`,vHe=b.css`
|
|
2948
2951
|
align-items: center;
|
|
2949
2952
|
background: var(--brand-secondary-3);
|
|
2950
2953
|
border-radius: 0 var(--rounded-md) 0 var(--rounded-md);
|
|
@@ -2958,23 +2961,23 @@ to {
|
|
|
2958
2961
|
position: absolute;
|
|
2959
2962
|
top: 0;
|
|
2960
2963
|
right: 0;
|
|
2961
|
-
`;var
|
|
2964
|
+
`;var bHe=b.css`
|
|
2962
2965
|
position: absolute;
|
|
2963
2966
|
bottom: var(--spacing-sm);
|
|
2964
2967
|
right: var(--spacing-xs);
|
|
2965
2968
|
max-height: 1rem;
|
|
2966
|
-
`,
|
|
2969
|
+
`,yHe=b.css`
|
|
2967
2970
|
font-size: var(--fs-xs);
|
|
2968
2971
|
gap: var(--spacing-sm);
|
|
2969
2972
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
2970
2973
|
text-transform: uppercase;
|
|
2971
|
-
`,
|
|
2974
|
+
`,xHe=b.css`
|
|
2972
2975
|
position: absolute;
|
|
2973
2976
|
bottom: var(--spacing-base);
|
|
2974
2977
|
gap: var(--spacing-sm);
|
|
2975
2978
|
font-size: var(--fs-xs);
|
|
2976
2979
|
overflow: hidden;
|
|
2977
|
-
`;var
|
|
2980
|
+
`;var wHe=b.css`
|
|
2978
2981
|
align-items: center;
|
|
2979
2982
|
box-sizing: border-box;
|
|
2980
2983
|
border-radius: var(--rounded-base);
|
|
@@ -3000,22 +3003,22 @@ to {
|
|
|
3000
3003
|
margin: unset;
|
|
3001
3004
|
}
|
|
3002
3005
|
}
|
|
3003
|
-
`,
|
|
3006
|
+
`,SHe=b.css`
|
|
3004
3007
|
width: 10rem;
|
|
3005
3008
|
height: 4rem;
|
|
3006
3009
|
margin: 0 auto;
|
|
3007
|
-
`,
|
|
3010
|
+
`,EHe=b.css`
|
|
3008
3011
|
width: 5rem;
|
|
3009
3012
|
height: var(--spacing-sm);
|
|
3010
3013
|
margin: var(--spacing-sm) 0;
|
|
3011
|
-
|
|
3014
|
+
`,$He=b.css`
|
|
3012
3015
|
animation: ${Vy} 1s linear infinite alternate;
|
|
3013
3016
|
border-radius: var(--rounded-base);
|
|
3014
|
-
`;var
|
|
3017
|
+
`;var IHe=b.css`
|
|
3015
3018
|
position: relative;
|
|
3016
3019
|
width: 50px;
|
|
3017
3020
|
margin-bottom: var(--spacing-base);
|
|
3018
|
-
`,
|
|
3021
|
+
`,DHe=b.css`
|
|
3019
3022
|
position: absolute;
|
|
3020
3023
|
inset: 0;
|
|
3021
3024
|
margin: auto;
|
|
@@ -3054,44 +3057,44 @@ to {
|
|
|
3054
3057
|
`,IR=b.css`
|
|
3055
3058
|
text-decoration: none;
|
|
3056
3059
|
color: currentColor;
|
|
3057
|
-
`,
|
|
3060
|
+
`,LHe=b.css`
|
|
3058
3061
|
border: calc(${NF} + 1px) solid var(--primary-action-active);
|
|
3059
3062
|
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
3060
3063
|
`,DR=b.css`
|
|
3061
3064
|
flex-direction: row;
|
|
3062
3065
|
justify-content: flex-start;
|
|
3063
|
-
`,zfe=(0,MF.forwardRef)(({orientation:t="vertical",children:e,...r},n)=>{if("linkManagerComponent"in r){let{linkManagerComponent:o,...a}=r;return(0,I.jsx)(o,{css:[TR,IR,t==="horizontal"?DR:void 0],ref:n,...a,children:e})}return(0,I.jsx)("a",{ref:n,css:[TR,IR,t==="horizontal"?DR:void 0],...r,children:e})});zfe.displayName="LinkTile";var
|
|
3066
|
+
`,zfe=(0,MF.forwardRef)(({orientation:t="vertical",children:e,...r},n)=>{if("linkManagerComponent"in r){let{linkManagerComponent:o,...a}=r;return(0,I.jsx)(o,{css:[TR,IR,t==="horizontal"?DR:void 0],ref:n,...a,children:e})}return(0,I.jsx)("a",{ref:n,css:[TR,IR,t==="horizontal"?DR:void 0],...r,children:e})});zfe.displayName="LinkTile";var NHe=b.css`
|
|
3064
3067
|
overflow: visible;
|
|
3065
3068
|
|
|
3066
3069
|
&::after {
|
|
3067
3070
|
display: none;
|
|
3068
3071
|
}
|
|
3069
|
-
`;var
|
|
3072
|
+
`;var PHe=b.css`
|
|
3070
3073
|
font-size: var(--fs-base);
|
|
3071
|
-
`,
|
|
3074
|
+
`,OHe=b.css`
|
|
3072
3075
|
color: var(--gray-500);
|
|
3073
3076
|
font-size: var(--fs-sm);
|
|
3074
3077
|
line-height: 1.2;
|
|
3075
|
-
`;var
|
|
3078
|
+
`;var FHe=b.css`
|
|
3076
3079
|
position: absolute;
|
|
3077
3080
|
top: 0;
|
|
3078
3081
|
left: 0;
|
|
3079
|
-
`,
|
|
3082
|
+
`,BHe=b.css`
|
|
3080
3083
|
align-items: center;
|
|
3081
3084
|
display: flex;
|
|
3082
3085
|
gap: var(--spacing-sm);
|
|
3083
3086
|
margin: 0 0 var(--spacing-md);
|
|
3084
3087
|
position: relative;
|
|
3085
|
-
`,
|
|
3088
|
+
`,VHe=b.css`
|
|
3086
3089
|
align-items: center;
|
|
3087
3090
|
display: flex;
|
|
3088
3091
|
gap: var(--spacing-base);
|
|
3089
3092
|
padding: 0 var(--spacing-base);
|
|
3090
|
-
`,VHe=b.css`
|
|
3091
|
-
margin-top: 0;
|
|
3092
3093
|
`,jHe=b.css`
|
|
3093
|
-
margin-
|
|
3094
|
+
margin-top: 0;
|
|
3094
3095
|
`,zHe=b.css`
|
|
3096
|
+
margin-bottom: var(--spacing-base);
|
|
3097
|
+
`,HHe=b.css`
|
|
3095
3098
|
background: var(--white);
|
|
3096
3099
|
display: flex;
|
|
3097
3100
|
padding: var(--spacing-base);
|
|
@@ -3100,7 +3103,7 @@ to {
|
|
|
3100
3103
|
height: 100%;
|
|
3101
3104
|
position: relative;
|
|
3102
3105
|
z-index: var(--z-10);
|
|
3103
|
-
`;var
|
|
3106
|
+
`;var XHe=b.css``,JHe=b.css`
|
|
3104
3107
|
animation: var(--duration-fast) var(--timing-ease-out);
|
|
3105
3108
|
align-items: flex-start;
|
|
3106
3109
|
display: grid;
|
|
@@ -3108,11 +3111,11 @@ to {
|
|
|
3108
3111
|
gap: var(--spacing-sm);
|
|
3109
3112
|
background-color: white;
|
|
3110
3113
|
flex: 1;
|
|
3111
|
-
`,
|
|
3114
|
+
`,qHe=b.css`
|
|
3112
3115
|
display: flex;
|
|
3113
3116
|
background-color: white;
|
|
3114
3117
|
border-radius: var(--rounded-sm);
|
|
3115
|
-
`;var
|
|
3118
|
+
`;var eWe=b.css`
|
|
3116
3119
|
/* swatch-default: gray-100 / gray-200 */
|
|
3117
3120
|
--swatch-default-bg: #f3f4f6;
|
|
3118
3121
|
--swatch-default-border: #e5e7eb;
|
|
@@ -3152,7 +3155,7 @@ to {
|
|
|
3152
3155
|
/* swatch-red: FFC6C6 / F0BBBB */
|
|
3153
3156
|
--swatch-red-bg: #ffc6c6;
|
|
3154
3157
|
--swatch-red-border: #f0bbbb;
|
|
3155
|
-
`,
|
|
3158
|
+
`,tWe=b.css`
|
|
3156
3159
|
border-radius: var(--rounded-base);
|
|
3157
3160
|
border: 1px solid var(--variant-border);
|
|
3158
3161
|
background: var(--variant-bg);
|
|
@@ -3163,7 +3166,7 @@ to {
|
|
|
3163
3166
|
text-overflow: ellipsis;
|
|
3164
3167
|
white-space: nowrap;
|
|
3165
3168
|
max-width: 100%;
|
|
3166
|
-
`,
|
|
3169
|
+
`,rWe={default:b.css`
|
|
3167
3170
|
// 20px
|
|
3168
3171
|
width: 1.25rem;
|
|
3169
3172
|
height: 1.25rem;
|
|
@@ -3171,7 +3174,7 @@ to {
|
|
|
3171
3174
|
// 16px
|
|
3172
3175
|
width: 1rem;
|
|
3173
3176
|
height: 1rem;
|
|
3174
|
-
`};var
|
|
3177
|
+
`};var nWe=b.css`
|
|
3175
3178
|
background: transparent;
|
|
3176
3179
|
border: none;
|
|
3177
3180
|
border-radius: 0 var(--rounded-base) var(--rounded-base) 0;
|
|
@@ -3180,7 +3183,7 @@ to {
|
|
|
3180
3183
|
&:hover {
|
|
3181
3184
|
color: var(--action-destructive-default);
|
|
3182
3185
|
}
|
|
3183
|
-
`,
|
|
3186
|
+
`,oWe=b.css`
|
|
3184
3187
|
position: relative;
|
|
3185
3188
|
cursor: pointer;
|
|
3186
3189
|
transition:
|
|
@@ -3190,16 +3193,16 @@ to {
|
|
|
3190
3193
|
background: color-mix(in srgb, var(--variant-bg), var(--typography-base) 5%);
|
|
3191
3194
|
border-color: color-mix(in srgb, var(--variant-border), var(--typography-base) 5%);
|
|
3192
3195
|
}
|
|
3193
|
-
`,
|
|
3196
|
+
`,aWe=b.css`
|
|
3194
3197
|
white-space: nowrap;
|
|
3195
3198
|
overflow: hidden;
|
|
3196
3199
|
text-overflow: ellipsis;
|
|
3197
3200
|
min-width: 0;
|
|
3198
|
-
`,
|
|
3201
|
+
`,iWe=b.css`
|
|
3199
3202
|
position: absolute;
|
|
3200
3203
|
bottom: 0.1rem;
|
|
3201
3204
|
right: 0.1rem;
|
|
3202
|
-
`;var
|
|
3205
|
+
`;var lWe=b.css`
|
|
3203
3206
|
align-items: center;
|
|
3204
3207
|
border-radius: var(--rounded-full);
|
|
3205
3208
|
border: 1px solid var(--variant-border);
|
|
@@ -3209,7 +3212,7 @@ to {
|
|
|
3209
3212
|
max-width: 100%;
|
|
3210
3213
|
min-width: 0;
|
|
3211
3214
|
overflow: hidden;
|
|
3212
|
-
`,
|
|
3215
|
+
`,uWe={xs:b.css`
|
|
3213
3216
|
font-size: var(--fs-xs);
|
|
3214
3217
|
gap: var(--spacing-xs);
|
|
3215
3218
|
`,sm:b.css`
|
|
@@ -3218,46 +3221,46 @@ to {
|
|
|
3218
3221
|
`,md:b.css`
|
|
3219
3222
|
font-size: var(--fs-base);
|
|
3220
3223
|
gap: var(--spacing-base);
|
|
3221
|
-
`};var
|
|
3224
|
+
`};var dWe=b.css`
|
|
3222
3225
|
display: grid;
|
|
3223
3226
|
gap: var(--spacing-sm);
|
|
3224
|
-
`,dWe=b.css`
|
|
3225
|
-
grid-template-columns: 1rem auto;
|
|
3226
3227
|
`,fWe=b.css`
|
|
3227
|
-
grid-template-columns: auto
|
|
3228
|
+
grid-template-columns: 1rem auto;
|
|
3228
3229
|
`,pWe=b.css`
|
|
3230
|
+
grid-template-columns: auto 1rem;
|
|
3231
|
+
`,mWe=b.css`
|
|
3229
3232
|
grid-template-columns: 1rem auto 1rem;
|
|
3230
|
-
`;var
|
|
3233
|
+
`;var gWe=b.css`
|
|
3231
3234
|
overflow: hidden;
|
|
3232
3235
|
text-overflow: ellipsis;
|
|
3233
3236
|
white-space: nowrap;
|
|
3234
3237
|
max-width: 100%;
|
|
3235
|
-
`;var
|
|
3238
|
+
`;var vWe=b.css`
|
|
3236
3239
|
margin-block: var(--spacing-sm);
|
|
3237
|
-
`,
|
|
3240
|
+
`,bWe=b.css`
|
|
3238
3241
|
background: var(--gray-100);
|
|
3239
3242
|
margin-top: var(--spacing-sm);
|
|
3240
3243
|
position: relative;
|
|
3241
3244
|
overflow: hidden;
|
|
3242
3245
|
height: 0.25rem;
|
|
3243
|
-
`,
|
|
3246
|
+
`,yWe=b.css`
|
|
3244
3247
|
position: absolute;
|
|
3245
3248
|
inset: 0;
|
|
3246
3249
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
3247
|
-
`,
|
|
3250
|
+
`,xWe=b.css`
|
|
3248
3251
|
font-size: var(--fs-sm);
|
|
3249
|
-
`;var
|
|
3252
|
+
`;var wWe=b.css`
|
|
3250
3253
|
display: flex block;
|
|
3251
3254
|
flex-direction: column;
|
|
3252
3255
|
gap: var(--spacing-sm);
|
|
3253
|
-
`,
|
|
3256
|
+
`,SWe=b.css`
|
|
3254
3257
|
color: var(--gray-400);
|
|
3255
3258
|
font-weight: var(--fw-medium);
|
|
3256
3259
|
font-size: var(--fs-sm);
|
|
3257
3260
|
text-transform: uppercase;
|
|
3258
|
-
`;var
|
|
3261
|
+
`;var $We=b.css`
|
|
3259
3262
|
position: relative;
|
|
3260
|
-
|
|
3263
|
+
`,TWe=b.css`
|
|
3261
3264
|
background: var(--gray-50);
|
|
3262
3265
|
border-top: 1px solid var(--gray-200);
|
|
3263
3266
|
border-bottom: 1px solid var(--gray-200);
|
|
@@ -3277,7 +3280,7 @@ to {
|
|
|
3277
3280
|
margin-block: 0;
|
|
3278
3281
|
}
|
|
3279
3282
|
}
|
|
3280
|
-
`;var
|
|
3283
|
+
`;var DWe=b.css`
|
|
3281
3284
|
align-items: center;
|
|
3282
3285
|
background: var(--white);
|
|
3283
3286
|
border-radius: var(--rounded-base);
|
|
@@ -3285,11 +3288,11 @@ to {
|
|
|
3285
3288
|
display: flex;
|
|
3286
3289
|
min-height: 52px;
|
|
3287
3290
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
3288
|
-
`,DWe=b.css`
|
|
3289
|
-
box-shadow: var(--shadow-base);
|
|
3290
3291
|
`,AWe=b.css`
|
|
3291
|
-
|
|
3292
|
+
box-shadow: var(--shadow-base);
|
|
3292
3293
|
`,LWe=b.css`
|
|
3294
|
+
border-color: var(--brand-secondary-3);
|
|
3295
|
+
`,_We=b.css`
|
|
3293
3296
|
align-items: center;
|
|
3294
3297
|
border: none;
|
|
3295
3298
|
background: transparent;
|
|
@@ -3303,31 +3306,31 @@ to {
|
|
|
3303
3306
|
&:focus {
|
|
3304
3307
|
outline: none;
|
|
3305
3308
|
}
|
|
3306
|
-
`,
|
|
3309
|
+
`,MWe=b.css`
|
|
3307
3310
|
align-items: center;
|
|
3308
3311
|
cursor: pointer;
|
|
3309
3312
|
display: flex;
|
|
3310
3313
|
padding: var(--spacing-xs) var(--spacing-base) var(--spacing-xs);
|
|
3311
3314
|
flex-grow: 1;
|
|
3312
|
-
`,
|
|
3315
|
+
`,NWe=b.css`
|
|
3313
3316
|
align-items: center;
|
|
3314
3317
|
display: flex;
|
|
3315
3318
|
gap: var(--spacing-sm);
|
|
3316
3319
|
flex-grow: 1;
|
|
3317
3320
|
flex-wrap: wrap;
|
|
3318
|
-
`,
|
|
3321
|
+
`,kWe=b.css`
|
|
3319
3322
|
position: absolute;
|
|
3320
3323
|
height: 0;
|
|
3321
3324
|
width: 0;
|
|
3322
3325
|
opacity: 0;
|
|
3323
|
-
`,
|
|
3326
|
+
`,PWe=b.css`
|
|
3324
3327
|
border-radius: var(--rounded-full);
|
|
3325
3328
|
background: var(--brand-secondary-3);
|
|
3326
3329
|
color: var(--white);
|
|
3327
3330
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
3328
3331
|
min-width: 24px;
|
|
3329
3332
|
opacity: 0;
|
|
3330
|
-
`,
|
|
3333
|
+
`,OWe=b.css`
|
|
3331
3334
|
animation: ${jR} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
3332
3335
|
`;function Wfe(t){let e=t==="lg"?10:5;return b.keyframes`
|
|
3333
3336
|
0%, 100% {
|
|
@@ -3443,7 +3446,7 @@ to {
|
|
|
3443
3446
|
display: grid;
|
|
3444
3447
|
grid-template-columns: repeat(${t}, minmax(250px, 1fr));
|
|
3445
3448
|
gap: var(--spacing-base);
|
|
3446
|
-
`,
|
|
3449
|
+
`,GWe=(0,FF.forwardRef)(({gridCount:t=3,children:e,...r},n)=>(0,I.jsx)("div",{ref:n,"data-testid":"object-grid-container",css:spe(t),...r,children:e})),ZWe=b.css`
|
|
3447
3450
|
border: 1px solid var(--gray-300);
|
|
3448
3451
|
border-radius: var(--rounded-base);
|
|
3449
3452
|
background: var(--white);
|
|
@@ -3461,18 +3464,18 @@ to {
|
|
|
3461
3464
|
border: 1px solid var(--accent-dark);
|
|
3462
3465
|
}
|
|
3463
3466
|
}
|
|
3464
|
-
`,
|
|
3467
|
+
`,YWe=b.css`
|
|
3465
3468
|
cursor: pointer;
|
|
3466
3469
|
&:hover,
|
|
3467
3470
|
&:focus {
|
|
3468
3471
|
border: 1px solid var(--accent-dark);
|
|
3469
3472
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
3470
3473
|
}
|
|
3471
|
-
`,
|
|
3474
|
+
`,KWe=b.css`
|
|
3472
3475
|
display: flex;
|
|
3473
3476
|
flex: 1 1 0;
|
|
3474
3477
|
position: relative;
|
|
3475
|
-
`,
|
|
3478
|
+
`,XWe=b.css`
|
|
3476
3479
|
background: var(--gray-50);
|
|
3477
3480
|
border-radius: var(--rounded-base) var(--rounded-base) 0 0;
|
|
3478
3481
|
position: relative;
|
|
@@ -3483,57 +3486,57 @@ to {
|
|
|
3483
3486
|
overflow: hidden;
|
|
3484
3487
|
height: 100%;
|
|
3485
3488
|
z-index: 0;
|
|
3486
|
-
`,
|
|
3489
|
+
`,JWe=b.css`
|
|
3487
3490
|
display: grid;
|
|
3488
3491
|
grid-template-columns: 1fr auto;
|
|
3489
3492
|
padding: var(--spacing-sm);
|
|
3490
3493
|
gap: var(--spacing-sm);
|
|
3491
3494
|
min-height: 52px;
|
|
3492
3495
|
width: 100%;
|
|
3493
|
-
`,JWe=b.css`
|
|
3494
|
-
min-width: 0;
|
|
3495
3496
|
`,qWe=b.css`
|
|
3497
|
+
min-width: 0;
|
|
3498
|
+
`,QWe=b.css`
|
|
3496
3499
|
object-fit: cover;
|
|
3497
3500
|
width: 100%;
|
|
3498
3501
|
height: auto;
|
|
3499
|
-
`,
|
|
3502
|
+
`,eGe=b.css`
|
|
3500
3503
|
color: var(--gray-500);
|
|
3501
3504
|
font-size: var(--fs-sm);
|
|
3502
3505
|
white-space: nowrap;
|
|
3503
3506
|
overflow: hidden;
|
|
3504
3507
|
text-overflow: ellipsis;
|
|
3505
3508
|
max-width: 100%;
|
|
3506
|
-
`;var
|
|
3509
|
+
`;var rGe=b.css`
|
|
3507
3510
|
aspect-ratio: 16/9;
|
|
3508
3511
|
max-width: 100%;
|
|
3509
3512
|
max-height: 100%;
|
|
3510
3513
|
height: inherit;
|
|
3511
3514
|
width: inherit;
|
|
3512
3515
|
object-fit: contain;
|
|
3513
|
-
`,
|
|
3516
|
+
`,nGe=b.css`
|
|
3514
3517
|
aspect-ratio: 16/9;
|
|
3515
3518
|
width: 100%;
|
|
3516
3519
|
height: 100%;
|
|
3517
|
-
`,
|
|
3520
|
+
`,oGe=b.css`
|
|
3518
3521
|
display: flex;
|
|
3519
3522
|
width: 100%;
|
|
3520
3523
|
height: 100%;
|
|
3521
3524
|
padding: var(--spacing-sm);
|
|
3522
|
-
`,
|
|
3525
|
+
`,aGe=b.css`
|
|
3523
3526
|
position: relative;
|
|
3524
3527
|
display: flex;
|
|
3525
3528
|
align-items: center;
|
|
3526
3529
|
justify-content: center;
|
|
3527
3530
|
flex: 1;
|
|
3528
3531
|
height: 100%;
|
|
3529
|
-
`,
|
|
3532
|
+
`,iGe=b.css`
|
|
3530
3533
|
position: absolute;
|
|
3531
3534
|
width: 60%;
|
|
3532
3535
|
height: auto;
|
|
3533
3536
|
aspect-ratio: 1;
|
|
3534
3537
|
opacity: 0.05;
|
|
3535
3538
|
transform: rotateZ(-15deg) translate(35%, 30%);
|
|
3536
|
-
`,
|
|
3539
|
+
`,sGe=b.css`
|
|
3537
3540
|
align-items: center;
|
|
3538
3541
|
background: var(--gray-50);
|
|
3539
3542
|
display: flex;
|
|
@@ -3543,13 +3546,13 @@ to {
|
|
|
3543
3546
|
z-index: 1;
|
|
3544
3547
|
width: 24px;
|
|
3545
3548
|
height: 24px;
|
|
3546
|
-
`,
|
|
3549
|
+
`,lGe=b.css`
|
|
3547
3550
|
border-bottom-right-radius: var(--rounded-base);
|
|
3548
3551
|
left: var(--spacing-sm);
|
|
3549
|
-
`,
|
|
3552
|
+
`,uGe=b.css`
|
|
3550
3553
|
border-bottom-left-radius: var(--rounded-base);
|
|
3551
3554
|
right: var(--spacing-sm);
|
|
3552
|
-
`,
|
|
3555
|
+
`,cGe=b.css`
|
|
3553
3556
|
align-items: stretch;
|
|
3554
3557
|
border: none;
|
|
3555
3558
|
background: none;
|
|
@@ -3561,17 +3564,17 @@ to {
|
|
|
3561
3564
|
&:hover {
|
|
3562
3565
|
outline: none;
|
|
3563
3566
|
}
|
|
3564
|
-
`,
|
|
3567
|
+
`,dGe=b.css`
|
|
3565
3568
|
position: absolute;
|
|
3566
3569
|
bottom: var(--spacing-base);
|
|
3567
|
-
`,dGe=b.css`
|
|
3568
|
-
left: var(--spacing-base);
|
|
3569
3570
|
`,fGe=b.css`
|
|
3570
|
-
|
|
3571
|
+
left: var(--spacing-base);
|
|
3571
3572
|
`,pGe=b.css`
|
|
3573
|
+
right: var(--spacing-base);
|
|
3574
|
+
`,mGe=b.css`
|
|
3572
3575
|
animation: ${jR} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
3573
3576
|
opacity: 0;
|
|
3574
|
-
`;var
|
|
3577
|
+
`;var hGe=b.css`
|
|
3575
3578
|
color: var(--gray-500);
|
|
3576
3579
|
overflow: hidden;
|
|
3577
3580
|
text-overflow: ellipsis;
|
|
@@ -3579,22 +3582,22 @@ to {
|
|
|
3579
3582
|
min-width: 0;
|
|
3580
3583
|
max-width: 100%;
|
|
3581
3584
|
font-size: var(--fs-sm);
|
|
3582
|
-
`,
|
|
3585
|
+
`,vGe=b.css`
|
|
3583
3586
|
min-width: 50px;
|
|
3584
|
-
`;var
|
|
3587
|
+
`;var yGe=b.css`
|
|
3585
3588
|
border-radius: var(--rounded-base);
|
|
3586
3589
|
display: flex;
|
|
3587
3590
|
flex-direction: column;
|
|
3588
3591
|
gap: var(--spacing-sm);
|
|
3589
3592
|
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
3590
|
-
`;var
|
|
3593
|
+
`;var xGe=b.css`
|
|
3591
3594
|
aspect-ratio: 16/9;
|
|
3592
3595
|
max-width: 100%;
|
|
3593
3596
|
max-height: 100%;
|
|
3594
3597
|
height: auto;
|
|
3595
3598
|
padding: var(--spacing-sm);
|
|
3596
3599
|
overflow: hidden;
|
|
3597
|
-
`,
|
|
3600
|
+
`,CGe=b.css`
|
|
3598
3601
|
animation: ${df} 1s linear infinite alternate;
|
|
3599
3602
|
border-radius: var(--rounded-base);
|
|
3600
3603
|
background: var(--gray-300);
|
|
@@ -3602,13 +3605,13 @@ to {
|
|
|
3602
3605
|
width: 100%;
|
|
3603
3606
|
height: auto;
|
|
3604
3607
|
aspect-ratio: 1;
|
|
3605
|
-
`,
|
|
3608
|
+
`,wGe=b.css`
|
|
3606
3609
|
padding: 0 var(--spacing-sm) var(--spacing-sm);
|
|
3607
3610
|
min-height: 52px;
|
|
3608
|
-
`,
|
|
3611
|
+
`,SGe=b.css`
|
|
3609
3612
|
flex-grow: 1;
|
|
3610
3613
|
gap: var(--spacing-xs);
|
|
3611
|
-
`;var
|
|
3614
|
+
`;var $Ge=b.css`
|
|
3612
3615
|
background: var(--white);
|
|
3613
3616
|
display: grid;
|
|
3614
3617
|
gap: var(--spacing-sm);
|
|
@@ -3627,21 +3630,21 @@ to {
|
|
|
3627
3630
|
background: var(--gray-50);
|
|
3628
3631
|
outline: none;
|
|
3629
3632
|
}
|
|
3630
|
-
`,$Ge=b.css`
|
|
3631
|
-
align-items: center;
|
|
3632
3633
|
`,TGe=b.css`
|
|
3634
|
+
align-items: center;
|
|
3635
|
+
`,IGe=b.css`
|
|
3633
3636
|
display: grid;
|
|
3634
3637
|
gap: var(--spacing-sm);
|
|
3635
3638
|
justify-content: space-between;
|
|
3636
3639
|
flex-grow: 1;
|
|
3637
|
-
`,
|
|
3640
|
+
`,DGe=b.css`
|
|
3638
3641
|
display: flex;
|
|
3639
3642
|
gap: var(--spacing-sm);
|
|
3640
|
-
`,
|
|
3643
|
+
`,AGe=b.css`
|
|
3641
3644
|
> [role='listitem']:not(:first-of-type) {
|
|
3642
3645
|
border-top: 1px solid var(--gray-200);
|
|
3643
3646
|
}
|
|
3644
|
-
`,
|
|
3647
|
+
`,LGe=b.css`
|
|
3645
3648
|
align-items: center;
|
|
3646
3649
|
background: var(--gray-100);
|
|
3647
3650
|
color: var(--gray-500);
|
|
@@ -3650,30 +3653,30 @@ to {
|
|
|
3650
3653
|
height: 45px;
|
|
3651
3654
|
text-align: center;
|
|
3652
3655
|
font-size: var(--fs-xs);
|
|
3653
|
-
`,
|
|
3656
|
+
`,_Ge=b.css`
|
|
3654
3657
|
object-fit: cover;
|
|
3655
3658
|
width: 100%;
|
|
3656
3659
|
height: 100%;
|
|
3657
|
-
`,
|
|
3660
|
+
`,MGe=b.css`
|
|
3658
3661
|
animation: ${Vy} 1s linear infinite alternate;
|
|
3659
3662
|
background: var(--white);
|
|
3660
3663
|
display: flex;
|
|
3661
3664
|
gap: var(--spacing-sm);
|
|
3662
3665
|
flex-grow: 1;
|
|
3663
3666
|
padding: var(--spacing-sm);
|
|
3664
|
-
`,
|
|
3667
|
+
`,NGe=b.css`
|
|
3665
3668
|
flex-grow: 1;
|
|
3666
|
-
`;var
|
|
3669
|
+
`;var kGe=b.css`
|
|
3667
3670
|
animation: ${df} 1s linear infinite alternate;
|
|
3668
3671
|
border-radius: var(--rounded-base);
|
|
3669
3672
|
background: var(--gray-300);
|
|
3670
3673
|
display: block;
|
|
3671
3674
|
width: 80px;
|
|
3672
3675
|
height: 55px;
|
|
3673
|
-
`,
|
|
3676
|
+
`,PGe=b.css`
|
|
3674
3677
|
display: flex;
|
|
3675
3678
|
gap: var(--spacing-xs);
|
|
3676
|
-
`;var
|
|
3679
|
+
`;var RGe=b.css`
|
|
3677
3680
|
display: flex;
|
|
3678
3681
|
flex-direction: column;
|
|
3679
3682
|
gap: var(--spacing-xs);
|
|
@@ -3682,27 +3685,27 @@ to {
|
|
|
3682
3685
|
align-items: center;
|
|
3683
3686
|
flex-direction: row;
|
|
3684
3687
|
}
|
|
3685
|
-
`,
|
|
3688
|
+
`,FGe=b.css`
|
|
3686
3689
|
line-height: 1.25;
|
|
3687
|
-
`;var
|
|
3690
|
+
`;var VGe=Pe.css`
|
|
3688
3691
|
align-items: center;
|
|
3689
3692
|
display: flex;
|
|
3690
|
-
`,VGe=Pe.css`
|
|
3691
|
-
opacity: var(--opacity-50);
|
|
3692
3693
|
`,jGe=Pe.css`
|
|
3693
|
-
|
|
3694
|
+
opacity: var(--opacity-50);
|
|
3694
3695
|
`,zGe=Pe.css`
|
|
3695
|
-
|
|
3696
|
-
padding: var(--spacing-sm) var(--spacing-base);
|
|
3696
|
+
cursor: pointer-default;
|
|
3697
3697
|
`,HGe=Pe.css`
|
|
3698
|
+
display: block;
|
|
3698
3699
|
padding: var(--spacing-sm) var(--spacing-base);
|
|
3699
3700
|
`,WGe=Pe.css`
|
|
3701
|
+
padding: var(--spacing-sm) var(--spacing-base);
|
|
3702
|
+
`,GGe=Pe.css`
|
|
3700
3703
|
border-radius: var(--rounded-base);
|
|
3701
3704
|
background: var(--gray-200);
|
|
3702
|
-
`,
|
|
3705
|
+
`,UGe=Pe.css`
|
|
3703
3706
|
margin-left: var(--spacing-xs);
|
|
3704
3707
|
margin-right: var(--spacing-xs);
|
|
3705
|
-
`;var BF=(0,Uy.createContext)({id:"",label:"",hiddenLabel:void 0,errorMessage:void 0,handleManuallySetErrorMessage:()=>{}}),sl=()=>{let{id:t,label:e,hiddenLabel:r,errorMessage:n,handleManuallySetErrorMessage:o}=(0,Uy.useContext)(BF);return{id:t,label:e,hiddenLabel:r,errorMessage:n,handleManuallySetErrorMessage:o}},
|
|
3708
|
+
`;var BF=(0,Uy.createContext)({id:"",label:"",hiddenLabel:void 0,errorMessage:void 0,handleManuallySetErrorMessage:()=>{}}),sl=()=>{let{id:t,label:e,hiddenLabel:r,errorMessage:n,handleManuallySetErrorMessage:o}=(0,Uy.useContext)(BF);return{id:t,label:e,hiddenLabel:r,errorMessage:n,handleManuallySetErrorMessage:o}},YGe=b.css`
|
|
3706
3709
|
align-items: center;
|
|
3707
3710
|
border: none;
|
|
3708
3711
|
border-radius: var(--rounded-base);
|
|
@@ -3727,7 +3730,7 @@ to {
|
|
|
3727
3730
|
&:focus {
|
|
3728
3731
|
outline: none;
|
|
3729
3732
|
}
|
|
3730
|
-
`;var
|
|
3733
|
+
`;var XGe=b.css`
|
|
3731
3734
|
--hover-color: var(--accent-dark-hover);
|
|
3732
3735
|
--active-color: var(--accent-dark-active);
|
|
3733
3736
|
border: 1px solid transparent;
|
|
@@ -3751,7 +3754,7 @@ to {
|
|
|
3751
3754
|
opacity: 0.5;
|
|
3752
3755
|
cursor: default;
|
|
3753
3756
|
}
|
|
3754
|
-
`,
|
|
3757
|
+
`,JGe=b.css`
|
|
3755
3758
|
--text-color: var(--typography-inverted);
|
|
3756
3759
|
&:hover,
|
|
3757
3760
|
&:focus,
|
|
@@ -3767,7 +3770,7 @@ to {
|
|
|
3767
3770
|
background: var(--active-color);
|
|
3768
3771
|
color: var(--text-color);
|
|
3769
3772
|
}
|
|
3770
|
-
`,
|
|
3773
|
+
`,qGe=b.css`
|
|
3771
3774
|
--text-color: var(--typography-light);
|
|
3772
3775
|
&:hover:not([aria-disabled='true']),
|
|
3773
3776
|
&:focus:not([aria-disabled='true']),
|
|
@@ -3779,7 +3782,7 @@ to {
|
|
|
3779
3782
|
&[aria-pressed='true']:not([aria-disabled='true']) {
|
|
3780
3783
|
border-color: var(--active-color);
|
|
3781
3784
|
}
|
|
3782
|
-
`,
|
|
3785
|
+
`,QGe=b.css`
|
|
3783
3786
|
--text-color: var(--typography-inverted);
|
|
3784
3787
|
box-shadow: inset 0 0 0 1px transparent;
|
|
3785
3788
|
&:hover,
|
|
@@ -3793,17 +3796,17 @@ to {
|
|
|
3793
3796
|
background: var(--active-color);
|
|
3794
3797
|
border-color: var(--active-color);
|
|
3795
3798
|
}
|
|
3796
|
-
`;var
|
|
3799
|
+
`;var tUe=b.css`
|
|
3797
3800
|
align-items: center;
|
|
3798
3801
|
display: flex;
|
|
3799
3802
|
gap: var(--spacing-base);
|
|
3800
3803
|
justify-content: space-between;
|
|
3801
3804
|
margin-bottom: var(--spacing-sm);
|
|
3802
|
-
`,
|
|
3805
|
+
`,rUe=b.css`
|
|
3803
3806
|
align-items: center;
|
|
3804
3807
|
display: flex;
|
|
3805
3808
|
gap: var(--spacing-sm);
|
|
3806
|
-
`,
|
|
3809
|
+
`,nUe=b.css`
|
|
3807
3810
|
text-overflow: ellipsis;
|
|
3808
3811
|
white-space: nowrap;
|
|
3809
3812
|
overflow: hidden;
|
|
@@ -3827,7 +3830,7 @@ to {
|
|
|
3827
3830
|
font-weight: var(--fw-medium);
|
|
3828
3831
|
margin-bottom: var(--spacing-base);
|
|
3829
3832
|
width: 100%;
|
|
3830
|
-
`,
|
|
3833
|
+
`,iUe=(0,VF.forwardRef)(({legend:t,isDisabled:e,children:r,...n},o)=>(0,I.jsxs)("fieldset",{css:cpe,disabled:e,ref:o,...n,children:[(0,I.jsx)("legend",{css:dpe,children:t}),r]})),fpe=b.css`
|
|
3831
3834
|
margin-top: var(--spacing-xs);
|
|
3832
3835
|
background: var(--gray-50);
|
|
3833
3836
|
padding: var(--spacing-sm);
|
|
@@ -3937,6 +3940,11 @@ to {
|
|
|
3937
3940
|
cursor: not-allowed;
|
|
3938
3941
|
color: var(--gray-400);
|
|
3939
3942
|
}
|
|
3943
|
+
|
|
3944
|
+
&::-webkit-calendar-picker-indicator {
|
|
3945
|
+
color: var(--gray-500);
|
|
3946
|
+
opacity: var(--opacity-50);
|
|
3947
|
+
}
|
|
3940
3948
|
`,xpe=b.css`
|
|
3941
3949
|
background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath d='M6.34317 7.75732L4.92896 9.17154L12 16.2426L19.0711 9.17157L17.6569 7.75735L12 13.4142L6.34317 7.75732Z' fill='currentColor' /%3E%3C/svg%3E");
|
|
3942
3950
|
background-position: right var(--spacing-sm) center;
|
|
@@ -3946,7 +3954,7 @@ to {
|
|
|
3946
3954
|
`,GF=b.css`
|
|
3947
3955
|
display: flex; // used to correct overflow with chrome textarea
|
|
3948
3956
|
position: relative;
|
|
3949
|
-
`,
|
|
3957
|
+
`,dUe=b.css`
|
|
3950
3958
|
align-items: center;
|
|
3951
3959
|
background: var(--white);
|
|
3952
3960
|
border-radius: var(--rounded-md) 0 0 var(--rounded-md);
|
|
@@ -4075,7 +4083,7 @@ to {
|
|
|
4075
4083
|
`,Ipe=b.css`
|
|
4076
4084
|
resize: vertical;
|
|
4077
4085
|
min-height: 2rem;
|
|
4078
|
-
`,
|
|
4086
|
+
`,fUe=b.css`
|
|
4079
4087
|
align-items: center;
|
|
4080
4088
|
appearance: none;
|
|
4081
4089
|
box-sizing: border-box;
|
|
@@ -4162,7 +4170,7 @@ to {
|
|
|
4162
4170
|
flex-grow: 1;
|
|
4163
4171
|
position: relative;
|
|
4164
4172
|
max-width: 100%;
|
|
4165
|
-
`,
|
|
4173
|
+
`,hUe=b.css`
|
|
4166
4174
|
background: var(--brand-secondary-6);
|
|
4167
4175
|
border-radius: var(--rounded-sm);
|
|
4168
4176
|
padding: var(--spacing-sm);
|
|
@@ -4179,7 +4187,7 @@ to {
|
|
|
4179
4187
|
right: 0;
|
|
4180
4188
|
`,ll=t=>{let{id:e,label:r,caption:n,captionTestId:o,errorMessage:a,errorTestId:i,infoMessage:l,warningMessage:s,hiddenLabel:u,labelLeadingIcon:c,menuItems:d,title:f,hasOverriddenValue:p,onResetOverriddenValue:m,...h}=t;return{shellProps:{id:e,label:r,caption:n,captionTestId:o,errorMessage:a,infoMessage:l,warningMessage:s,errorTestId:i,hiddenLabel:u,labelLeadingIcon:c,menuItems:d,title:f,hasOverriddenValue:p,onResetOverriddenValue:m},innerProps:h}},ul=({label:t,labelLeadingIcon:e,labelTrailingIcon:r,hiddenLabel:n,id:o,errorMessage:a,warningMessage:i,infoMessage:l,caption:s,errorTestId:u,captionTestId:c,menuItems:d,actionItems:f,hasOverriddenValue:p,onResetOverriddenValue:m,title:h,children:g,isParameterGroup:v=!1,menuWithoutPortal:y,...x})=>{let[C,w]=(0,HF.useState)(void 0),S=$=>w($),E=a||C;return(0,I.jsxs)("div",{css:ype,...x,id:o,children:[n||h?null:(0,I.jsxs)(AR,{id:o,css:Bw,children:[e??null,t,r??null]}),h?(0,I.jsxs)(AR,{id:o,asSpan:!0,testId:"parameter-label",children:[e??null,h,r??null]}):null,(0,I.jsxs)("div",{css:GF,children:[f?(0,I.jsx)("div",{"data-action-bar":!0,css:[UF,$pe,d?b.css`
|
|
4181
4189
|
right: var(--spacing-md);
|
|
4182
|
-
`:void 0],children:f}):null,d?(0,I.jsx)(Mpe,{label:`${t} menu`,disabled:x.disabled,withoutPortal:y,children:d}):null,(0,I.jsx)(BF.Provider,{value:{id:o,label:t,hiddenLabel:n,errorMessage:E,handleManuallySetErrorMessage:$=>S($)},children:v?(0,I.jsx)("div",{style:{flexGrow:1},children:g}):(0,I.jsxs)(Ppe,{children:[g,p&&m?(0,I.jsx)(Ope,{onClick:m,tooltipProps:{portal:!y}}):null]})})]}),(0,I.jsx)(pf,{helperMessageTestId:c,helperMessage:s,errorTestId:u,errorMessage:E,warningMessage:i,infoMessage:l})]})},Ppe=({children:t})=>(0,I.jsx)("div",{css:Npe,children:t}),Ope=t=>(0,I.jsx)(Ry,{title:"The default value has been overridden",...t.tooltipProps,children:(0,I.jsx)("button",{type:"button",css:kpe,...t,children:(0,I.jsx)("span",{hidden:!0,children:"reset overridden value to default"})})}),
|
|
4190
|
+
`:void 0],children:f}):null,d?(0,I.jsx)(Mpe,{label:`${t} menu`,disabled:x.disabled,withoutPortal:y,children:d}):null,(0,I.jsx)(BF.Provider,{value:{id:o,label:t,hiddenLabel:n,errorMessage:E,handleManuallySetErrorMessage:$=>S($)},children:v?(0,I.jsx)("div",{style:{flexGrow:1},children:g}):(0,I.jsxs)(Ppe,{children:[g,p&&m?(0,I.jsx)(Ope,{onClick:m,tooltipProps:{portal:!y}}):null]})})]}),(0,I.jsx)(pf,{helperMessageTestId:c,helperMessage:s,errorTestId:u,errorMessage:E,warningMessage:i,infoMessage:l})]})},Ppe=({children:t})=>(0,I.jsx)("div",{css:Npe,children:t}),Ope=t=>(0,I.jsx)(Ry,{title:"The default value has been overridden",...t.tooltipProps,children:(0,I.jsx)("button",{type:"button",css:kpe,...t,children:(0,I.jsx)("span",{hidden:!0,children:"reset overridden value to default"})})}),yUe=(0,Ug.forwardRef)(({children:t,...e},r)=>{let{shellProps:n,innerProps:o}=ll(e);return(0,I.jsxs)(ul,{"data-test-id":"parameter-image",...n,children:[(0,I.jsx)(Rpe,{ref:r,...o}),t]})}),Rpe=(0,Ug.forwardRef)((t,e)=>{let{value:r}=t,{id:n,label:o,hiddenLabel:a,errorMessage:i}=sl(),l=(0,Ug.useDeferredValue)(r);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{css:Zg,type:"text",id:n,ref:e,"aria-label":a&&typeof o=="string"?o:void 0,autoComplete:"off",...t}),i||t.disablePreview?null:(0,I.jsx)(hpe,{imageSrc:l})]})}),CUe=(0,Qw.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{"data-testid":"parameter-input",...r,children:(0,I.jsx)(Fpe,{ref:e,...n})})}),Fpe=(0,Qw.forwardRef)(({enableMouseWheel:t=!1,...e},r)=>{let{id:n,label:o,hiddenLabel:a}=sl(),i=t!==!0&&e.type==="number";return(0,I.jsx)("input",{css:Zg,id:n,type:e.type||"text","aria-label":a&&typeof o=="string"?o:void 0,autoComplete:"off",ref:r,onWheel:i?oF:void 0,...e})});var SUe=(0,eS.forwardRef)(({disabled:t,onConnectLink:e,externalLink:r,...n},o)=>{let{shellProps:a,innerProps:i}=ll(n);return(0,I.jsx)(ul,{"data-testid":"link-parameter-editor",...a,label:i.value?a.label:"",title:!i.value&&typeof a.label=="string"?a.label:void 0,children:(0,I.jsx)(Bpe,{onConnectLink:e,externalLink:r,disabled:t,ref:o,...i})})}),Bpe=(0,eS.forwardRef)(({externalLink:t,onConnectLink:e,disabled:r,buttonText:n="Select link",...o},a)=>{let{id:i,label:l,hiddenLabel:s}=sl();return o.value?(0,I.jsxs)("div",{css:GF,children:[(0,I.jsx)("input",{type:"text",css:[Zg,Lpe(!!t)],readOnly:!!o.value,id:i,ref:a,"aria-label":s&&typeof l=="string"?l:void 0,...o}),(0,I.jsxs)("div",{css:Ape,children:[(0,I.jsx)(lf,{buttonType:"ghost",size:"sm",disabled:r,onClick:e,title:"edit current selection","data-testid":"edit-current-selection",children:"edit"}),t?(0,I.jsx)("a",{href:t,css:_pe,title:"Open link in new tab",target:"_blank",rel:"noopener noreferrer",children:(0,I.jsx)(_n,{icon:"arrows-expand-up-right",iconColor:"currentColor",size:"1rem"})}):null]})]}):(0,I.jsx)("div",{css:Dpe,children:(0,I.jsx)(lf,{buttonType:"ghost",size:"sm",disabled:r,onClick:e,children:n})})});var Qu="20px",ky=b.css`
|
|
4183
4191
|
background: var(--white);
|
|
4184
4192
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cline x1='4' y1='9' x2='16' y2='9' stroke='%236b7280' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
4185
4193
|
background-repeat: no-repeat;
|
|
@@ -4455,17 +4463,17 @@ to {
|
|
|
4455
4463
|
appearance: textfield;
|
|
4456
4464
|
-moz-appearance: textfield;
|
|
4457
4465
|
}
|
|
4458
|
-
`;function Fg(t){return Math.ceil(t.length*9.799999999999999+24)}function eme(t){if(t<=0)return[];if(t===1)return[[0]];if(t===2)return[[0,t-1]];let e=[];if(e.push([0,t-1]),t%2===1)e.push([Math.floor(t/2)]);else{let n=Math.floor(t/2)-1,o=Math.floor(t/2);e.push([n,o])}let r=4;for(;r<=t;){let n=[];for(let o=1;o<r;o+=2){let a=Math.round(o/r*(t-1));a>0&&a<t-1&&n.push(a)}n.length>0&&e.push(n),r*=2}return e}function Rw(t,e,r,n,o){let a=t/100*o,i=r/100*o,l=8,s=a-e/2-l/2,u=a+e/2+l/2,c=i-n/2-l/2,d=i+n/2+l/2;return!(u<c||d<s)}function tme(t,e,r){let n=t.map((l,s)=>({tick:l,index:s})).filter(({tick:l})=>l.label);if(n.length===0)return[];let o=e!==void 0?n.findIndex(({tick:l})=>l.position===e):-1,a=eme(n.length),i=new Set(a[0]||[]);o!==-1&&i.add(o);for(let l=1;l<a.length;l++){let s=new Set(i);for(let f of a[l])s.add(f);let u=Math.max(2,Math.floor(r/100));if(s.size>u)break;let c=Array.from(s).sort((f,p)=>f-p),d=!1;for(let f=0;f<c.length-1;f++){let p=n[c[f]],m=n[c[f+1]],h=Fg(p.tick.label||""),g=Fg(m.tick.label||"");if(Rw(p.tick.percentage,h,m.tick.percentage,g,r)){d=!0;break}}if(!d)i=s;else break}if(o!==-1&&i.has(o)){let l=n[o].tick,s=Fg(l.label||""),u=Array.from(i).sort((d,f)=>d-f),c=u.indexOf(o);if(c>0){let d=u[c-1],f=n[d].tick,p=Fg(f.label||"");Rw(f.percentage,p,l.percentage,s,r)&&i.delete(d)}if(c<u.length-1){let d=u[c+1],f=n[d].tick,p=Fg(f.label||"");Rw(l.percentage,s,f.percentage,p,r)&&i.delete(d)}}return n.map(({index:l},s)=>({tickIndex:l,isVisible:i.has(s),priority:i.has(s)?1:10}))}function rme({ticks:t,currentValue:e,containerWidth:r=300}){let n=(0,gf.useRef)(null),[o,a]=(0,gf.useState)(r);(0,gf.useEffect)(()=>{if(n.current){let s=new ResizeObserver(u=>{for(let c of u)a(c.contentRect.width)});return s.observe(n.current),a(n.current.offsetWidth),()=>s.disconnect()}},[]);let i=tme(t,e,o),l=new Map(i.map(s=>[s.tickIndex,s.isVisible]));return(0,I.jsx)("div",{ref:n,css:Xpe,children:t.map((s,u)=>({tick:s,index:u})).filter(({tick:s})=>s.label).map(({tick:s,index:u})=>{var c;let d=(c=l.get(u))!=null?c:!1;return(0,I.jsx)("div",{css:Jpe,style:{left:`${s.percentage}%`,opacity:d?1:0,pointerEvents:d?"auto":"none"},"data-position":s.percentage===0?"0":s.percentage===100?"100":void 0,title:s.label,children:s.label},`label-${u}-${s.position}`)})})}var rS=(0,ec.forwardRef)(({value:t,onChange:e,onBlur:r,min:n,max:o,step:a,options:i,showNumberInput:l=!i,disabled:s=!1,"aria-label":u,id:c,name:d},f)=>{let p=!!(i&&i.length>0),{min:m,max:h,step:g,smallTicks:v,largeTicks:y}=(0,ec.useMemo)(()=>{if(p&&i){if(i.length===0)return{min:0,max:0,step:1,smallTicks:[],largeTicks:[]};let F=i.length-1,j=F>0?F:1;return{min:0,max:F,step:1,smallTicks:[],largeTicks:i.map((R,O)=>({position:O,percentage:O/j*100,label:R.text,isLarge:!0}))}}let $=n??0,T=o??100,D=a!=null&&a>0?a:T-$>20?Math.ceil((T-$)/20):1,L=T-$,k=D>0?Math.floor(L/D):0,V=[];if(k<=100)for(let F=0;F<=k;F++){let j=$+F*D,R=(j-$)/L*100;V.push({position:j,percentage:R,isLarge:!1})}else{let F=Math.ceil(k/100);for(let j=0;j<=k;j+=F){let R=$+j*D,O=(R-$)/L*100;V.push({position:R,percentage:O,isLarge:!1})}}let P=[{position:$,percentage:0,label:$.toString(),isLarge:!0},{position:T,percentage:100,label:T.toString(),isLarge:!0}];if(L>=20){let F=$+L/2;P.push({position:F,percentage:50,label:Math.round(F).toString(),isLarge:!0})}return{min:$,max:T,step:D,smallTicks:V,largeTicks:P}},[p,i,n,o,a]),x=t==null||typeof t=="number"&&isNaN(t),C=x?m:Math.min(Math.max(t,m),h),w=(0,ec.useCallback)($=>{let T=Number($.target.value);e(T)},[e]),S=(0,ec.useCallback)($=>{if($.target.value==="")e(void 0);else{let T=Number($.target.value);e(isNaN(T)?void 0:T)}},[e]),E=h===m?0:(C-m)/(h-m)*100;return(0,I.jsxs)("div",{css:Vpe,children:[(0,I.jsxs)("div",{css:jpe,children:[(0,I.jsxs)("div",{css:zpe,children:[(0,I.jsxs)("div",{css:Hpe,children:[(0,I.jsx)("div",{css:Wpe}),(0,I.jsx)("div",{css:Gpe,style:{width:`${E}%`}})]}),(0,I.jsx)("input",{ref:f,type:"range",id:c,name:d,min:m,max:h,step:g,value:C,onChange:w,onBlur:r,disabled:s,"aria-label":u,"data-unset":x?"":void 0,css:Kpe})]}),(0,I.jsxs)("div",{css:Upe,children:[v.map(($,T)=>(0,I.jsx)("div",{css:Zpe,style:{left:`${$.percentage}%`}},`small-${T}`)),y.map(($,T)=>(0,I.jsx)("div",{css:Ype,style:{left:`${$.percentage}%`}},`large-${T}`))]}),y.some($=>$.label)&&(0,I.jsx)(rme,{ticks:y,currentValue:x?void 0:C})]}),l&&!p&&(0,I.jsx)("div",{css:qpe,children:(0,I.jsx)("input",{type:"number",value:x?"":t,onChange:S,onBlur:r,disabled:s,min:m,max:h,step:g,css:Qpe})})]})});rS.displayName="Slider";var nme=(0,tS.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{"data-testid":"parameter-number-slider",...r,children:(0,I.jsx)(KF,{ref:e,...n})})}),KF=(0,tS.forwardRef)(({...t},e)=>{let{id:r,label:n,hiddenLabel:o}=sl();return(0,I.jsx)(rS,{ref:e,id:r,"aria-label":o&&typeof n=="string"?n:void 0,...t})});nme.displayName="ParameterNumberSlider";KF.displayName="ParameterNumberSliderInner";var ome=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],ame=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var
|
|
4466
|
+
`;function Fg(t){return Math.ceil(t.length*9.799999999999999+24)}function eme(t){if(t<=0)return[];if(t===1)return[[0]];if(t===2)return[[0,t-1]];let e=[];if(e.push([0,t-1]),t%2===1)e.push([Math.floor(t/2)]);else{let n=Math.floor(t/2)-1,o=Math.floor(t/2);e.push([n,o])}let r=4;for(;r<=t;){let n=[];for(let o=1;o<r;o+=2){let a=Math.round(o/r*(t-1));a>0&&a<t-1&&n.push(a)}n.length>0&&e.push(n),r*=2}return e}function Rw(t,e,r,n,o){let a=t/100*o,i=r/100*o,l=8,s=a-e/2-l/2,u=a+e/2+l/2,c=i-n/2-l/2,d=i+n/2+l/2;return!(u<c||d<s)}function tme(t,e,r){let n=t.map((l,s)=>({tick:l,index:s})).filter(({tick:l})=>l.label);if(n.length===0)return[];let o=e!==void 0?n.findIndex(({tick:l})=>l.position===e):-1,a=eme(n.length),i=new Set(a[0]||[]);o!==-1&&i.add(o);for(let l=1;l<a.length;l++){let s=new Set(i);for(let f of a[l])s.add(f);let u=Math.max(2,Math.floor(r/100));if(s.size>u)break;let c=Array.from(s).sort((f,p)=>f-p),d=!1;for(let f=0;f<c.length-1;f++){let p=n[c[f]],m=n[c[f+1]],h=Fg(p.tick.label||""),g=Fg(m.tick.label||"");if(Rw(p.tick.percentage,h,m.tick.percentage,g,r)){d=!0;break}}if(!d)i=s;else break}if(o!==-1&&i.has(o)){let l=n[o].tick,s=Fg(l.label||""),u=Array.from(i).sort((d,f)=>d-f),c=u.indexOf(o);if(c>0){let d=u[c-1],f=n[d].tick,p=Fg(f.label||"");Rw(f.percentage,p,l.percentage,s,r)&&i.delete(d)}if(c<u.length-1){let d=u[c+1],f=n[d].tick,p=Fg(f.label||"");Rw(l.percentage,s,f.percentage,p,r)&&i.delete(d)}}return n.map(({index:l},s)=>({tickIndex:l,isVisible:i.has(s),priority:i.has(s)?1:10}))}function rme({ticks:t,currentValue:e,containerWidth:r=300}){let n=(0,gf.useRef)(null),[o,a]=(0,gf.useState)(r);(0,gf.useEffect)(()=>{if(n.current){let s=new ResizeObserver(u=>{for(let c of u)a(c.contentRect.width)});return s.observe(n.current),a(n.current.offsetWidth),()=>s.disconnect()}},[]);let i=tme(t,e,o),l=new Map(i.map(s=>[s.tickIndex,s.isVisible]));return(0,I.jsx)("div",{ref:n,css:Xpe,children:t.map((s,u)=>({tick:s,index:u})).filter(({tick:s})=>s.label).map(({tick:s,index:u})=>{var c;let d=(c=l.get(u))!=null?c:!1;return(0,I.jsx)("div",{css:Jpe,style:{left:`${s.percentage}%`,opacity:d?1:0,pointerEvents:d?"auto":"none"},"data-position":s.percentage===0?"0":s.percentage===100?"100":void 0,title:s.label,children:s.label},`label-${u}-${s.position}`)})})}var rS=(0,ec.forwardRef)(({value:t,onChange:e,onBlur:r,min:n,max:o,step:a,options:i,showNumberInput:l=!i,disabled:s=!1,"aria-label":u,id:c,name:d},f)=>{let p=!!(i&&i.length>0),{min:m,max:h,step:g,smallTicks:v,largeTicks:y}=(0,ec.useMemo)(()=>{if(p&&i){if(i.length===0)return{min:0,max:0,step:1,smallTicks:[],largeTicks:[]};let F=i.length-1,j=F>0?F:1;return{min:0,max:F,step:1,smallTicks:[],largeTicks:i.map((R,O)=>({position:O,percentage:O/j*100,label:R.text,isLarge:!0}))}}let $=n??0,T=o??100,D=a!=null&&a>0?a:T-$>20?Math.ceil((T-$)/20):1,L=T-$,k=D>0?Math.floor(L/D):0,V=[];if(k<=100)for(let F=0;F<=k;F++){let j=$+F*D,R=(j-$)/L*100;V.push({position:j,percentage:R,isLarge:!1})}else{let F=Math.ceil(k/100);for(let j=0;j<=k;j+=F){let R=$+j*D,O=(R-$)/L*100;V.push({position:R,percentage:O,isLarge:!1})}}let P=[{position:$,percentage:0,label:$.toString(),isLarge:!0},{position:T,percentage:100,label:T.toString(),isLarge:!0}];if(L>=20){let F=$+L/2;P.push({position:F,percentage:50,label:Math.round(F).toString(),isLarge:!0})}return{min:$,max:T,step:D,smallTicks:V,largeTicks:P}},[p,i,n,o,a]),x=t==null||typeof t=="number"&&isNaN(t),C=x?m:Math.min(Math.max(t,m),h),w=(0,ec.useCallback)($=>{let T=Number($.target.value);e(T)},[e]),S=(0,ec.useCallback)($=>{if($.target.value==="")e(void 0);else{let T=Number($.target.value);e(isNaN(T)?void 0:T)}},[e]),E=h===m?0:(C-m)/(h-m)*100;return(0,I.jsxs)("div",{css:Vpe,children:[(0,I.jsxs)("div",{css:jpe,children:[(0,I.jsxs)("div",{css:zpe,children:[(0,I.jsxs)("div",{css:Hpe,children:[(0,I.jsx)("div",{css:Wpe}),(0,I.jsx)("div",{css:Gpe,style:{width:`${E}%`}})]}),(0,I.jsx)("input",{ref:f,type:"range",id:c,name:d,min:m,max:h,step:g,value:C,onChange:w,onBlur:r,disabled:s,"aria-label":u,"data-unset":x?"":void 0,css:Kpe})]}),(0,I.jsxs)("div",{css:Upe,children:[v.map(($,T)=>(0,I.jsx)("div",{css:Zpe,style:{left:`${$.percentage}%`}},`small-${T}`)),y.map(($,T)=>(0,I.jsx)("div",{css:Ype,style:{left:`${$.percentage}%`}},`large-${T}`))]}),y.some($=>$.label)&&(0,I.jsx)(rme,{ticks:y,currentValue:x?void 0:C})]}),l&&!p&&(0,I.jsx)("div",{css:qpe,children:(0,I.jsx)("input",{type:"number",value:x?"":t,onChange:S,onBlur:r,disabled:s,min:m,max:h,step:g,css:Qpe})})]})});rS.displayName="Slider";var nme=(0,tS.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{"data-testid":"parameter-number-slider",...r,children:(0,I.jsx)(KF,{ref:e,...n})})}),KF=(0,tS.forwardRef)(({...t},e)=>{let{id:r,label:n,hiddenLabel:o}=sl();return(0,I.jsx)(rS,{ref:e,id:r,"aria-label":o&&typeof n=="string"?n:void 0,...t})});nme.displayName="ParameterNumberSlider";KF.displayName="ParameterNumberSliderInner";var ome=[{label:"Heading 1",type:"h1"},{label:"Heading 2",type:"h2"},{label:"Heading 3",type:"h3"},{label:"Heading 4",type:"h4"},{label:"Heading 5",type:"h5"},{label:"Heading 6",type:"h6"},{label:"Bullet List",type:"unorderedList"},{label:"Ordered List",type:"orderedList"},{label:"Link",type:"link"},{label:"Blockquote",type:"quote"},{label:"Code Block",type:"code"},{label:"Table",type:"table"},{label:"Asset",type:"asset"},{label:"Dynamic Token",type:"variable"}],ame=[{label:"Bold",type:"bold"},{label:"Italic",type:"italic"},{label:"Underline",type:"underline"},{label:"Strikethrough",type:"strikethrough"},{label:"Code",type:"code"},{label:"Superscript",type:"superscript"},{label:"Subscript",type:"subscript"}];var LUe={required:!1,formatting:{builtIn:ame.map(t=>t.type)},elements:{builtIn:ome.map(t=>t.type)},elementsConfig:{asset:{allowedTypes:["image"]}}},ime=Mo,nS=Mo.importDOM(),sme=nS.pre;nS.pre=t=>t.childNodes.length===1&&Array.from(t.childNodes).some(e=>e.nodeName==="CODE")?null:sme(t);ime.importDOM=function(){return nS};var NUe=Pe.css`
|
|
4459
4467
|
font-weight: 700;
|
|
4460
|
-
`,NUe=Pe.css`
|
|
4461
|
-
font-style: italic;
|
|
4462
4468
|
`,kUe=Pe.css`
|
|
4463
|
-
|
|
4469
|
+
font-style: italic;
|
|
4464
4470
|
`,PUe=Pe.css`
|
|
4465
|
-
text-decoration:
|
|
4471
|
+
text-decoration: underline;
|
|
4466
4472
|
`,OUe=Pe.css`
|
|
4467
|
-
text-decoration:
|
|
4473
|
+
text-decoration: line-through;
|
|
4468
4474
|
`,RUe=Pe.css`
|
|
4475
|
+
text-decoration: underline line-through;
|
|
4476
|
+
`,FUe=Pe.css`
|
|
4469
4477
|
background-color: var(--gray-100);
|
|
4470
4478
|
border-radius: var(--rounded-sm);
|
|
4471
4479
|
display: inline-block;
|
|
@@ -4475,13 +4483,13 @@ to {
|
|
|
4475
4483
|
font-size: var(--fs-sm);
|
|
4476
4484
|
padding-left: var(--spacing-xs);
|
|
4477
4485
|
padding-right: var(--spacing-xs);
|
|
4478
|
-
`,
|
|
4486
|
+
`,BUe=Pe.css`
|
|
4479
4487
|
vertical-align: super;
|
|
4480
4488
|
font-size: smaller;
|
|
4481
|
-
`,
|
|
4489
|
+
`,VUe=Pe.css`
|
|
4482
4490
|
vertical-align: sub;
|
|
4483
4491
|
font-size: smaller;
|
|
4484
|
-
`,
|
|
4492
|
+
`,jUe=Pe.css`
|
|
4485
4493
|
${zy}
|
|
4486
4494
|
${Zw}
|
|
4487
4495
|
text-decoration: underline;
|
|
@@ -4497,38 +4505,38 @@ to {
|
|
|
4497
4505
|
font-size: clamp(var(--fs-base), var(--fluid-font-base), 1.15rem);
|
|
4498
4506
|
`,mme=Pe.css`
|
|
4499
4507
|
font-size: var(--fs-base);
|
|
4500
|
-
`,
|
|
4508
|
+
`,zUe=Pe.css`
|
|
4501
4509
|
${ume}
|
|
4502
4510
|
${mf(!0)}
|
|
4503
4511
|
${il}
|
|
4504
|
-
`,
|
|
4512
|
+
`,HUe=Pe.css`
|
|
4505
4513
|
${cme}
|
|
4506
4514
|
${mf(!0)}
|
|
4507
4515
|
${il}
|
|
4508
|
-
`,
|
|
4516
|
+
`,WUe=Pe.css`
|
|
4509
4517
|
${dme}
|
|
4510
4518
|
${mf(!0)}
|
|
4511
4519
|
${il}
|
|
4512
|
-
`,
|
|
4520
|
+
`,GUe=Pe.css`
|
|
4513
4521
|
${fme}
|
|
4514
4522
|
${mf(!0)}
|
|
4515
4523
|
${il}
|
|
4516
|
-
`,
|
|
4524
|
+
`,UUe=Pe.css`
|
|
4517
4525
|
${pme}
|
|
4518
4526
|
${mf(!0)}
|
|
4519
4527
|
${il}
|
|
4520
|
-
`,
|
|
4528
|
+
`,ZUe=Pe.css`
|
|
4521
4529
|
${mme}
|
|
4522
4530
|
${mf(!0)}
|
|
4523
4531
|
${il}
|
|
4524
|
-
`,
|
|
4532
|
+
`,YUe=Pe.css`
|
|
4525
4533
|
line-height: 1.5;
|
|
4526
4534
|
margin-bottom: var(--spacing-base);
|
|
4527
4535
|
|
|
4528
4536
|
&:last-child {
|
|
4529
4537
|
margin-bottom: 0;
|
|
4530
4538
|
}
|
|
4531
|
-
`,
|
|
4539
|
+
`,KUe=Pe.css`
|
|
4532
4540
|
${il}
|
|
4533
4541
|
display: block;
|
|
4534
4542
|
list-style: decimal;
|
|
@@ -4556,7 +4564,7 @@ to {
|
|
|
4556
4564
|
}
|
|
4557
4565
|
}
|
|
4558
4566
|
}
|
|
4559
|
-
`,
|
|
4567
|
+
`,XUe=Pe.css`
|
|
4560
4568
|
${il}
|
|
4561
4569
|
display: block;
|
|
4562
4570
|
list-style: disc;
|
|
@@ -4576,11 +4584,11 @@ to {
|
|
|
4576
4584
|
list-style-type: square;
|
|
4577
4585
|
}
|
|
4578
4586
|
}
|
|
4579
|
-
`,XUe=Pe.css`
|
|
4580
|
-
margin-left: var(--spacing-md);
|
|
4581
4587
|
`,JUe=Pe.css`
|
|
4582
|
-
|
|
4588
|
+
margin-left: var(--spacing-md);
|
|
4583
4589
|
`,qUe=Pe.css`
|
|
4590
|
+
list-style-type: none;
|
|
4591
|
+
`,QUe=Pe.css`
|
|
4584
4592
|
border-left: 0.25rem solid var(--gray-300);
|
|
4585
4593
|
color: var(--gray-600);
|
|
4586
4594
|
margin-bottom: var(--spacing-base);
|
|
@@ -4589,7 +4597,7 @@ to {
|
|
|
4589
4597
|
&:last-child {
|
|
4590
4598
|
margin-bottom: 0;
|
|
4591
4599
|
}
|
|
4592
|
-
`,
|
|
4600
|
+
`,eZe=Pe.css`
|
|
4593
4601
|
background-color: var(--gray-100);
|
|
4594
4602
|
border-radius: var(--rounded-sm);
|
|
4595
4603
|
display: block;
|
|
@@ -4603,7 +4611,7 @@ to {
|
|
|
4603
4611
|
&:last-child {
|
|
4604
4612
|
margin-bottom: 0;
|
|
4605
4613
|
}
|
|
4606
|
-
`,
|
|
4614
|
+
`,tZe=Pe.css`
|
|
4607
4615
|
border-collapse: collapse;
|
|
4608
4616
|
border-spacing: 0;
|
|
4609
4617
|
border-color: var(--gray-300);
|
|
@@ -4615,7 +4623,7 @@ to {
|
|
|
4615
4623
|
&:last-child {
|
|
4616
4624
|
margin-bottom: 0;
|
|
4617
4625
|
}
|
|
4618
|
-
`,
|
|
4626
|
+
`,rZe=Pe.css`
|
|
4619
4627
|
background-color: var(--white);
|
|
4620
4628
|
border-color: var(--gray-300);
|
|
4621
4629
|
border-style: solid;
|
|
@@ -4650,7 +4658,7 @@ to {
|
|
|
4650
4658
|
left: 100%;
|
|
4651
4659
|
z-index: 1;
|
|
4652
4660
|
}
|
|
4653
|
-
`,
|
|
4661
|
+
`,nZe=Pe.css`
|
|
4654
4662
|
background-color: var(--gray-100);
|
|
4655
4663
|
border-color: var(--gray-300);
|
|
4656
4664
|
border-style: solid;
|
|
@@ -4663,25 +4671,25 @@ to {
|
|
|
4663
4671
|
text-align: start;
|
|
4664
4672
|
vertical-align: top;
|
|
4665
4673
|
width: 7rem;
|
|
4666
|
-
`;var hme=t=>t?.type==="projectMapNode"&&!!(t.nodeId&&t.path&&t.projectMapId),Vw=t=>typeof t?.type=="string"&&["url","tel","email"].includes(t.type)&&!!t.path,vme=t=>t.startsWith("http://")||t.startsWith("https://")?"url":t.startsWith("mailto:")||t.includes("@")?"email":t.startsWith("tel:")||t.startsWith("+")?"tel":"url";function bme(t){let e=null;if(!Xl(t))return{node:e};let r=t.textContent;if(r===null||r==="")return{node:e};let n=t.getAttribute("data-link");if(n)try{n=JSON.parse(n)}catch{}let o=t.getAttribute("href"),a,i,l,s;if(n&&typeof n=="object"&&("path"in n&&typeof n.path=="string"&&(o=n.path),"type"in n&&typeof n.type=="string"&&(l=n.type),"projectMapId"in n&&typeof n.projectMapId=="string"&&(a=n.projectMapId),"nodeId"in n&&typeof n.nodeId=="string"&&(i=n.nodeId),"dynamicInputValues"in n&&typeof n.dynamicInputValues=="string"))try{s=JSON.parse(n.dynamicInputValues)}catch{}if(!o)return{node:null};l||(l=vme(o)),l==="email"&&o.startsWith("mailto:")?o=o.replace("mailto:",""):l==="tel"&&o.startsWith("tel:")&&(o=o.replace("tel:",""));let u={type:l,path:o,projectMapId:a,nodeId:i,dynamicInputValues:s};return(hme(u)||Vw(u))&&(e=jw(u)),{node:e}}var oS=class JF extends Xt{static getType(){return"link"}getLink(){return this.getLatest().__link}setLink(e){let r=this.getWritable();r.__link=e}static clone(e){return new JF(e.__link,e.__key)}constructor(e,r){super(r),this.__link=e}static importJSON(e){let r=jw(e.link);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportJSON(){return{...super.exportJSON(),link:this.getLink(),type:this.getType(),version:1}}createDOM(e){let r=document.createElement("a");return r.setAttribute("data-link",JSON.stringify(this.__link)),Vw(this.__link)&&(this.__link.type==="url"?r.setAttribute("href",this.__link.path):this.__link.type==="tel"?r.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&r.setAttribute("href",`mailto:${this.__link.path}`)),Nt(r,e.theme.link),r}updateDOM(e,r){return pR(e.__link,this.__link)||(r.setAttribute("data-link",JSON.stringify(this.__link)),Vw(this.__link)&&(this.__link.type==="url"?r.setAttribute("href",this.__link.path):this.__link.type==="tel"?r.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&r.setAttribute("href",`mailto:${this.__link.path}`))),!1}static importDOM(){return{a:()=>({conversion:bme,priority:1})}}insertNewAfter(e,r=!0){let n=this.getParentOrThrow().insertNewAfter(e,r);if(X(n)){let o=jw("nodeId"in this.__link?{nodeId:this.__link.nodeId,projectMapId:this.__link.projectMapId,path:this.__link.path,type:this.__link.type}:{path:this.__link.path,type:this.__link.type});return n.append(o),o}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}};function jw(t){return ur(new oS(t))}var
|
|
4674
|
+
`;var hme=t=>t?.type==="projectMapNode"&&!!(t.nodeId&&t.path&&t.projectMapId),Vw=t=>typeof t?.type=="string"&&["url","tel","email"].includes(t.type)&&!!t.path,vme=t=>t.startsWith("http://")||t.startsWith("https://")?"url":t.startsWith("mailto:")||t.includes("@")?"email":t.startsWith("tel:")||t.startsWith("+")?"tel":"url";function bme(t){let e=null;if(!Xl(t))return{node:e};let r=t.textContent;if(r===null||r==="")return{node:e};let n=t.getAttribute("data-link");if(n)try{n=JSON.parse(n)}catch{}let o=t.getAttribute("href"),a,i,l,s;if(n&&typeof n=="object"&&("path"in n&&typeof n.path=="string"&&(o=n.path),"type"in n&&typeof n.type=="string"&&(l=n.type),"projectMapId"in n&&typeof n.projectMapId=="string"&&(a=n.projectMapId),"nodeId"in n&&typeof n.nodeId=="string"&&(i=n.nodeId),"dynamicInputValues"in n&&typeof n.dynamicInputValues=="string"))try{s=JSON.parse(n.dynamicInputValues)}catch{}if(!o)return{node:null};l||(l=vme(o)),l==="email"&&o.startsWith("mailto:")?o=o.replace("mailto:",""):l==="tel"&&o.startsWith("tel:")&&(o=o.replace("tel:",""));let u={type:l,path:o,projectMapId:a,nodeId:i,dynamicInputValues:s};return(hme(u)||Vw(u))&&(e=jw(u)),{node:e}}var oS=class JF extends Xt{static getType(){return"link"}getLink(){return this.getLatest().__link}setLink(e){let r=this.getWritable();r.__link=e}static clone(e){return new JF(e.__link,e.__key)}constructor(e,r){super(r),this.__link=e}static importJSON(e){let r=jw(e.link);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportJSON(){return{...super.exportJSON(),link:this.getLink(),type:this.getType(),version:1}}createDOM(e){let r=document.createElement("a");return r.setAttribute("data-link",JSON.stringify(this.__link)),Vw(this.__link)&&(this.__link.type==="url"?r.setAttribute("href",this.__link.path):this.__link.type==="tel"?r.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&r.setAttribute("href",`mailto:${this.__link.path}`)),Nt(r,e.theme.link),r}updateDOM(e,r){return pR(e.__link,this.__link)||(r.setAttribute("data-link",JSON.stringify(this.__link)),Vw(this.__link)&&(this.__link.type==="url"?r.setAttribute("href",this.__link.path):this.__link.type==="tel"?r.setAttribute("href",`tel:${this.__link.path}`):this.__link.type==="email"&&r.setAttribute("href",`mailto:${this.__link.path}`))),!1}static importDOM(){return{a:()=>({conversion:bme,priority:1})}}insertNewAfter(e,r=!0){let n=this.getParentOrThrow().insertNewAfter(e,r);if(X(n)){let o=jw("nodeId"in this.__link?{nodeId:this.__link.nodeId,projectMapId:this.__link.projectMapId,path:this.__link.path,type:this.__link.type}:{path:this.__link.path,type:this.__link.type});return n.append(o),o}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}};function jw(t){return ur(new oS(t))}var lZe=$e("REMOVE_LINK_NODE_COMMAND"),uZe=$e("UPSERT_LINK_NODE_COMMAND"),cZe=$e("OPEN_LINK_NODE_MODAL_COMMAND");var dZe=b.css`
|
|
4667
4675
|
position: absolute;
|
|
4668
4676
|
z-index: 11;
|
|
4669
|
-
`,
|
|
4677
|
+
`,fZe=b.css`
|
|
4670
4678
|
${Kde};
|
|
4671
4679
|
${Xde};
|
|
4672
4680
|
${Jde};
|
|
4673
4681
|
align-items: center;
|
|
4674
4682
|
display: flex;
|
|
4675
|
-
`,
|
|
4683
|
+
`,pZe=b.css`
|
|
4676
4684
|
${zy}
|
|
4677
4685
|
${Zw}
|
|
4678
4686
|
`;var yme=b.css`
|
|
4679
4687
|
position: absolute;
|
|
4680
4688
|
transform: translate(calc(-100% - 1px), 1px);
|
|
4681
|
-
`,xme=(0,cl.forwardRef)((t,e)=>{let{tableCellEl:r,positioningAnchorEl:n,...o}=t,[a,i]=(0,cl.useState)({x:0,y:0});return(0,cl.useLayoutEffect)(()=>{let l=r.getBoundingClientRect(),s=n.getBoundingClientRect(),u=l.right-s.left+n.scrollLeft,c=l.top-s.top+n.scrollTop;i({x:u,y:c})},[r,n]),(0,I.jsx)(AF,{ref:e,css:[yme,{top:a.y,left:a.x}],size:"xs",buttonType:"unimportant",...o,children:(0,I.jsx)(_n,{icon:"chevron-down",size:"1rem",iconColor:"currentColor"})})});xme.displayName="TableActionMenuTrigger";var
|
|
4689
|
+
`,xme=(0,cl.forwardRef)((t,e)=>{let{tableCellEl:r,positioningAnchorEl:n,...o}=t,[a,i]=(0,cl.useState)({x:0,y:0});return(0,cl.useLayoutEffect)(()=>{let l=r.getBoundingClientRect(),s=n.getBoundingClientRect(),u=l.right-s.left+n.scrollLeft,c=l.top-s.top+n.scrollTop;i({x:u,y:c})},[r,n]),(0,I.jsx)(AF,{ref:e,css:[yme,{top:a.y,left:a.x}],size:"xs",buttonType:"unimportant",...o,children:(0,I.jsx)(_n,{icon:"chevron-down",size:"1rem",iconColor:"currentColor"})})});xme.displayName="TableActionMenuTrigger";var vZe=b.css`
|
|
4682
4690
|
position: absolute;
|
|
4683
4691
|
z-index: var(--z-10);
|
|
4684
|
-
`;var
|
|
4692
|
+
`;var xZe=b.css`
|
|
4685
4693
|
${Zo}
|
|
4686
4694
|
background: var(--gray-50);
|
|
4687
4695
|
border-radius: var(--rounded-base);
|
|
@@ -4694,7 +4702,7 @@ to {
|
|
|
4694
4702
|
position: sticky;
|
|
4695
4703
|
top: calc(var(--spacing-sm) * -2);
|
|
4696
4704
|
z-index: 10;
|
|
4697
|
-
`,
|
|
4705
|
+
`,CZe=b.css`
|
|
4698
4706
|
display: flex;
|
|
4699
4707
|
flex-shrink: 0;
|
|
4700
4708
|
gap: var(--spacing-xs);
|
|
@@ -4710,7 +4718,7 @@ to {
|
|
|
4710
4718
|
top: 4px;
|
|
4711
4719
|
width: 1px;
|
|
4712
4720
|
}
|
|
4713
|
-
`,
|
|
4721
|
+
`,wZe=b.css`
|
|
4714
4722
|
align-items: center;
|
|
4715
4723
|
appearance: none;
|
|
4716
4724
|
border: 0;
|
|
@@ -4723,16 +4731,16 @@ to {
|
|
|
4723
4731
|
justify-content: center;
|
|
4724
4732
|
min-width: 32px;
|
|
4725
4733
|
padding: 0 var(--spacing-sm);
|
|
4726
|
-
`,wZe=b.css`
|
|
4727
|
-
background: var(--gray-200);
|
|
4728
4734
|
`,SZe=b.css`
|
|
4735
|
+
background: var(--gray-200);
|
|
4736
|
+
`,EZe=b.css`
|
|
4729
4737
|
justify-content: space-between;
|
|
4730
4738
|
min-width: 7rem;
|
|
4731
|
-
`,EZe=b.css`
|
|
4732
|
-
color: inherit;
|
|
4733
4739
|
`,$Ze=b.css`
|
|
4740
|
+
color: inherit;
|
|
4741
|
+
`,TZe=b.css`
|
|
4734
4742
|
margin-left: var(--spacing-xs);
|
|
4735
|
-
`;var
|
|
4743
|
+
`;var IZe=b.css`
|
|
4736
4744
|
position: relative;
|
|
4737
4745
|
|
|
4738
4746
|
&::before {
|
|
@@ -4747,11 +4755,11 @@ to {
|
|
|
4747
4755
|
right: var(--spacing-sm);
|
|
4748
4756
|
z-index: 2;
|
|
4749
4757
|
}
|
|
4750
|
-
`,
|
|
4758
|
+
`,DZe=b.css`
|
|
4751
4759
|
display: flex;
|
|
4752
4760
|
flex-flow: column;
|
|
4753
4761
|
flex-grow: 1;
|
|
4754
|
-
`,
|
|
4762
|
+
`,AZe=b.css`
|
|
4755
4763
|
${Zo}
|
|
4756
4764
|
background: var(--white);
|
|
4757
4765
|
border-radius: var(--rounded-sm);
|
|
@@ -4782,14 +4790,14 @@ to {
|
|
|
4782
4790
|
min-height: calc(3rem + (2 * var(--spacing-sm)));
|
|
4783
4791
|
max-height: unset;
|
|
4784
4792
|
}
|
|
4785
|
-
`,
|
|
4793
|
+
`,LZe=b.css`
|
|
4786
4794
|
overflow: hidden;
|
|
4787
4795
|
pointer-events: none;
|
|
4788
4796
|
|
|
4789
4797
|
& > * {
|
|
4790
4798
|
pointer-events: auto;
|
|
4791
4799
|
}
|
|
4792
|
-
`,
|
|
4800
|
+
`,_Ze=b.css`
|
|
4793
4801
|
color: var(--gray-500);
|
|
4794
4802
|
font-style: italic;
|
|
4795
4803
|
/* 1px is added to make sure caret is clearly visible when field is focused
|
|
@@ -4799,7 +4807,7 @@ to {
|
|
|
4799
4807
|
position: absolute;
|
|
4800
4808
|
top: calc(1rem + var(--spacing-sm));
|
|
4801
4809
|
user-select: none;
|
|
4802
|
-
`,
|
|
4810
|
+
`,MZe=b.css`
|
|
4803
4811
|
min-height: 100%;
|
|
4804
4812
|
flex-grow: 1;
|
|
4805
4813
|
|
|
@@ -4807,7 +4815,7 @@ to {
|
|
|
4807
4815
|
&:focus-within {
|
|
4808
4816
|
outline: none;
|
|
4809
4817
|
}
|
|
4810
|
-
`;var
|
|
4818
|
+
`;var NZe=[Dw,Mw,_w,Nw,Lw,Aw,...kw];var PZe=(0,aS.forwardRef)(({defaultOption:t,options:e,...r},n)=>{let{shellProps:o,innerProps:a}=ll(r);return(0,I.jsx)(ul,{...o,children:(0,I.jsx)(wme,{options:e,defaultOption:t,...a,ref:n})})}),wme=(0,aS.forwardRef)(({defaultOption:t,options:e,...r},n)=>{let{id:o,label:a,hiddenLabel:i}=sl();return(0,I.jsxs)("select",{css:[Zg,xpe],id:o,"aria-label":i&&typeof a=="string"?a:void 0,ref:n,...r,children:[t?(0,I.jsx)("option",{value:"",children:t}):null,e.map(l=>{var s;return(0,I.jsx)("option",{value:(s=l.value)!=null?s:l.label,children:l.label},l.label)})]})}),Sme=(0,rc.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{"data-testid":"parameter-select-slider",...r,children:(0,I.jsx)(rB,{ref:e,...n})})}),rB=(0,rc.forwardRef)(({options:t,value:e,onChange:r,...n},o)=>{let{id:a,label:i,hiddenLabel:l}=sl(),s=(0,rc.useMemo)(()=>{if(e==null||e==="")return;let c=t.findIndex(d=>d.value===e);return c>=0?c:void 0},[t,e]),u=(0,rc.useCallback)(c=>{var d;r(c===void 0||(d=t[c])==null?void 0:d.value)},[t,r]);return(0,I.jsx)(rS,{ref:o,id:a,"aria-label":l&&typeof i=="string"?i:void 0,value:s,onChange:u,options:t,showNumberInput:!1,...n})});Sme.displayName="ParameterSelectSlider";rB.displayName="ParameterSelectSliderInner";var FZe=(0,iS.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{"data-testid":"parameter-textarea",...r,children:(0,I.jsx)(Eme,{ref:e,...n})})}),Eme=(0,iS.forwardRef)(({...t},e)=>{let{id:r,label:n,hiddenLabel:o}=sl();return(0,I.jsx)("textarea",{css:[Zg,Ipe],id:r,ref:e,"aria-label":o&&typeof n=="string"?n:void 0,...t})}),$me=(0,sS.forwardRef)((t,e)=>{let{shellProps:r,innerProps:n}=ll(t);return(0,I.jsx)(ul,{...r,children:(0,I.jsx)(nB,{ref:e,...n})})});$me.displayName="ParameterToggle";var nB=(0,sS.forwardRef)(({children:t,...e},r)=>{let{type:n,withoutIndeterminateState:o,...a}=e,{id:i,label:l}=sl();return(0,I.jsxs)("label",{css:Cpe,children:[(0,I.jsx)("input",{css:[wpe,e.withoutIndeterminateState?void 0:Spe],type:n,id:i,ref:r,...a}),(0,I.jsx)("span",{css:Epe,children:l}),t]})});nB.displayName="ParameterToggleInner";var jZe=b.css`
|
|
4811
4819
|
background: var(--gray-50);
|
|
4812
4820
|
margin-block: var(--spacing-sm);
|
|
4813
4821
|
position: relative;
|
|
@@ -4815,7 +4823,7 @@ to {
|
|
|
4815
4823
|
height: 1rem;
|
|
4816
4824
|
border-radius: var(--rounded-sm);
|
|
4817
4825
|
border: solid 1px var(--gray-300);
|
|
4818
|
-
`,
|
|
4826
|
+
`,zZe={primary:b.css`
|
|
4819
4827
|
--progress-color: var(--accent-light);
|
|
4820
4828
|
`,secondary:b.css`
|
|
4821
4829
|
--progress-color: var(--accent-alt-light);
|
|
@@ -4828,9 +4836,9 @@ to {
|
|
|
4828
4836
|
to {
|
|
4829
4837
|
background-position: 64px 0;
|
|
4830
4838
|
}
|
|
4831
|
-
`,zZe=b.css`
|
|
4832
|
-
background-color: var(--progress-color);
|
|
4833
4839
|
`,HZe=b.css`
|
|
4840
|
+
background-color: var(--progress-color);
|
|
4841
|
+
`,WZe=b.css`
|
|
4834
4842
|
background-image: linear-gradient(
|
|
4835
4843
|
45deg,
|
|
4836
4844
|
var(--progress-color) 25%,
|
|
@@ -4843,23 +4851,23 @@ to {
|
|
|
4843
4851
|
);
|
|
4844
4852
|
background-size: 64px 64px;
|
|
4845
4853
|
animation: ${Tme} 1s linear infinite;
|
|
4846
|
-
`,
|
|
4854
|
+
`,GZe=b.css`
|
|
4847
4855
|
position: absolute;
|
|
4848
4856
|
inset: 0;
|
|
4849
4857
|
transition: transform var(--duration-fast) var(--timing-ease-out);
|
|
4850
4858
|
transform-origin: 0 center;
|
|
4851
|
-
`;var
|
|
4859
|
+
`;var ZZe=b.css`
|
|
4852
4860
|
display: flex;
|
|
4853
4861
|
flex-direction: column;
|
|
4854
4862
|
gap: var(--spacing-sm);
|
|
4855
4863
|
list-style-type: none;
|
|
4856
|
-
`,
|
|
4864
|
+
`,YZe=b.css`
|
|
4857
4865
|
display: flex;
|
|
4858
4866
|
gap: var(--spacing-base);
|
|
4859
4867
|
align-items: center;
|
|
4860
|
-
`;var
|
|
4868
|
+
`;var XZe=b.css`
|
|
4861
4869
|
position: relative;
|
|
4862
|
-
`,
|
|
4870
|
+
`,JZe=b.css`
|
|
4863
4871
|
position: absolute;
|
|
4864
4872
|
inset: 0;
|
|
4865
4873
|
z-index: 1;
|
|
@@ -4886,15 +4894,15 @@ to {
|
|
|
4886
4894
|
transform-origin: right;
|
|
4887
4895
|
background: linear-gradient(to left, var(--background-color) 10%, transparent);
|
|
4888
4896
|
}
|
|
4889
|
-
`,
|
|
4897
|
+
`,qZe=b.css`
|
|
4890
4898
|
&::before {
|
|
4891
4899
|
opacity: 1;
|
|
4892
4900
|
}
|
|
4893
|
-
`,
|
|
4901
|
+
`,QZe=b.css`
|
|
4894
4902
|
&::after {
|
|
4895
4903
|
opacity: 1;
|
|
4896
4904
|
}
|
|
4897
|
-
`,
|
|
4905
|
+
`,eYe=b.css`
|
|
4898
4906
|
overflow-y: auto;
|
|
4899
4907
|
scroll-behavior: smooth;
|
|
4900
4908
|
scrollbar-width: none;
|
|
@@ -4902,7 +4910,7 @@ to {
|
|
|
4902
4910
|
width: 0px;
|
|
4903
4911
|
height: 0px;
|
|
4904
4912
|
}
|
|
4905
|
-
`,
|
|
4913
|
+
`,tYe=b.css`
|
|
4906
4914
|
--segmented-control-rounded-value: var(--rounded-base);
|
|
4907
4915
|
--segmented-control-border-width: 1px;
|
|
4908
4916
|
--segmented-control-selected-color: var(--accent-dark);
|
|
@@ -4921,13 +4929,13 @@ to {
|
|
|
4921
4929
|
gap: 0;
|
|
4922
4930
|
border-radius: calc(var(--segmented-control-rounded-value) + var(--segmented-control-border-width));
|
|
4923
4931
|
font-size: var(--fs-xs);
|
|
4924
|
-
`,
|
|
4932
|
+
`,rYe=b.css`
|
|
4925
4933
|
flex-direction: column;
|
|
4926
4934
|
--segmented-control-first-border-radius: var(--segmented-control-rounded-value)
|
|
4927
4935
|
var(--segmented-control-rounded-value) 0 0;
|
|
4928
4936
|
--segmented-control-last-border-radius: 0 0 var(--segmented-control-rounded-value)
|
|
4929
4937
|
var(--segmented-control-rounded-value);
|
|
4930
|
-
`,
|
|
4938
|
+
`,nYe=b.css`
|
|
4931
4939
|
position: relative;
|
|
4932
4940
|
|
|
4933
4941
|
&:first-of-type label {
|
|
@@ -4952,9 +4960,9 @@ to {
|
|
|
4952
4960
|
&:has(+ *:has(:checked)) label {
|
|
4953
4961
|
box-shadow: var(--segmented-control-border-width) 0 0 0 transparent;
|
|
4954
4962
|
}
|
|
4955
|
-
`,nYe=b.css`
|
|
4956
|
-
${Xue}
|
|
4957
4963
|
`,oYe=b.css`
|
|
4964
|
+
${Xue}
|
|
4965
|
+
`,aYe=b.css`
|
|
4958
4966
|
position: relative;
|
|
4959
4967
|
display: flex;
|
|
4960
4968
|
align-items: center;
|
|
@@ -4988,25 +4996,25 @@ to {
|
|
|
4988
4996
|
color: var(--gray-50);
|
|
4989
4997
|
background-color: var(--gray-400);
|
|
4990
4998
|
}
|
|
4991
|
-
`,aYe=b.css`
|
|
4992
|
-
padding-inline: 0.5em;
|
|
4993
4999
|
`,iYe=b.css`
|
|
4994
|
-
|
|
5000
|
+
padding-inline: 0.5em;
|
|
4995
5001
|
`,sYe=b.css`
|
|
5002
|
+
opacity: 0.5;
|
|
5003
|
+
`,lYe=b.css`
|
|
4996
5004
|
display: flex;
|
|
4997
5005
|
align-items: center;
|
|
4998
5006
|
justify-content: center;
|
|
4999
5007
|
gap: var(--spacing-sm);
|
|
5000
5008
|
height: 100%;
|
|
5001
|
-
`,
|
|
5009
|
+
`,uYe=b.css`
|
|
5002
5010
|
white-space: nowrap;
|
|
5003
5011
|
`;var Dme=b.keyframes`
|
|
5004
5012
|
from { opacity: 0.1; }
|
|
5005
5013
|
to { opacity: 0.025; }
|
|
5006
|
-
`,
|
|
5014
|
+
`,dYe=b.css`
|
|
5007
5015
|
animation: ${Dme} 1s ease-out infinite alternate;
|
|
5008
5016
|
background-color: var(--gray-500);
|
|
5009
|
-
`;var
|
|
5017
|
+
`;var pYe=b.css`
|
|
5010
5018
|
--color: #00b4ff;
|
|
5011
5019
|
--speed: 5s;
|
|
5012
5020
|
--red: rgb(218, 63, 50);
|
|
@@ -5643,7 +5651,7 @@ to {
|
|
|
5643
5651
|
flex-direction: row;
|
|
5644
5652
|
`,dge=b.css`
|
|
5645
5653
|
flex-direction: row-reverse;
|
|
5646
|
-
`,
|
|
5654
|
+
`,CYe=(0,Yy.forwardRef)(({label:t,infoText:e,toggleText:r,children:n,switchSize:o="base",alignment:a="left",...i},l)=>{let s=e,{SwitchInputContainerAlignmentStyles:u,SwitchInputCheckedDirection:c,SwitchInputLabelAlignment:d}=(0,Yy.useMemo)(()=>a==="left"?{SwitchInputContainerAlignmentStyles:cge,SwitchInputCheckedDirection:tge,SwitchInputLabelAlignment:oge(o)}:{SwitchInputContainerAlignmentStyles:dge,SwitchInputCheckedDirection:rge,SwitchInputLabelAlignment:age(o)},[a,o]);return e&&r&&(s=i.checked?r:e),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("label",{css:[Qme,u,c,i.disabled?nge:void 0],children:[(0,I.jsx)("input",{type:"checkbox",css:[ege(o),c],...i,ref:l}),(0,I.jsx)("span",{css:[ige(o),d],children:t})]}),s?(0,I.jsx)("p",{css:[uge,a==="left"?sge(o):lge(o)],children:s}):null,n]})}),fge=({cellPadding:t="var(--spacing-sm)"})=>b.css`
|
|
5647
5655
|
border-bottom: 1px solid var(--gray-400);
|
|
5648
5656
|
border-collapse: collapse;
|
|
5649
5657
|
min-width: 100%;
|
|
@@ -5673,7 +5681,7 @@ to {
|
|
|
5673
5681
|
font-weight: var(--fw-regular);
|
|
5674
5682
|
line-height: 1.2;
|
|
5675
5683
|
}
|
|
5676
|
-
`,
|
|
5684
|
+
`,SYe=b.css`
|
|
5677
5685
|
max-width: calc(100vw - var(--spacing-md) * 2);
|
|
5678
5686
|
overflow-x: auto;
|
|
5679
5687
|
${Zo}
|
|
@@ -5689,7 +5697,7 @@ to {
|
|
|
5689
5697
|
white-space: initial;
|
|
5690
5698
|
}
|
|
5691
5699
|
}
|
|
5692
|
-
`;var
|
|
5700
|
+
`;var $Ye=dl.forwardRef(({children:t,cellPadding:e,...r},n)=>(0,I.jsx)("table",{ref:n,css:fge({cellPadding:e}),...r,children:t})),TYe=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("thead",{ref:r,css:pge,...e,children:t})),IYe=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("tbody",{ref:r,...e,children:t})),DYe=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("tfoot",{ref:r,...e,children:t})),AYe=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("tr",{ref:r,css:mge,...e,children:t})),LYe=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("th",{ref:r,css:gge,...e,children:t})),_Ye=dl.forwardRef(({children:t,...e},r)=>(0,I.jsx)("td",{ref:r,...e,children:t})),NYe=b.css`
|
|
5693
5701
|
align-items: center;
|
|
5694
5702
|
border: 0;
|
|
5695
5703
|
height: 2.5rem;
|
|
@@ -5705,11 +5713,11 @@ to {
|
|
|
5705
5713
|
&[aria-selected='true'] {
|
|
5706
5714
|
box-shadow: inset 0 -2px 0 var(--brand-secondary-3);
|
|
5707
5715
|
}
|
|
5708
|
-
`,
|
|
5716
|
+
`,kYe=b.css`
|
|
5709
5717
|
display: flex;
|
|
5710
5718
|
gap: var(--spacing-base);
|
|
5711
5719
|
border-bottom: 1px solid var(--gray-300);
|
|
5712
|
-
`;var
|
|
5720
|
+
`;var OYe=b.css`
|
|
5713
5721
|
align-items: center;
|
|
5714
5722
|
align-self: center;
|
|
5715
5723
|
color: var(--gray-500);
|
|
@@ -5724,29 +5732,29 @@ to {
|
|
|
5724
5732
|
content: '';
|
|
5725
5733
|
display: block;
|
|
5726
5734
|
}
|
|
5727
|
-
`,
|
|
5735
|
+
`,RYe=b.css`
|
|
5728
5736
|
font-size: var(--fs-sm);
|
|
5729
5737
|
&:before {
|
|
5730
5738
|
width: var(--fs-xs);
|
|
5731
5739
|
height: var(--fs-xs);
|
|
5732
5740
|
}
|
|
5733
|
-
`,
|
|
5741
|
+
`,FYe=b.css`
|
|
5734
5742
|
font-size: var(--fs-xs);
|
|
5735
5743
|
&:before {
|
|
5736
5744
|
width: var(--fs-xxs);
|
|
5737
5745
|
height: var(--fs-xxs);
|
|
5738
5746
|
}
|
|
5739
|
-
`,
|
|
5747
|
+
`,BYe=b.css`
|
|
5740
5748
|
&:before {
|
|
5741
5749
|
background: var(--white);
|
|
5742
5750
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
5743
5751
|
}
|
|
5744
|
-
`,
|
|
5752
|
+
`,VYe=b.css`
|
|
5745
5753
|
&:before {
|
|
5746
5754
|
background: linear-gradient(to right, var(--white) 50%, var(--accent-dark) 50% 100%);
|
|
5747
5755
|
box-shadow: inset 0 0 0 0.125rem var(--accent-dark);
|
|
5748
5756
|
}
|
|
5749
|
-
`,
|
|
5757
|
+
`,jYe=b.css`
|
|
5750
5758
|
color: var(--error);
|
|
5751
5759
|
&:before {
|
|
5752
5760
|
/* TODO: replace this with an svg icon */
|
|
@@ -5758,30 +5766,30 @@ to {
|
|
|
5758
5766
|
var(--error) 59%
|
|
5759
5767
|
);
|
|
5760
5768
|
}
|
|
5761
|
-
`,
|
|
5769
|
+
`,zYe=b.css`
|
|
5762
5770
|
&:before {
|
|
5763
5771
|
background: var(--accent-dark);
|
|
5764
5772
|
}
|
|
5765
|
-
`,
|
|
5773
|
+
`,HYe=b.css`
|
|
5766
5774
|
&:before {
|
|
5767
5775
|
background: var(--brand-secondary-5);
|
|
5768
5776
|
}
|
|
5769
|
-
`,
|
|
5777
|
+
`,WYe=b.css`
|
|
5770
5778
|
&:before {
|
|
5771
5779
|
background: var(--gray-800);
|
|
5772
5780
|
}
|
|
5773
|
-
`,
|
|
5781
|
+
`,GYe=b.css`
|
|
5774
5782
|
&:before {
|
|
5775
5783
|
background: var(--error);
|
|
5776
5784
|
}
|
|
5777
5785
|
`;var Ky=B(z());function lS(t){let[,e]=t.split(":");return e}var cB="${",dB="}";var fB=B(z());function pB({displayName:t,referenceIsValid:e,tooltip:r,reference:n,onClick:o,clickToEdit:a,isFresh:i,selected:l,disabled:s,errorMessage:u=`${n} is not defined.`}){let c=!!o,d=i?!0:e,f=d==="warning"?bge:d==="info"?vge:d?fB.Fragment:hge,p=d?c&&a?"Click to edit":void 0:u,m=React.createElement(vF,{onClick:o,"aria-selected":l?!0:void 0,"aria-disabled":s},React.createElement(f,null,t||n));if(r){let g=(r?`${r}${p?`
|
|
5778
5786
|
|
|
5779
5787
|
${p}`:""}`:p??"").split(`
|
|
5780
|
-
`);return React.createElement(Ry,{title:React.createElement(zw,{gap:"sm"},g.map((v,y)=>React.createElement("div",{key:y},v)))},React.createElement("span",null,m))}return m}function hge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--error)"}},t)}function vge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--primary-action-default)"}},t)}function bge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--alert)"}},t)}import{createVariableReference as eKe}from"@uniformdev/canvas";var Xg=B(z()),yge=B(Zn());var lKe=$e("uniform:open-insert-variable"),mB=$e("uniform:edit-variable"),uKe=$e("uniform:disconnect-variable"),cKe=$e("uniform:insert-variable");var hf=class t extends Na{constructor(r,n,o){super(o);this.reference=r;this.__variableState=n}__variableState;static getType(){return"variable"}static clone(r){return new t(r.reference,{...r.__variableState},r.__key)}static importJSON(r){return gB(r.reference,{displayName:lS(r.reference),referenceIsValid:!0,isFresh:!1,hasClickEvent:void 0,tooltip:void 0,isLoading:!1})}getState(){return this.getLatest().__variableState}setState(r){this.getWritable().__variableState=r}exportJSON(){return{reference:this.reference,type:t.getType(),version:1}}getTextContent(){return xge(this.reference)}createDOM(){return document.createElement("span")}updateDOM(){return!1}static importDOM(){return{binding:()=>({conversion:Cge,priority:0})}}decorate(){return React.createElement(Sge,{state:this.__variableState,reference:this.reference,nodeKey:this.__key})}};function Cge(t){let r=t.textContent.replace(cB,"").replace(dB,"");return{node:gB(r,{displayName:lS(r),hasClickEvent:!0,referenceIsValid:!0,tooltip:void 0,isFresh:!0,isLoading:!1})}}function gB(t,e){return new hf(t,e)}function wge(t){return t instanceof hf}function Sge({state:t,reference:e,nodeKey:r}){let[n]=u1(),[o,a,i]=wI(r),l=!n.isEditable(),s=(0,Ky.useCallback)(u=>{if(o&&Mt(ie())){u.preventDefault();let c=st(r);wge(c)&&c.remove()}return!1},[o,r]);return(0,Ky.useEffect)(()=>Lr(n.registerCommand(Yl,s,lr),n.registerCommand(Ul,s,lr),n.registerCommand(Ci,u=>{let c=ie();if(Mt(c)){let d=c.getNodes();if(d.length>0)return u.preventDefault(),d[0].selectPrevious(),!0}if(!ee(c))return!1;if(Oc(c,!0)){let d=u.shiftKey;return u.preventDefault(),Rc(c,d,!0),!0}return!1},ze),n.registerCommand(Gl,u=>{let c=ie();if(Mt(c)&&!Ege(u.target)){let f=c.getNodes();if(f.length>0)return u.preventDefault(),f[0].selectNext(0,0),!0}if(!ee(c))return!1;let d=u.shiftKey;return Oc(c,!1)?(u.preventDefault(),Rc(c,d,!1),!0):!1},ze)),[i,n,o,r,s,a]),React.createElement(pB,{...t,reference:e,displayName:t.isLoading?React.createElement(kF,{size:"sm"}):t.displayName,selected:o,disabled:l,clickToEdit:t.hasClickEvent,onClick:t.hasClickEvent?()=>{a(!o),n.dispatchCommand(mB,{reference:e,sourceKey:r})}:()=>a(!o)})}function Ege(t){let e=nr(t);return pt(e)}var Jg=class t extends Na{__asset;__assetQuery;__upload;__error;getAsset(){return this.getLatest().__asset}setAsset(e){let r=this.getWritable();r.__asset=e}getAssetQuery(){return this.getLatest().__assetQuery}setAssetQuery(e){let r=this.getWritable();r.__assetQuery=e}getUpload(){return this.getLatest().__upload}setUpload(e){let r=this.getWritable();r.__upload=e}getError(){return this.getLatest().__error}setError(e){let r=this.getWritable();r.__error=e}static getType(){return"asset"}constructor(e,r,n,o,a){super(a),this.__asset=e,this.__upload=r,this.__error=o,this.__assetQuery=n}static clone(e){return new t(e.__asset,e.__upload,e.__assetQuery,e.__error,e.__key)}exportJSON(){let e={type:"asset",version:1};if(this.__asset&&(e.__asset=this.__asset),this.__assetQuery&&(e.__assetQuery=this.__assetQuery),this.__upload&&"fileUrl"in this.__upload){let{fileUrl:r,suggestedAltText:n,suggestedCaption:o}=this.__upload;e.__upload={fileUrl:r,suggestedAltText:n,suggestedCaption:o}}return this.__error&&(e.__error=this.__error),e}static importJSON(e){return uS({asset:e.__asset,assetQuery:e.__assetQuery,upload:e.__upload,error:e.__error})}static importDOM(){return{img:()=>({conversion:e=>$ge(e,uS),priority:0}),figure:()=>({conversion:e=>Tge(e,uS),priority:0})}}createDOM(e){let r=document.createElement("span"),o=e.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}isInline(){return!1}};function uS({asset:t,upload:e,assetQuery:r,error:n}){return ur(new Jg(t,e,r,n))}function hB(t){return t.parentElement!=null&&t.parentElement.tagName==="LI"&&t.previousSibling===null&&t.getAttribute("aria-roledescription")==="checkbox"}function $ge(t,e){let r=t;if(r.src.startsWith("file:///")||hB(r))return null;let{alt:n,src:o}=r;return{node:vB({altText:n,src:o,createAssetNode:e})}}function Tge(t,e){let r=t,n=r.querySelector("img"),o=r.querySelector("figcaption");if(!n||n.src.startsWith("file:///")||hB(n))return null;let{alt:a,src:i}=n;return i.startsWith("uniform://")?{node:e({assetQuery:{id:n.src.split("uniform://")[1],suggestedAltText:a,suggestedCaption:o?.textContent??void 0}})}:{node:vB({altText:a,src:i,caption:o?.textContent??void 0,createAssetNode:e})}}function vB({altText:t,src:e,caption:r,createAssetNode:n}){return n({asset:void 0,upload:{fileUrl:e,suggestedAltText:t,suggestedCaption:r},assetQuery:void 0})}var Ige=t=>new DOMParser().parseFromString(t,"text/html");function bB(t,e=Ige){let r=yT({nodes:[ko,lo,oS,Ii,Ti,yi,aa,oa,$s,Mo,Jg,hf]}),n=e(t);return r.update(()=>{R0("skip-dom-selection");let o=Z0(r,n);jt().select(),Mc(o)},{discrete:!0}),r.getEditorState().toJSON()}function yB({twee:t,nodeId:e,propertyId:r,propertyType:n,locale:o,propertyEdit:a,conditionIndex:i=-1,definitionIndex:l,domParser:s}){let u=t.getNodeById(e);if(!u)throw new Error(`Node with ID ${e} not found`);if(a.action==="clearValue")t.updateNodeProperty({nodeId:e,property:r,value:null,source:"ai",locale:o,conditionIndex:-1});else if(a.action==="resetOverride")t.resetPatternPropertyOverride(e,r,o);else if(a.action==="setValue"){if(n==="contentReference"){Oge({twee:t,nodeId:e,targetNode:u,propertyId:r,propertyType:n,propertyEdit:a,locale:o,conditionIndex:i,definitionIndex:l});return}let c=Pge({twee:t,targetNode:u,propertyId:r,propertyType:n,propertyEdit:a,domParser:s}),d=t.getNodeProperty(e,r);if(!o&&d?.locales)throw new Error(`The ${r} property is localized in ${Object.keys(d.locales).join(", ")}, but no locale was provided when setting its value. Please provide an explicit locale.`);if(r===Lge){let f=t.getParentInfo(e);if(f?.parentId){let p=t.getNodeProperty(f.parentId,Age);if(p?.value!==AE)throw new Error(`Cannot edit personalization criteria when the parent personalization component is not using the Strongest Variation Match selection method. Current selection method: ${p?.value||"Top-down criteria matching"}.`)}}t.updateNodeProperty({nodeId:e,property:r,value:()=>c,source:"ai",locale:o,conditionIndex:i,type:n})}}var Pge=({twee:t,targetNode:e,propertyId:r,propertyType:n,propertyEdit:o,domParser:a})=>{if(n==="richText")return bB(o.newValue??"",a);if(n==="number")return Number(o.newValue);if(r===Dge){if(kge(e.value.type))throw new Error("Enrichment tags are not allowed in system components.");if(t.getParentInfo(e.nodeId)?.parentId===_ge)throw new Error("Enrichment tags are not allowed in personalization variants.")}return o.treatNewValueAsJson?JSON.parse(o.newValue):o.newValue};function Oge({twee:t,nodeId:e,targetNode:r,propertyId:n,propertyType:o,propertyEdit:a,locale:i,conditionIndex:l,definitionIndex:s}){let u=mc(r.nodeId,n,i,l),c;try{c=a.treatNewValueAsJson?JSON.parse(a.newValue):a.newValue}catch(y){throw new Error(`Invalid reference field data: ${y instanceof Error?y.message:"Unknown error"}`)}if(!c||typeof c!="object"||c.type!==ci)throw new Error("Invalid reference field definition received from AI");let d=c.variables?.entryIds;if(!d||typeof d!="string"||d.length===0){t.updateNode({nodeId:r.nodeId,updateDataResources:[{type:"remove",name:u}]}),t.updateNodeProperty({nodeId:e,property:n,value:null,source:"ai",locale:i,conditionIndex:l,type:o});return}let m=s[r.value.type]?.parameters?.find(({id:y})=>y===n)?.typeConfig?.isMulti??!1,h=EE(d,{targetLocale:i,enabledLocales:t.getNodeById(t.rootNodeId)?.value._locales??[]});t.updateNode({nodeId:r.nodeId,updateDataResources:[{type:"set",name:u,value:h}]});let g=`/${u}/entries${m?"":"/0"}`,v=Nge(Mge({syntax:"jptr",pointer:g}));t.updateNodeProperty({nodeId:e,property:n,value:()=>v,source:"ai",locale:i,conditionIndex:l,type:o})}import{validate as Rge}from"uuid";var xB=t=>Rge(t)?t:btoa(t);function vf(t,e,r="Component instance"){let n=t.getNodeById(e);if(n)return n;let o=[];if(t.visitNodeAndDescendants(t.rootNodeId,a=>{a.nodeId!==e&&a.nodeId.includes(e)&&o.push(a.nodeId)}),o.length>0){let a=o.map(i=>`"${xB(i)}"`).join(", ");throw new Error(`${r} with ID ${e} not found. You might have meant one of these IDs that does exist: ${a}. Component IDs should be used exactly as provided in the _id field.`)}throw new Error(`${r} with ID ${e} not found`)}async function Xy({twee:t,slotUpdates:e,propertyUpdates:r,dataResourceUpdates:n,localeUpdates:o,nameUpdate:a,slugUpdate:i,descriptionUpdate:l,currentEditorLocale:s,referenceData:u,dataSourceVariant:c,onStatusUpdate:d,isEditingPattern:f,domParser:p}){let m=[],h=(a?1:0)+(i?1:0)+(l?1:0)+(e.createComponentInstances?.length??0)+(e.moveComponentInstances?.length??0)+(e.duplicateComponentInstances?.length??0)+(e.deleteComponentInstances?.length??0)+(o?.enableLocales?.length??0)+(o?.disableLocales?.length??0)+r.length,g=0,v=w=>{m.push(w),g++,d?.({completed:g,total:h})};a&&(t.updateRootNode({update:{_name:a}}),v({summary:"Updated name",success:!0})),i&&(t.updateRootNode({update:{_slug:i}}),v({summary:"Updated slug",success:!0})),l&&(t.updateRootMetadata({description:l}),v({summary:"Updated description",success:!0}));let y=await u.fetchDefinitions();await jge({slotUpdates:e,twee:t,definitions:y,referenceData:u,addResult:v,isEditingPattern:f});let x=m.some(w=>!w.success);if(x?e.moveComponentInstances?.forEach(w=>{m.push({summary:`Skipped moving component ${w.componentId} because previous actions failed`,success:!1})}):await zge({slotUpdates:e,twee:t,definitions:y,addResult:v,isEditingPattern:f}),x=m.some(w=>!w.success),e.duplicateComponentInstances)for(let w of e.duplicateComponentInstances)if(x)v({summary:`Skipped duplicating component ${w} because previous actions failed`,success:!1});else{let S=await t.duplicateNode(w,u.resolvePatternData);v({summary:`Duplicated component ${w}. The new duplicate has ID ${S} and is placed immediately after the original component in the same slot.`,success:!0})}return x=m.some(w=>!w.success),e.deleteComponentInstances?.forEach(w=>{x?v({summary:`Skipped deleting component ${w} because previous actions failed`,success:!1}):(t.deleteNode(w,!1),v({summary:`Deleted component ${w}`,success:!0}))}),x=m.some(w=>!w.success),o?.enableLocales?.forEach(w=>{x?v({summary:`Skipped enabling locale ${w} because previous actions failed`,success:!1}):(t.enableLocale(w),v({summary:`Enabled locale ${w}`,success:!0}))}),x=m.some(w=>!w.success),o?.disableLocales?.forEach(w=>{x?v({summary:`Skipped disabling locale ${w} because previous actions failed`,success:!1}):(t.disableLocale(w),v({summary:`Disabled locale ${w}`,success:!0}))}),x=m.some(w=>!w.success),x?r.length>0&&v({summary:`Skipped ${r.length} property updates because previous actions failed`,success:!1}):(await Hge({propertyUpdates:r,twee:t,currentEditorLocale:s,referenceData:u,definitions:y,addResult:v})).forEach(S=>{if(!S.result.success)return;let E="componentId"in S.update?S.update.componentId:t.rootNodeId,$=Z2({twee:t,nodeId:E,currentEditorLocale:S.currentLocale,definition:S.propertyDefinition}),T=(t.getNodeById(t.rootNodeId)?.value)._locales??[];if($&&!T.includes($)){v({summary:`The ${$} locale is not enabled on this entity. Please enable it before setting values in this locale.`,success:!1});return}if(S.result.action!=="nothing")try{yB({twee:t,nodeId:E,propertyId:S.propertyDefinition.id,propertyType:S.propertyDefinition.type,locale:$,propertyEdit:S.result,definitionIndex:y,domParser:p}),v({summary:`Updated value of ${S.propertyDefinition.id} on ${E}${$?` in ${$}`:""}`,success:!0})}catch(D){v({summary:`Failed to update value of ${S.propertyDefinition.id} on ${E}${$?` in ${$}`:""}: ${D instanceof Error?D.message:"Unknown error"}`,success:!1})}if("overridable"in S.update&&S.update.overridable!==void 0)if(S.propertyDefinition.type===Fge)v({summary:`Cannot set overridability for block property '${S.propertyDefinition.id}' - blocks do not support overrides`,success:!1});else{let D=S.update.overridable;t.updateNode({nodeId:E,updateComponent:L=>{L._overridability??={},L._overridability.parameters??={},L._overridability.parameters[S.propertyDefinition.id]=D}}),v({summary:`Updated overridability for ${E}`,success:!0})}}),x=m.some(w=>!w.success),x?n.length>0&&m.push({summary:`Skipped ${n.length} data resource updates because previous actions failed`,success:!1}):(await Wge({dataResourceUpdates:n,twee:t,referenceData:u,results:m,dataSourceVariant:c})).forEach(S=>{if(!S.result.success)return;let E=S.update.componentId;if(S.result.action==="resetOverride")t.updateNode({nodeId:E,updateDataResources:[{type:"reset",name:S.update.dataResourceName}]}),m.push({summary:`Reset data resource to pattern default for ${S.update.dataResourceName} on ${E}`,success:!0});else if(S.result.action==="setValue")try{$E({twee:t,nodeId:E,dataResourceName:S.update.dataResourceName,dataType:S.dataType,dataResourceEdit:S.result}),m.push({summary:`Updated data resource ${S.update.dataResourceName} on ${E}`,success:!0})}catch($){m.push({summary:`Failed to update data resource ${S.update.dataResourceName} on ${E}: ${$ instanceof Error?$.message:"Unknown error"}`,success:!1})}}),{success:m.every(w=>w.success),actionsTaken:m}}async function jge({slotUpdates:t,twee:e,definitions:r,referenceData:n,addResult:o,isEditingPattern:a}){(await Promise.allSettled(t.createComponentInstances?.map(async l=>{let s=vf(e,l.parentComponentId,"Parent component");if(!r[s.value.type])throw new Error(`Definition for parent component type ${s.value.type} not found`);let c=U2({twee:e,parentNodeId:l.parentComponentId,slotName:l.slotName,componentDefinitionsIndex:r});if(!c)throw new Error(`Can't find allowed components for slot ${l.slotName}`);if(l.instanceType==="component"){if(!l.componentType)throw new Error("componentType is required when inserting a component instance");if(!Hh({type:l.componentType},c,a))throw new Error(`Component type ${l.componentType} is not allowed in slot ${l.slotName}`);e.insertNode({node:{type:l.componentType},overrideNodeId:l.newComponentInstanceUuid,parentNodeId:l.parentComponentId,parentSlot:l.slotName,targetIndexInSlot:l.slotIndex}),o({summary:`Inserted component ${l.componentType} in slot ${l.slotName} ${l.slotIndex!==void 0?`at index ${l.slotIndex}`:""}`,success:!0})}else{if(!l.componentPatternId)throw new Error("componentPatternId is required when inserting a component pattern instance");let d=await n.resolvePatternData(l.componentPatternId);if(!d)throw new Error(`Pattern definition with ID ${l.componentPatternId} not found`);if(!Hh({type:d.type,_pattern:l.componentPatternId},c,!1))throw new Error(`Pattern ${l.componentPatternId} is not allowed in slot ${l.slotName}`);e.insertPattern({pattern:d,patternInstanceId:l.newComponentInstanceUuid,parentNodeId:l.parentComponentId,parentSlot:l.slotName,targetIndexInSlot:l.slotIndex}),o({summary:`Inserted pattern ${d._name} in slot ${l.slotName} ${l.slotIndex!==void 0?`at index ${l.slotIndex}`:""}`,success:!0})}})??[])).forEach((l,s)=>{if(l.status==="rejected"){let u=t.createComponentInstances?.[s];console.error("Error inserting component",l.reason),o({summary:`Failed to insert component ${u?.newComponentInstanceUuid}: ${"message"in l.reason?l.reason.message:"Unknown error"}`,success:!1})}})}async function zge({slotUpdates:t,twee:e,definitions:r,addResult:n,isEditingPattern:o}){(await Promise.allSettled(t.moveComponentInstances?.map(async i=>{let l=vf(e,i.componentId,"Component to move"),s=vf(e,i.newParentComponentId,"Destination component");if(!r[s.value.type])throw new Error(`Definition for destination component type ${s.value.type} not found`);let c=U2({twee:e,parentNodeId:i.newParentComponentId,slotName:i.newSlotName,componentDefinitionsIndex:r});if(!c)throw new Error(`Can't find allowed components for slot ${i.newSlotName}`);if(!Hh({type:l.value.type,_pattern:l.value._pattern},c,o))throw new Error(l.value._pattern?`Pattern ${l.value._pattern} is not allowed in slot ${i.newSlotName}`:`Component ${l.value.type} is not allowed in slot ${i.newSlotName}`);e.moveNode({movedNodeId:i.componentId,parentNodeId:i.newParentComponentId,parentSlot:i.newSlotName,targetIndexInSlot:i.newSlotIndex}),n({summary:`Moved component ${i.componentId} to ${i.newParentComponentId} in slot ${i.newSlotName} at index ${i.newSlotIndex}`,success:!0})})??[])).forEach((i,l)=>{if(i.status==="rejected"){let s=t.moveComponentInstances?.[l];console.error("Error moving component",i.reason),n({summary:`Failed to move component ${s?.componentId}: ${"message"in i.reason?i.reason.message:"Unknown error"}`,success:!1})}})}async function Hge({propertyUpdates:t,twee:e,currentEditorLocale:r,referenceData:n,definitions:o,addResult:a}){if(t.length===0)return[];let[i,l]=await Promise.all([n.fetchProjectGuidance(),n.getToolClient()]),s=await Promise.allSettled(t.map(async u=>(async()=>{let c="componentId"in u?u.componentId:e.rootNodeId,d=vf(e,c),f=o[d.value.type];if(!f)throw new Error(`Definition with ID ${d.value.type} not found`);let p="fieldId"in u?u.fieldId:u.parameterId,m=f.parameters?.find(S=>S.id===p),h=u.fromLocale??u.locale??r,g=u.locale??r,v=m??{id:p,type:"unknown"};if(u.editInstructions===void 0)return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"nothing"},update:u,propertyDefinition:v};if(u.editInstructions==="")return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"clearValue"},update:u,propertyDefinition:v};if(!m)throw new Error(`Property with ID ${p} not found`);if(m.type==="contentReference"){let S=Z2({definition:m,twee:e,nodeId:c,currentEditorLocale:r}),E=mc(c,p,S,-1),$=d.value._dataResources?.[E],T=await l.invoke("createDataResourceEdit",{edit:u.editInstructions,dataType:ci,currentValue:$?.variables||{}});if(!T.success)throw new Error(T.summary??"Failed to edit reference field data resource");return{result:{success:!0,newValue:JSON.stringify({type:ci,variables:T.newValue}),treatNewValueAsJson:!0,action:"setValue"},update:u,propertyDefinition:m,currentLocale:S}}let y=Bge({property:e.getNodeProperty(c,p),locale:h,conditionIndex:-1}),x,C=e.getNodeProperty(c,Vge);C?.value?.dim&&(x=await n.getDimensionGuidance(C.value.dim));let w=await l.invoke("createPropertyEdit",{edit:u.editInstructions,propertyDefinition:{id:p,name:m.name,type:m.type,guidance:m.guidance,typeConfig:m.typeConfig},outputLocale:g,documentContext:void 0,currentValue:y,projectGuidance:i,componentGuidance:f.description,audienceGuidance:x});if(!w.success)throw new Error(w.summary??"Failed to edit property");return{result:w,update:u,propertyDefinition:m,currentLocale:g}})()));return s.forEach((u,c)=>{if(u.status==="rejected"){let d=t[c],f="fieldId"in d?d.fieldId:d.parameterId;a({summary:`Failed to edit property ${f}: ${"message"in u.reason?u.reason.message:"Unknown error"}`,success:!1})}}),s.filter(u=>u.status==="fulfilled").map(u=>u.value)}async function Wge({dataResourceUpdates:t,twee:e,referenceData:r,results:n,dataSourceVariant:o}){if(t.length===0)return[];let a=await r.getToolClient(),i=await Promise.allSettled(t.map(async l=>(async()=>{let s=l.componentId,u=vf(e,s);if(l.editInstructions===void 0)return{result:{success:!0,newValue:{},action:"nothing"},update:l,dataType:"unknown"};if(l.editInstructions==="")return{result:{success:!0,newValue:{},action:"setValue"},update:l,dataType:"unknown"};let c=u.value._dataResources?.[l.dataResourceName],d=u.value._patternDataResources?.[l.dataResourceName];if(!d)throw new Error(`Pattern data resource ${l.dataResourceName} does not exist on the ${u.value._pattern} pattern`);let f=c?.variables??d.variables,p=d.type,m=await a.invoke("createDataResourceEdit",{edit:l.editInstructions,dataType:p,currentValue:f,dataSourceVariant:o});if(!m.success)throw new Error(m.summary??"Failed to edit data resource");return{result:m,update:l,dataType:p}})()));return i.forEach((l,s)=>{if(l.status==="rejected"){let u=t[s];n.push({summary:`Failed to edit data resource ${u.dataResourceName}: ${"message"in l.reason?l.reason.message:"Unknown error"}`,success:!1})}}),i.filter(l=>l.status==="fulfilled").map(l=>l.value)}import{CANVAS_BLOCK_PARAM_TYPE as ba,CANVAS_ENRICHMENT_TAG_PARAM as tV,CANVAS_LOCALE_TAG_PARAM as th,CANVAS_LOCALIZATION_SLOT as xS,CANVAS_LOCALIZATION_TYPE as khe,CANVAS_PERSONALIZATION_PARAM as rh,CANVAS_PERSONALIZE_SLOT as rV,CANVAS_SLOT_SECTION_SLOT as Phe,CANVAS_SLOT_SECTION_TYPE as n2,CANVAS_TEST_SLOT as nV,CANVAS_TEST_VARIANT_PARAM as oV,CANVAS_VIZ_CONTROL_PARAM as fl,convertToBindExpression as aV,createVariableReference as iV,getEffectivePropertyValue as sV,getPropertiesValue as Ohe,parseVariableExpression as lV,walkNodeTree as rs,walkPropertyValues as Rhe}from"@uniformdev/canvas";var ac=B(cS(),1),cV=B(kf(),1);import{produce as wr}from"immer";import{v4 as pl}from"uuid";import{v4 as Yge}from"uuid";async function EB({projectMapClient:t,compositionId:e,compositionName:r,nodePathSegment:n,parentNodeId:o,localePathSegments:a,allowedQueryStrings:i}){let s=(await t.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!s)throw new Error("No project map found for this project");let u=n||a?.[0]?.pathSegment,c,d=0;if(o){let g=(await t.getNodes({id:o})).nodes?.[0];if(!g)throw new Error("Parent node not found");let v=g.path;d=((await t.getNodes({path:v,depth:1,expanded:!1})).nodes?.filter(w=>w.path!==v)??[]).reduce((w,S)=>Math.max(w,S.order??0),-1)+100,c=`${v==="/"?"":v}/${u}`}else c=`/${u}`;let f=a?.reduce((h,{locale:g,pathSegment:v})=>(h[g]={pathSegment:v,name:v},h),{}),p=i?.map(({name:h,defaultValue:g})=>({name:h,...g!==void 0&&{value:g}})),m=Yge();return await t.upsertProjectMapNodes({projectMapId:s,nodes:[{node:{id:m,name:r,path:c,type:"composition",compositionId:e,order:d,...f&&{locales:f},...p&&{data:{queryStrings:p}}}}]}),{path:c,nodeId:m}}import{bindVariablesToObject as Kge}from"@uniformdev/canvas";var qg="Untitled",$B=60;function TB({value:t,isNew:e,contentType:r}){let{result:n}=Kge({value:t,handleBinding:()=>"{token}",variables:{}}),o=r.entryName??"",a=(r.fields??[]).find(i=>i.id===o);if(typeof n=="string"){if(a?.type==="image")return n.length>0?`Image: ${Jge(n)}`:`${qg} image`;if(n.length>0)return a?.type==="date"?Qge(n)?ehe(n):"Invalid date":nc(n)}else{if(typeof n=="number"||typeof n=="boolean")return n.toString();if(typeof n<"u"&&n!==null){if(a?.type==="link")return Xge(n);if(cE(n))return nc(H2(n.root));if(a?.type==="datetime"&&n){let i=n;return i.datetime&&IB(i.datetime)?the(i.datetime):"Invalid datetime"}else return nc(rhe(n).description)}}return e?`New entry: ${r.name}`:qg}function Xge(t){return t?t.type==="projectMapNode"?t.path.length>0?`Link to ${nc(t.path)}`:`Link to project map node (${t.nodeId})`:t.path.length>0?`Link to ${nc(t.path)}`:`${qg} link`:`${qg} link`}function Jge(t){try{let{pathname:e,hostname:r}=new URL(t),n=e.split("/").filter(o=>o);return n.length>2?`/${n[0]}/.../${n[n.length-1]} (${nc(r)})`:`${e} (${nc(r)})`}catch{return t}}function nc(t){let e=t.split(" ").filter(a=>a).reverse();if(e.length<1)return qg;let r="",n=e.pop(),o=()=>r.length+(n?.length??0)+(r.length>0?1:0);for(;n&&o()<$B;)r+=r.length>0?` ${n}`:n,n=e.pop();return r.length<1?`${t.slice(0,$B)}...`:e.length>0?`${r}...`:r}var qge=/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9]$/;function Qge(t){return qge.test(t)?IB(t):!1}function IB(t){let e=new Date(t);return e instanceof Date&&!isNaN(Number(e))}function ehe(t){return new Date(t).toLocaleDateString()}function the(t){return new Date(t).toLocaleString()}function rhe(t){let e=dS(t);return e?{description:e,named:!0}:{description:nhe(t).valuePreview,named:!1}}function nhe(t){if(typeof t>"u")return{valueIcon:"close-o",valuePreview:"undefined"};if(t===null)return{valueIcon:"close-o",valuePreview:"null"};if(Array.isArray(t))return{valuePreview:`array with ${t.length} item${t.length!==1?"s":""}`,valueIcon:"list"};if(typeof t=="boolean")return{valuePreview:t.toString(),valueIcon:t?"check-r":"close-r"};if(typeof t=="number"||typeof t=="bigint")return{valuePreview:t.toString(10),valueIcon:"number-input"};if(typeof t=="object"){let e=Object.keys(t);return{valuePreview:`object with ${e.length} ${e.length!==1?"properties":"property"}`,valueIcon:"shape-hexagon"}}return{valuePreview:t,valueIcon:"text-input"}}var ohe=["displayName","name","_name","title","heading","label","parameters","fields","properties","entry","slug","_slug","alt","alt_description","description","results","items","entries","hits","value","id","objectID","identifier"];function dS(t){if(typeof t=="string")return t;if(typeof t=="number")return t.toString(10);if(typeof t=="boolean")return t.toString();if(typeof t!="object"||t===null)return;if(Array.isArray(t)){if(t.length===0)return;let n=dS(t[0]);return n?t.length===1?n:`${n} and ${t.length-1} other${t.length>2?"s":""}`:void 0}let r=t;for(let n of ohe)if(n in r){let o=dS(r[n]);if(o)return o}}import{CANVAS_SLOT_SECTION_SLOT as ahe,walkNodeTree as ihe}from"@uniformdev/canvas";import{v4 as DB}from"uuid";var Qg="|";function Jy(t,e){if(!t)return e??DB();let r=t.split(Qg),n=(e??DB()).split(Qg);return r.at(-1)===n[0]&&r.pop(),r.concat(n).join(Qg)}function LB(t){let e=t.indexOf(Qg);if(e<0)throw new Error(`Cannot remove pattern instance ID from ${t}`);return t.substring(e+1)}function qy(t,e,r=!1){ihe(t,({node:n,actions:{setDescendantsContext:o},context:a})=>{let i=!r&&!a?.currentParentPatternInstanceId,l="_pattern"in n&&!!n._pattern;if(a?.currentParentPatternInstanceId){let u=Jy(a.currentParentPatternInstanceId,n._id);n._id=u}let s=a?.currentParentPatternInstanceId;l&&(s=n._id),"_overrides"in n&&n._overrides&&AB(n._overrides,s,i),"_patternOverrides"in n&&n._patternOverrides&&AB(n._patternOverrides,s,i),l&&o({currentParentPatternInstanceId:n._id})},{initialContext:{currentParentPatternInstanceId:e}})}var AB=(t,e,r)=>{Object.entries(t).forEach(([n,o])=>{let a=r?n:Jy(e,n);Object.entries(o.slots??{}).forEach(([i,l])=>{l.forEach(s=>{let{partOfNestedPattern:u}=Qy(n??"");qy(s,i===ahe&&!u?void 0:e,!0)})}),a&&(delete t[n],t[a]=o)})};function Qy(t){let e=t.split(Qg);return e.length===1?{partOfPattern:void 0,partOfNestedPattern:void 0}:e.length===2?{partOfPattern:e[0],partOfNestedPattern:void 0}:{partOfPattern:e[0],partOfNestedPattern:e[e.length-2]}}import{CANVAS_SLOT_SECTION_SLOT as OB}from"@uniformdev/canvas";import{CANVAS_VIZ_CONTROL_PARAM as dhe}from"@uniformdev/canvas";import{CANVAS_ENRICHMENT_TAG_PARAM as _B,CANVAS_INTENT_TAG_PARAM as she,CANVAS_LOCALE_TAG_PARAM as lhe,CANVAS_PERSONALIZATION_PARAM as MB,CANVAS_TEST_VARIANT_PARAM as uhe,CANVAS_VIZ_CONTROL_PARAM as NB}from"@uniformdev/canvas";var che="$internal_displayName",kB=[{id:che,name:"Display Name",type:"text"},{id:she,name:"Intent Tag",type:"intentTag"},{id:lhe,name:"Locale Visibility",type:"localeSelect"},{id:MB,name:"Personalization Criteria",type:MB},{id:_B,name:"Enrichment Tags",type:_B,helpText:"Seeing this component will increase a visitor's score in these enrichments."},{id:uhe,name:"A/B Test",type:"testVariant"},{id:NB,name:"Visibility Control",type:NB}];var fhe=kB.reduce((t,e)=>(e.id===dhe||t.add(e.id),t),new Set);function oc(t,e){return fhe.has(e)?"yes":t?.parameters?.[e]??"no"}function fS(t,e){e&&Object.entries(e).forEach(([r,n])=>{let o=t[r];if(n.parameters||o?.parameters){t[r]??={};let a={...n?.parameters};Object.entries(o?.parameters??{}).forEach(([i,l])=>{let s=a[i];if(!s)a[i]=l;else if(l.locales||l.localesConditions||s.locales||s.localesConditions){let u={...s,...l};(l.locales||s.locales)&&(u.locales={...s.locales,...l.locales}),(l.localesConditions||s.localesConditions)&&(u.localesConditions={...s.localesConditions,...l.localesConditions}),a[i]=u}else a[i]={...s,...l}}),t[r].parameters=a}if((n.dataResources||o?.dataResources)&&(t[r]??={},t[r].dataResources={...n?.dataResources,...o?.dataResources}),n.slots||o?.slots){t[r]??={};let a=Object.entries(o?.slots??{}).reduce((i,[l,s])=>(i[l]&&Array.isArray(i[l])?i[l]=[...s,...i[l]]:i[l]=s,i),n.slots??{});t[r].slots=a}(n.variant!==void 0||o?.variant!==void 0)&&(t[r]=t[r]??{},t[r].variant=o?.variant??n?.variant)})}function PB({applyOverrideToNode:t}){let e=new Set,r={};return{visitNode(n){e.add(n._id),fS(r,n._overrides),fS(r,n._patternOverrides);let o=r[n._id];o&&(o.parameters&&Object.keys(o.parameters).forEach(a=>{oc(n._overridability,a)==="no"&&(console.log(`[Override] Cleaned override from ${n._id} parameter ${a} because it is not overridable`),delete r[n._id].parameters?.[a])}),o.dataResources&&Object.keys(o.dataResources).forEach(a=>{n._patternDataResources?.[a]?.isPatternParameter||(console.log(`[Override] Cleaned override from ${n._id} data resource ${a} because it is not overridable`),delete r[n._id].dataResources?.[a])}),o.variant!==void 0&&(n._overridability?.variants||delete o.variant),t({node:n,overrides:o}))},overrides:r}}function pS(t){let{beforeApplyParameterOverride:e,beforeApplyDataResourceOverride:r}=t??{};return PB({applyOverrideToNode({node:n,overrides:o}){if(Object.entries(o.parameters??{}).map(([a,i])=>{n.parameters=n.parameters??{},e?.(n,a,i,n.parameters[a]);let l=n.parameters[a]??={type:i.type};i.locales||i.localesConditions?(l.locales??={},delete l.value,delete l.conditions,new Set([...Object.keys(i.locales??{}),...Object.keys(i.localesConditions??{})]).forEach(c=>{delete l.locales?.[c],delete l.localesConditions?.[c];let d=i.locales?.[c],f=i.localesConditions?.[c];d!=null&&(l.locales??={},l.locales[c]=d),f!=null&&(l.localesConditions??={},l.localesConditions[c]=f)}),l.locales&&Object.keys(l.locales).length===0&&delete l.locales,l.localesConditions&&Object.keys(l.localesConditions).length===0&&delete l.localesConditions):(delete l.locales,delete l.localesConditions,delete l.conditions,delete l.value,i.value!==null&&i.value!==void 0&&(l.value=i.value,l.connectedData=i.connectedData),i.conditions!==null&&i.conditions!==void 0&&(l.conditions=i.conditions)),!l.locales&&!l.localesConditions&&!l.conditions&&l.value===void 0&&delete n.parameters[a]}),Object.entries(o.dataResources??{}).forEach(([a,i])=>{r?.(n,a,i,n._dataResources?.[a]),n._dataResources??={},n._dataResources[a]=i}),o.variant!==void 0&&(n.variant=o.variant),o.slots){n.slots??={};let a=Object.keys(o.slots)[0];n.slots[OB]??=[],n.slots[OB]=[...o.slots[a]??[]]}}})}import{CANVAS_SLOT_SECTION_SLOT as phe,CANVAS_SLOT_SECTION_TYPE as mhe}from"@uniformdev/canvas";var RB=({preserveOwnSlotSections:t=!1,preserveChildrenSlotSections:e=!1}={})=>r=>{if(r.node.type!==mhe)return;let{partOfPattern:n,partOfNestedPattern:o}=Qy(r.node._id??"");!n&&!o&&t||n&&!o&&e||ghe(r)},ghe=({node:t,type:e,actions:r})=>{e!=="entry"&&(r.insertAfter(t.slots?.[phe]??[]),r.remove())};import{walkNodeTree as yhe}from"@uniformdev/canvas";import{produce as xhe}from"immer";import{v4 as Che}from"uuid";import{CANVAS_SLOT_SECTION_SLOT as FB,walkNodeTree as hhe}from"@uniformdev/canvas";import{produce as vhe}from"immer";import{v4 as bhe}from"uuid";function e2(t,e,r,n=bhe()){if(!t._pattern)throw new Error("Not a pattern");let o={};return hhe(t,({node:a,ancestorsAndSelf:i,actions:l})=>{let s=a._id,u=e[s];if(i.length===1)a._id=n;else{let d=i[0];d.type!=="slot"||d.parentSlot!==FB?(a._id=LB(s),a._id=Jy(n,a._id)):(l.replace({...o[s],_id:o[s]._id}),l.stopProcessingDescendants())}if(u){let d=vhe(u,f=>{f.slots&&Object.entries(f.slots).forEach(([p,m])=>{if(p!==FB)throw new Error("Only slot section items are supported for duplication");m.forEach((h,g)=>{if(!h._id)return;let v=t2(h,e,r);o[h._id]=v,m[g]=v})})});r?.(a._id,d,s)}}),n}function t2(t,e,r){return xhe(t,n=>{yhe(n,({type:o,node:a,actions:{stopProcessingDescendants:i}})=>{o==="component"&&a._pattern?(e2(a,e,r),i()):a._id=Che()})})}import{produce as whe}from"immer";import{v4 as She}from"uuid";function BB(t,e=She()){return whe(t,r=>(r._pattern?e2(r,r._overrides??{},(n,o,a)=>{delete r._overrides[a],r._overrides[n]=o},e):r._id=e,r))}import{bindExpressionPrefix as VB}from"@uniformdev/canvas";var Ehe=new Set(["t","a","p","c"]),$he=new Set(["w","e","i"]);function jB(t){if(!t.startsWith(VB))return;let[r,n,...o]=t.substring(VB.length).split(":");if(r==="jptr"){if(!n)throw new Error(`Missing JSON pointer in dynamic token binding '${t}'`);let a="t",i="w",l;for(let s of o){let[u,c]=s.split("=");if(u==="fa"){if(!Ehe.has(c))throw new Error(`Invalid failure action '${c}' in dynamic token binding '${t}'`);a=c}else if(u==="fl"){if(!$he.has(c))throw new Error(`Invalid failure log level '${c}' in dynamic token binding '${t}'`);i=c}else if(u==="fd")l=Ihe(c);else throw new Error(`Unsupported property '${s}' in dynamic token binding '${t}'`)}return{pointer:zB(The(n)),syntax:r,failureAction:a,failureLogLevel:i,failureDefault:a==="t"?l:void 0}}throw new Error(`Unsupported dynamic token binding syntax '${r}'`)}function The(t){return t.replace(/\$\[([^}]+)\]/g,"${$1}")}function zB(t){let e=t.split("\\");return e.map((r,n)=>{if(r==="")return n>0&&e[n-1]===""?"":"\\";let o=r[0],a=r.substring(1);return o===";"&&(o=":"),a?o+a:o}).join("")}function Ihe(t){return zB(t.replace("\\+","="))}function HB(t){if(!t?.pointer)return;let e=t.pointer.indexOf("/",1);return e<0?{dataResource:t.pointer.substring(1)}:{dataResource:t.pointer.substring(1,e),dataExpression:t.pointer.substring(e)}}function r2({locale:t,conditionIndex:e,property:r}){if(t===void 0)if(e<0){if(delete r.value,!r.conditions?.length)return!1}else r.conditions?.splice(e,1);else e<0?delete r.locales?.[t]:r.localesConditions?.[t]?.splice(e,1);if(r.localesConditions){for(let[n,o]of Object.entries(r.localesConditions))if(o.length===0){delete r.localesConditions[n];break}Object.keys(r.localesConditions).length===0&&delete r.localesConditions}return r.locales&&Object.keys(r.locales).length===0&&delete r.locales,r.conditions&&r.conditions.length===0&&delete r.conditions,!!(r.value!==void 0||r.locales||r.conditions||r.localesConditions)}function mS({locale:t,conditionIndex:e,conditionDefinition:r,property:n,newPropertyValue:o}){t===void 0?e<0?n.value=o:(n.conditions??=[],WB(n.conditions,e,r,o)):e<0?(n.locales??={},n.locales[t]=o):(n.localesConditions??={},n.localesConditions[t]??=[],WB(n.localesConditions[t],e,r,o))}function WB(t,e,r,n){if(e<0)throw new Error("Condition index must be greater than or equal to 0");let o=t[e];t[e]={when:r??o?.when??{clauses:[]},value:n===void 0?null:n,id:o?.id??Dhe(t)}}function Dhe(t){let e=new Set(t.map(n=>n.id)),r=0;for(;e.has(r);)r++;return r}function GB(t){let e=!1,r={};return"_pattern"in t&&t._patternDataResources&&Object.entries(t._patternDataResources).forEach(([n,o])=>{e=!0,r[n]={...o,source:"patternDataResource"}}),t._dataResources&&Object.entries(t._dataResources).forEach(([n,o])=>{r[n]?r[n].isPatternParameter&&(e=!0,r[n]={...o,source:"dataResource"}):(e=!0,r[n]={...o,source:"dataResource"})}),e?r:void 0}import{CANVAS_DRAFT_STATE as Ahe,convertEntryToPutEntry as UJe,getPropertiesValue as KJe}from"@uniformdev/canvas";function UB(t){let{fields:e,entryName:r,type:n="contentType",thumbnailField:o,...a}=t;return{...a,titleParameter:r,thumbnailParameter:o,parameters:e,canBeComposition:n==="block",permissions:t.permissions,useTeamPermissions:t.useTeamPermissions??!0,workflowId:t.workflowId}}function ZB(t){return{id:t.id,name:t.name,entryName:t.titleParameter,thumbnailField:t.thumbnailParameter,fields:t.parameters,icon:t.icon,description:t.description,slugSettings:t.slugSettings,type:t.canBeComposition?"block":"contentType",created:t.created,updated:t.updated,permissions:t.permissions,useTeamPermissions:t.useTeamPermissions,workflowId:t.workflowId||void 0}}function eh(t){let{entry:{fields:e,...r},...n}=t;return{created:"",modified:"",composition:{_id:"",...r,_name:t.entry._name??"Untitled",parameters:e,_overridability:t.entry._overridability,_overrides:t.entry._overrides,_pattern:t.entry._pattern,_patternError:t.entry._patternError},pattern:!!t.pattern,previewImageUrl:t.entry._thumbnail,...n}}function YB(t,e,r,n,o,a,i){let l=i??e.projectId;if(!l)throw new Error("projectId is required in currentEntry or explicitly");return{created:e.created??"",modified:e.modified??"",projectId:l,state:n??e.state??Ahe,releaseId:o??e.releaseId,workflowId:r?.workflowId??e.workflowId,workflowStageId:r?.workflowStageId??e.workflowStageId,editionId:a,editionName:r?.editionName??e.editionName,editionPriority:r?.editionPriority??e.editionPriority,pattern:e.pattern,entry:{type:t.type,_id:t._id,_name:t._name,_slug:t._slug??"",fields:t.parameters,_thumbnail:r?.previewImageUrl??void 0,_dataResources:t._dataResources,_pattern:t._pattern,_patternError:t._patternError,_overridability:t._overridability,_overrides:t._overrides,_locales:t._locales,_author:t._author,_authorSubject:t._authorSubject,_creator:t._creator,_creatorSubject:t._creatorSubject,_patternDataResources:t._patternDataResources}}}function gS(t,e){let{parameters:r,...n}=t;return{...n,_id:e??n._id??"unknown",fields:r}}function hS(t){let{fields:e,...r}=t;return{...r,parameters:e}}function vS(t){let e=jB(t);if(e)switch(e.syntax){case"jptr":return HB(e);default:throw new Error(`Unsupported dynamic token binding syntax '${e.syntax}'`)}}import{CANVAS_VIZ_LOCALE_RULE as Lhe}from"@uniformdev/canvas";import{produce as _he}from"immer";function KB(t,e,r){let n=_he(t.criteria,o=>XB(o,e,r));return n&&{...t,criteria:n}}function XB(t,e,r){if(!t)return t;let n=!1;for(let o of t.clauses)if("clauses"in o){let a=XB(o,e,r);if(a===null){if(t.op!=="|")return null;t.clauses.splice(t.clauses.indexOf(o),1),n=!0}else a!==void 0&&(t.clauses[t.clauses.indexOf(o)]=a,n=!0)}else if(o.rule===Lhe){let a=Array.isArray(o.value)?o.value:[o.value],i=a.includes(e),l=a.includes(r);if(!i&&!l||i&&l)continue;if(a.length===1&&l&&!i)return null;i&&!l&&(o.value=a.concat(r),n=!0)}return n?t:void 0}var JB=B(cS(),1);function bS(t,e){try{return(0,JB.get)(t,e)}catch{return}}function yS(t,e,r=0){let n=t.slice(r*4,r*4+4);if(!n)throw new Error("Failed to generate a default variation name");return`${e.startsWith("$")?e.slice(1):e}-${n}`}import{CANVAS_VIZ_LOCALE_RULE as Mhe}from"@uniformdev/canvas";import{produce as Nhe}from"immer";function qB(t,e){let r=Nhe(t.criteria,n=>QB(n,e));return r&&{...t,criteria:r}}function QB(t,e){if(!t)return t;for(let r=t.clauses.length-1;r>=0;r--){let n=t.clauses[r];if("clauses"in n){let o=QB(n,e);if(o)t.clauses[r]=o;else if(t.clauses.splice(r,1),o===null&&t.op!=="|")return null}else if(n.rule===Mhe){let o=Array.isArray(n.value)?n.value:[n.value],a=o.indexOf(e);if(a!==-1)if(Array.isArray(n.value)&&n.value.length>1)o.splice(a,1);else if(n.op.startsWith("!"))t.clauses.splice(r,1);else return null}}if(t.clauses.length!==0)return t}function eV(t,e){let r=Nf();if(process.env.NODE_ENV==="development"&&!e){let n=new Error().stack?.split(`
|
|
5788
|
+
`);return React.createElement(Ry,{title:React.createElement(zw,{gap:"sm"},g.map((v,y)=>React.createElement("div",{key:y},v)))},React.createElement("span",null,m))}return m}function hge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--error)"}},t)}function vge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--primary-action-default)"}},t)}function bge({children:t}){return React.createElement("span",{style:{textDecoration:"underline",textDecorationStyle:"wavy",textDecorationColor:"var(--alert)"}},t)}import{createVariableReference as tKe}from"@uniformdev/canvas";var Xg=B(z()),yge=B(Zn());var uKe=$e("uniform:open-insert-variable"),mB=$e("uniform:edit-variable"),cKe=$e("uniform:disconnect-variable"),dKe=$e("uniform:insert-variable");var hf=class t extends Na{constructor(r,n,o){super(o);this.reference=r;this.__variableState=n}__variableState;static getType(){return"variable"}static clone(r){return new t(r.reference,{...r.__variableState},r.__key)}static importJSON(r){return gB(r.reference,{displayName:lS(r.reference),referenceIsValid:!0,isFresh:!1,hasClickEvent:void 0,tooltip:void 0,isLoading:!1})}getState(){return this.getLatest().__variableState}setState(r){this.getWritable().__variableState=r}exportJSON(){return{reference:this.reference,type:t.getType(),version:1}}getTextContent(){return xge(this.reference)}createDOM(){return document.createElement("span")}updateDOM(){return!1}static importDOM(){return{binding:()=>({conversion:Cge,priority:0})}}decorate(){return React.createElement(Sge,{state:this.__variableState,reference:this.reference,nodeKey:this.__key})}};function Cge(t){let r=t.textContent.replace(cB,"").replace(dB,"");return{node:gB(r,{displayName:lS(r),hasClickEvent:!0,referenceIsValid:!0,tooltip:void 0,isFresh:!0,isLoading:!1})}}function gB(t,e){return new hf(t,e)}function wge(t){return t instanceof hf}function Sge({state:t,reference:e,nodeKey:r}){let[n]=u1(),[o,a,i]=wI(r),l=!n.isEditable(),s=(0,Ky.useCallback)(u=>{if(o&&Mt(ie())){u.preventDefault();let c=st(r);wge(c)&&c.remove()}return!1},[o,r]);return(0,Ky.useEffect)(()=>Lr(n.registerCommand(Yl,s,lr),n.registerCommand(Ul,s,lr),n.registerCommand(Ci,u=>{let c=ie();if(Mt(c)){let d=c.getNodes();if(d.length>0)return u.preventDefault(),d[0].selectPrevious(),!0}if(!ee(c))return!1;if(Oc(c,!0)){let d=u.shiftKey;return u.preventDefault(),Rc(c,d,!0),!0}return!1},ze),n.registerCommand(Gl,u=>{let c=ie();if(Mt(c)&&!Ege(u.target)){let f=c.getNodes();if(f.length>0)return u.preventDefault(),f[0].selectNext(0,0),!0}if(!ee(c))return!1;let d=u.shiftKey;return Oc(c,!1)?(u.preventDefault(),Rc(c,d,!1),!0):!1},ze)),[i,n,o,r,s,a]),React.createElement(pB,{...t,reference:e,displayName:t.isLoading?React.createElement(kF,{size:"sm"}):t.displayName,selected:o,disabled:l,clickToEdit:t.hasClickEvent,onClick:t.hasClickEvent?()=>{a(!o),n.dispatchCommand(mB,{reference:e,sourceKey:r})}:()=>a(!o)})}function Ege(t){let e=nr(t);return pt(e)}var Jg=class t extends Na{__asset;__assetQuery;__upload;__error;getAsset(){return this.getLatest().__asset}setAsset(e){let r=this.getWritable();r.__asset=e}getAssetQuery(){return this.getLatest().__assetQuery}setAssetQuery(e){let r=this.getWritable();r.__assetQuery=e}getUpload(){return this.getLatest().__upload}setUpload(e){let r=this.getWritable();r.__upload=e}getError(){return this.getLatest().__error}setError(e){let r=this.getWritable();r.__error=e}static getType(){return"asset"}constructor(e,r,n,o,a){super(a),this.__asset=e,this.__upload=r,this.__error=o,this.__assetQuery=n}static clone(e){return new t(e.__asset,e.__upload,e.__assetQuery,e.__error,e.__key)}exportJSON(){let e={type:"asset",version:1};if(this.__asset&&(e.__asset=this.__asset),this.__assetQuery&&(e.__assetQuery=this.__assetQuery),this.__upload&&"fileUrl"in this.__upload){let{fileUrl:r,suggestedAltText:n,suggestedCaption:o}=this.__upload;e.__upload={fileUrl:r,suggestedAltText:n,suggestedCaption:o}}return this.__error&&(e.__error=this.__error),e}static importJSON(e){return uS({asset:e.__asset,assetQuery:e.__assetQuery,upload:e.__upload,error:e.__error})}static importDOM(){return{img:()=>({conversion:e=>$ge(e,uS),priority:0}),figure:()=>({conversion:e=>Tge(e,uS),priority:0})}}createDOM(e){let r=document.createElement("span"),o=e.theme.image;return o!==void 0&&(r.className=o),r}updateDOM(){return!1}isInline(){return!1}};function uS({asset:t,upload:e,assetQuery:r,error:n}){return ur(new Jg(t,e,r,n))}function hB(t){return t.parentElement!=null&&t.parentElement.tagName==="LI"&&t.previousSibling===null&&t.getAttribute("aria-roledescription")==="checkbox"}function $ge(t,e){let r=t;if(r.src.startsWith("file:///")||hB(r))return null;let{alt:n,src:o}=r;return{node:vB({altText:n,src:o,createAssetNode:e})}}function Tge(t,e){let r=t,n=r.querySelector("img"),o=r.querySelector("figcaption");if(!n||n.src.startsWith("file:///")||hB(n))return null;let{alt:a,src:i}=n;return i.startsWith("uniform://")?{node:e({assetQuery:{id:n.src.split("uniform://")[1],suggestedAltText:a,suggestedCaption:o?.textContent??void 0}})}:{node:vB({altText:a,src:i,caption:o?.textContent??void 0,createAssetNode:e})}}function vB({altText:t,src:e,caption:r,createAssetNode:n}){return n({asset:void 0,upload:{fileUrl:e,suggestedAltText:t,suggestedCaption:r},assetQuery:void 0})}var Ige=t=>new DOMParser().parseFromString(t,"text/html");function bB(t,e=Ige){let r=yT({nodes:[ko,lo,oS,Ii,Ti,yi,aa,oa,$s,Mo,Jg,hf]}),n=e(t);return r.update(()=>{R0("skip-dom-selection");let o=Z0(r,n);jt().select(),Mc(o)},{discrete:!0}),r.getEditorState().toJSON()}function yB({twee:t,nodeId:e,propertyId:r,propertyType:n,locale:o,propertyEdit:a,conditionIndex:i=-1,definitionIndex:l,domParser:s}){let u=t.getNodeById(e);if(!u)throw new Error(`Node with ID ${e} not found`);if(a.action==="clearValue")t.updateNodeProperty({nodeId:e,property:r,value:null,source:"ai",locale:o,conditionIndex:-1});else if(a.action==="resetOverride")t.resetPatternPropertyOverride(e,r,o);else if(a.action==="setValue"){if(n==="contentReference"){Oge({twee:t,nodeId:e,targetNode:u,propertyId:r,propertyType:n,propertyEdit:a,locale:o,conditionIndex:i,definitionIndex:l});return}let c=Pge({twee:t,targetNode:u,propertyId:r,propertyType:n,propertyEdit:a,domParser:s}),d=t.getNodeProperty(e,r);if(!o&&d?.locales)throw new Error(`The ${r} property is localized in ${Object.keys(d.locales).join(", ")}, but no locale was provided when setting its value. Please provide an explicit locale.`);if(r===Lge){let f=t.getParentInfo(e);if(f?.parentId){let p=t.getNodeProperty(f.parentId,Age);if(p?.value!==AE)throw new Error(`Cannot edit personalization criteria when the parent personalization component is not using the Strongest Variation Match selection method. Current selection method: ${p?.value||"Top-down criteria matching"}.`)}}t.updateNodeProperty({nodeId:e,property:r,value:()=>c,source:"ai",locale:o,conditionIndex:i,type:n})}}var Pge=({twee:t,targetNode:e,propertyId:r,propertyType:n,propertyEdit:o,domParser:a})=>{if(n==="richText")return bB(o.newValue??"",a);if(n==="number")return Number(o.newValue);if(r===Dge){if(kge(e.value.type))throw new Error("Enrichment tags are not allowed in system components.");if(t.getParentInfo(e.nodeId)?.parentId===_ge)throw new Error("Enrichment tags are not allowed in personalization variants.")}return o.treatNewValueAsJson?JSON.parse(o.newValue):o.newValue};function Oge({twee:t,nodeId:e,targetNode:r,propertyId:n,propertyType:o,propertyEdit:a,locale:i,conditionIndex:l,definitionIndex:s}){let u=mc(r.nodeId,n,i,l),c;try{c=a.treatNewValueAsJson?JSON.parse(a.newValue):a.newValue}catch(y){throw new Error(`Invalid reference field data: ${y instanceof Error?y.message:"Unknown error"}`)}if(!c||typeof c!="object"||c.type!==ci)throw new Error("Invalid reference field definition received from AI");let d=c.variables?.entryIds;if(!d||typeof d!="string"||d.length===0){t.updateNode({nodeId:r.nodeId,updateDataResources:[{type:"remove",name:u}]}),t.updateNodeProperty({nodeId:e,property:n,value:null,source:"ai",locale:i,conditionIndex:l,type:o});return}let m=s[r.value.type]?.parameters?.find(({id:y})=>y===n)?.typeConfig?.isMulti??!1,h=EE(d,{targetLocale:i,enabledLocales:t.getNodeById(t.rootNodeId)?.value._locales??[]});t.updateNode({nodeId:r.nodeId,updateDataResources:[{type:"set",name:u,value:h}]});let g=`/${u}/entries${m?"":"/0"}`,v=Nge(Mge({syntax:"jptr",pointer:g}));t.updateNodeProperty({nodeId:e,property:n,value:()=>v,source:"ai",locale:i,conditionIndex:l,type:o})}import{validate as Rge}from"uuid";var xB=t=>Rge(t)?t:btoa(t);function vf(t,e,r="Component instance"){let n=t.getNodeById(e);if(n)return n;let o=[];if(t.visitNodeAndDescendants(t.rootNodeId,a=>{a.nodeId!==e&&a.nodeId.includes(e)&&o.push(a.nodeId)}),o.length>0){let a=o.map(i=>`"${xB(i)}"`).join(", ");throw new Error(`${r} with ID ${e} not found. You might have meant one of these IDs that does exist: ${a}. Component IDs should be used exactly as provided in the _id field.`)}throw new Error(`${r} with ID ${e} not found`)}async function Xy({twee:t,slotUpdates:e,propertyUpdates:r,dataResourceUpdates:n,localeUpdates:o,nameUpdate:a,slugUpdate:i,descriptionUpdate:l,currentEditorLocale:s,referenceData:u,dataSourceVariant:c,onStatusUpdate:d,isEditingPattern:f,domParser:p}){let m=[],h=(a?1:0)+(i?1:0)+(l?1:0)+(e.createComponentInstances?.length??0)+(e.moveComponentInstances?.length??0)+(e.duplicateComponentInstances?.length??0)+(e.deleteComponentInstances?.length??0)+(o?.enableLocales?.length??0)+(o?.disableLocales?.length??0)+r.length,g=0,v=w=>{m.push(w),g++,d?.({completed:g,total:h})};a&&(t.updateRootNode({update:{_name:a}}),v({summary:"Updated name",success:!0})),i&&(t.updateRootNode({update:{_slug:i}}),v({summary:"Updated slug",success:!0})),l&&(t.updateRootMetadata({description:l}),v({summary:"Updated description",success:!0}));let y=await u.fetchDefinitions();await jge({slotUpdates:e,twee:t,definitions:y,referenceData:u,addResult:v,isEditingPattern:f});let x=m.some(w=>!w.success);if(x?e.moveComponentInstances?.forEach(w=>{m.push({summary:`Skipped moving component ${w.componentId} because previous actions failed`,success:!1})}):await zge({slotUpdates:e,twee:t,definitions:y,addResult:v,isEditingPattern:f}),x=m.some(w=>!w.success),e.duplicateComponentInstances)for(let w of e.duplicateComponentInstances)if(x)v({summary:`Skipped duplicating component ${w} because previous actions failed`,success:!1});else{let S=await t.duplicateNode(w,u.resolvePatternData);v({summary:`Duplicated component ${w}. The new duplicate has ID ${S} and is placed immediately after the original component in the same slot.`,success:!0})}return x=m.some(w=>!w.success),e.deleteComponentInstances?.forEach(w=>{x?v({summary:`Skipped deleting component ${w} because previous actions failed`,success:!1}):(t.deleteNode(w,!1),v({summary:`Deleted component ${w}`,success:!0}))}),x=m.some(w=>!w.success),o?.enableLocales?.forEach(w=>{x?v({summary:`Skipped enabling locale ${w} because previous actions failed`,success:!1}):(t.enableLocale(w),v({summary:`Enabled locale ${w}`,success:!0}))}),x=m.some(w=>!w.success),o?.disableLocales?.forEach(w=>{x?v({summary:`Skipped disabling locale ${w} because previous actions failed`,success:!1}):(t.disableLocale(w),v({summary:`Disabled locale ${w}`,success:!0}))}),x=m.some(w=>!w.success),x?r.length>0&&v({summary:`Skipped ${r.length} property updates because previous actions failed`,success:!1}):(await Hge({propertyUpdates:r,twee:t,currentEditorLocale:s,referenceData:u,definitions:y,addResult:v})).forEach(S=>{if(!S.result.success)return;let E="componentId"in S.update?S.update.componentId:t.rootNodeId,$=Z2({twee:t,nodeId:E,currentEditorLocale:S.currentLocale,definition:S.propertyDefinition}),T=(t.getNodeById(t.rootNodeId)?.value)._locales??[];if($&&!T.includes($)){v({summary:`The ${$} locale is not enabled on this entity. Please enable it before setting values in this locale.`,success:!1});return}if(S.result.action!=="nothing")try{yB({twee:t,nodeId:E,propertyId:S.propertyDefinition.id,propertyType:S.propertyDefinition.type,locale:$,propertyEdit:S.result,definitionIndex:y,domParser:p}),v({summary:`Updated value of ${S.propertyDefinition.id} on ${E}${$?` in ${$}`:""}`,success:!0})}catch(D){v({summary:`Failed to update value of ${S.propertyDefinition.id} on ${E}${$?` in ${$}`:""}: ${D instanceof Error?D.message:"Unknown error"}`,success:!1})}if("overridable"in S.update&&S.update.overridable!==void 0)if(S.propertyDefinition.type===Fge)v({summary:`Cannot set overridability for block property '${S.propertyDefinition.id}' - blocks do not support overrides`,success:!1});else{let D=S.update.overridable;t.updateNode({nodeId:E,updateComponent:L=>{L._overridability??={},L._overridability.parameters??={},L._overridability.parameters[S.propertyDefinition.id]=D}}),v({summary:`Updated overridability for ${E}`,success:!0})}}),x=m.some(w=>!w.success),x?n.length>0&&m.push({summary:`Skipped ${n.length} data resource updates because previous actions failed`,success:!1}):(await Wge({dataResourceUpdates:n,twee:t,referenceData:u,results:m,dataSourceVariant:c})).forEach(S=>{if(!S.result.success)return;let E=S.update.componentId;if(S.result.action==="resetOverride")t.updateNode({nodeId:E,updateDataResources:[{type:"reset",name:S.update.dataResourceName}]}),m.push({summary:`Reset data resource to pattern default for ${S.update.dataResourceName} on ${E}`,success:!0});else if(S.result.action==="setValue")try{$E({twee:t,nodeId:E,dataResourceName:S.update.dataResourceName,dataType:S.dataType,dataResourceEdit:S.result}),m.push({summary:`Updated data resource ${S.update.dataResourceName} on ${E}`,success:!0})}catch($){m.push({summary:`Failed to update data resource ${S.update.dataResourceName} on ${E}: ${$ instanceof Error?$.message:"Unknown error"}`,success:!1})}}),{success:m.every(w=>w.success),actionsTaken:m}}async function jge({slotUpdates:t,twee:e,definitions:r,referenceData:n,addResult:o,isEditingPattern:a}){(await Promise.allSettled(t.createComponentInstances?.map(async l=>{let s=vf(e,l.parentComponentId,"Parent component");if(!r[s.value.type])throw new Error(`Definition for parent component type ${s.value.type} not found`);let c=U2({twee:e,parentNodeId:l.parentComponentId,slotName:l.slotName,componentDefinitionsIndex:r});if(!c)throw new Error(`Can't find allowed components for slot ${l.slotName}`);if(l.instanceType==="component"){if(!l.componentType)throw new Error("componentType is required when inserting a component instance");if(!Hh({type:l.componentType},c,a))throw new Error(`Component type ${l.componentType} is not allowed in slot ${l.slotName}`);e.insertNode({node:{type:l.componentType},overrideNodeId:l.newComponentInstanceUuid,parentNodeId:l.parentComponentId,parentSlot:l.slotName,targetIndexInSlot:l.slotIndex}),o({summary:`Inserted component ${l.componentType} in slot ${l.slotName} ${l.slotIndex!==void 0?`at index ${l.slotIndex}`:""}`,success:!0})}else{if(!l.componentPatternId)throw new Error("componentPatternId is required when inserting a component pattern instance");let d=await n.resolvePatternData(l.componentPatternId);if(!d)throw new Error(`Pattern definition with ID ${l.componentPatternId} not found`);if(!Hh({type:d.type,_pattern:l.componentPatternId},c,!1))throw new Error(`Pattern ${l.componentPatternId} is not allowed in slot ${l.slotName}`);e.insertPattern({pattern:d,patternInstanceId:l.newComponentInstanceUuid,parentNodeId:l.parentComponentId,parentSlot:l.slotName,targetIndexInSlot:l.slotIndex}),o({summary:`Inserted pattern ${d._name} in slot ${l.slotName} ${l.slotIndex!==void 0?`at index ${l.slotIndex}`:""}`,success:!0})}})??[])).forEach((l,s)=>{if(l.status==="rejected"){let u=t.createComponentInstances?.[s];console.error("Error inserting component",l.reason),o({summary:`Failed to insert component ${u?.newComponentInstanceUuid}: ${"message"in l.reason?l.reason.message:"Unknown error"}`,success:!1})}})}async function zge({slotUpdates:t,twee:e,definitions:r,addResult:n,isEditingPattern:o}){(await Promise.allSettled(t.moveComponentInstances?.map(async i=>{let l=vf(e,i.componentId,"Component to move"),s=vf(e,i.newParentComponentId,"Destination component");if(!r[s.value.type])throw new Error(`Definition for destination component type ${s.value.type} not found`);let c=U2({twee:e,parentNodeId:i.newParentComponentId,slotName:i.newSlotName,componentDefinitionsIndex:r});if(!c)throw new Error(`Can't find allowed components for slot ${i.newSlotName}`);if(!Hh({type:l.value.type,_pattern:l.value._pattern},c,o))throw new Error(l.value._pattern?`Pattern ${l.value._pattern} is not allowed in slot ${i.newSlotName}`:`Component ${l.value.type} is not allowed in slot ${i.newSlotName}`);e.moveNode({movedNodeId:i.componentId,parentNodeId:i.newParentComponentId,parentSlot:i.newSlotName,targetIndexInSlot:i.newSlotIndex}),n({summary:`Moved component ${i.componentId} to ${i.newParentComponentId} in slot ${i.newSlotName} at index ${i.newSlotIndex}`,success:!0})})??[])).forEach((i,l)=>{if(i.status==="rejected"){let s=t.moveComponentInstances?.[l];console.error("Error moving component",i.reason),n({summary:`Failed to move component ${s?.componentId}: ${"message"in i.reason?i.reason.message:"Unknown error"}`,success:!1})}})}async function Hge({propertyUpdates:t,twee:e,currentEditorLocale:r,referenceData:n,definitions:o,addResult:a}){if(t.length===0)return[];let[i,l]=await Promise.all([n.fetchProjectGuidance(),n.getToolClient()]),s=await Promise.allSettled(t.map(async u=>(async()=>{let c="componentId"in u?u.componentId:e.rootNodeId,d=vf(e,c),f=o[d.value.type];if(!f)throw new Error(`Definition with ID ${d.value.type} not found`);let p="fieldId"in u?u.fieldId:u.parameterId,m=f.parameters?.find(S=>S.id===p),h=u.fromLocale??u.locale??r,g=u.locale??r,v=m??{id:p,type:"unknown"};if(u.editInstructions===void 0)return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"nothing"},update:u,propertyDefinition:v};if(u.editInstructions==="")return{result:{success:!0,newValue:"",treatNewValueAsJson:!1,action:"clearValue"},update:u,propertyDefinition:v};if(!m)throw new Error(`Property with ID ${p} not found`);if(m.type==="contentReference"){let S=Z2({definition:m,twee:e,nodeId:c,currentEditorLocale:r}),E=mc(c,p,S,-1),$=d.value._dataResources?.[E],T=await l.invoke("createDataResourceEdit",{edit:u.editInstructions,dataType:ci,currentValue:$?.variables||{}});if(!T.success)throw new Error(T.summary??"Failed to edit reference field data resource");return{result:{success:!0,newValue:JSON.stringify({type:ci,variables:T.newValue}),treatNewValueAsJson:!0,action:"setValue"},update:u,propertyDefinition:m,currentLocale:S}}let y=Bge({property:e.getNodeProperty(c,p),locale:h,conditionIndex:-1}),x,C=e.getNodeProperty(c,Vge);C?.value?.dim&&(x=await n.getDimensionGuidance(C.value.dim));let w=await l.invoke("createPropertyEdit",{edit:u.editInstructions,propertyDefinition:{id:p,name:m.name,type:m.type,guidance:m.guidance,typeConfig:m.typeConfig},outputLocale:g,documentContext:void 0,currentValue:y,projectGuidance:i,componentGuidance:f.description,audienceGuidance:x});if(!w.success)throw new Error(w.summary??"Failed to edit property");return{result:w,update:u,propertyDefinition:m,currentLocale:g}})()));return s.forEach((u,c)=>{if(u.status==="rejected"){let d=t[c],f="fieldId"in d?d.fieldId:d.parameterId;a({summary:`Failed to edit property ${f}: ${"message"in u.reason?u.reason.message:"Unknown error"}`,success:!1})}}),s.filter(u=>u.status==="fulfilled").map(u=>u.value)}async function Wge({dataResourceUpdates:t,twee:e,referenceData:r,results:n,dataSourceVariant:o}){if(t.length===0)return[];let a=await r.getToolClient(),i=await Promise.allSettled(t.map(async l=>(async()=>{let s=l.componentId,u=vf(e,s);if(l.editInstructions===void 0)return{result:{success:!0,newValue:{},action:"nothing"},update:l,dataType:"unknown"};if(l.editInstructions==="")return{result:{success:!0,newValue:{},action:"setValue"},update:l,dataType:"unknown"};let c=u.value._dataResources?.[l.dataResourceName],d=u.value._patternDataResources?.[l.dataResourceName];if(!d)throw new Error(`Pattern data resource ${l.dataResourceName} does not exist on the ${u.value._pattern} pattern`);let f=c?.variables??d.variables,p=d.type,m=await a.invoke("createDataResourceEdit",{edit:l.editInstructions,dataType:p,currentValue:f,dataSourceVariant:o});if(!m.success)throw new Error(m.summary??"Failed to edit data resource");return{result:m,update:l,dataType:p}})()));return i.forEach((l,s)=>{if(l.status==="rejected"){let u=t[s];n.push({summary:`Failed to edit data resource ${u.dataResourceName}: ${"message"in l.reason?l.reason.message:"Unknown error"}`,success:!1})}}),i.filter(l=>l.status==="fulfilled").map(l=>l.value)}import{CANVAS_BLOCK_PARAM_TYPE as ba,CANVAS_ENRICHMENT_TAG_PARAM as tV,CANVAS_LOCALE_TAG_PARAM as th,CANVAS_LOCALIZATION_SLOT as xS,CANVAS_LOCALIZATION_TYPE as khe,CANVAS_PERSONALIZATION_PARAM as rh,CANVAS_PERSONALIZE_SLOT as rV,CANVAS_SLOT_SECTION_SLOT as Phe,CANVAS_SLOT_SECTION_TYPE as n2,CANVAS_TEST_SLOT as nV,CANVAS_TEST_VARIANT_PARAM as oV,CANVAS_VIZ_CONTROL_PARAM as fl,convertToBindExpression as aV,createVariableReference as iV,getEffectivePropertyValue as sV,getPropertiesValue as Ohe,parseVariableExpression as lV,walkNodeTree as rs,walkPropertyValues as Rhe}from"@uniformdev/canvas";var ac=B(cS(),1),cV=B(kf(),1);import{produce as wr}from"immer";import{v4 as pl}from"uuid";import{v4 as Yge}from"uuid";async function EB({projectMapClient:t,compositionId:e,compositionName:r,nodePathSegment:n,parentNodeId:o,localePathSegments:a,allowedQueryStrings:i}){let s=(await t.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!s)throw new Error("No project map found for this project");let u=n||a?.[0]?.pathSegment,c,d=0;if(o){let g=(await t.getNodes({id:o})).nodes?.[0];if(!g)throw new Error("Parent node not found");let v=g.path;d=((await t.getNodes({path:v,depth:1,expanded:!1})).nodes?.filter(w=>w.path!==v)??[]).reduce((w,S)=>Math.max(w,S.order??0),-1)+100,c=`${v==="/"?"":v}/${u}`}else c=`/${u}`;let f=a?.reduce((h,{locale:g,pathSegment:v})=>(h[g]={pathSegment:v,name:v},h),{}),p=i?.map(({name:h,defaultValue:g})=>({name:h,...g!==void 0&&{value:g}})),m=Yge();return await t.upsertProjectMapNodes({projectMapId:s,nodes:[{node:{id:m,name:r,path:c,type:"composition",compositionId:e,order:d,...f&&{locales:f},...p&&{data:{queryStrings:p}}}}]}),{path:c,nodeId:m}}import{bindVariablesToObject as Kge}from"@uniformdev/canvas";var qg="Untitled",$B=60;function TB({value:t,isNew:e,contentType:r}){let{result:n}=Kge({value:t,handleBinding:()=>"{token}",variables:{}}),o=r.entryName??"",a=(r.fields??[]).find(i=>i.id===o);if(typeof n=="string"){if(a?.type==="image")return n.length>0?`Image: ${Jge(n)}`:`${qg} image`;if(n.length>0)return a?.type==="date"?Qge(n)?ehe(n):"Invalid date":nc(n)}else{if(typeof n=="number"||typeof n=="boolean")return n.toString();if(typeof n<"u"&&n!==null){if(a?.type==="link")return Xge(n);if(cE(n))return nc(H2(n.root));if(a?.type==="datetime"&&n){let i=n;return i.datetime&&IB(i.datetime)?the(i.datetime):"Invalid datetime"}else return nc(rhe(n).description)}}return e?`New entry: ${r.name}`:qg}function Xge(t){return t?t.type==="projectMapNode"?t.path.length>0?`Link to ${nc(t.path)}`:`Link to project map node (${t.nodeId})`:t.path.length>0?`Link to ${nc(t.path)}`:`${qg} link`:`${qg} link`}function Jge(t){try{let{pathname:e,hostname:r}=new URL(t),n=e.split("/").filter(o=>o);return n.length>2?`/${n[0]}/.../${n[n.length-1]} (${nc(r)})`:`${e} (${nc(r)})`}catch{return t}}function nc(t){let e=t.split(" ").filter(a=>a).reverse();if(e.length<1)return qg;let r="",n=e.pop(),o=()=>r.length+(n?.length??0)+(r.length>0?1:0);for(;n&&o()<$B;)r+=r.length>0?` ${n}`:n,n=e.pop();return r.length<1?`${t.slice(0,$B)}...`:e.length>0?`${r}...`:r}var qge=/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9]$/;function Qge(t){return qge.test(t)?IB(t):!1}function IB(t){let e=new Date(t);return e instanceof Date&&!isNaN(Number(e))}function ehe(t){return new Date(t).toLocaleDateString()}function the(t){return new Date(t).toLocaleString()}function rhe(t){let e=dS(t);return e?{description:e,named:!0}:{description:nhe(t).valuePreview,named:!1}}function nhe(t){if(typeof t>"u")return{valueIcon:"close-o",valuePreview:"undefined"};if(t===null)return{valueIcon:"close-o",valuePreview:"null"};if(Array.isArray(t))return{valuePreview:`array with ${t.length} item${t.length!==1?"s":""}`,valueIcon:"list"};if(typeof t=="boolean")return{valuePreview:t.toString(),valueIcon:t?"check-r":"close-r"};if(typeof t=="number"||typeof t=="bigint")return{valuePreview:t.toString(10),valueIcon:"number-input"};if(typeof t=="object"){let e=Object.keys(t);return{valuePreview:`object with ${e.length} ${e.length!==1?"properties":"property"}`,valueIcon:"shape-hexagon"}}return{valuePreview:t,valueIcon:"text-input"}}var ohe=["displayName","name","_name","title","heading","label","parameters","fields","properties","entry","slug","_slug","alt","alt_description","description","results","items","entries","hits","value","id","objectID","identifier"];function dS(t){if(typeof t=="string")return t;if(typeof t=="number")return t.toString(10);if(typeof t=="boolean")return t.toString();if(typeof t!="object"||t===null)return;if(Array.isArray(t)){if(t.length===0)return;let n=dS(t[0]);return n?t.length===1?n:`${n} and ${t.length-1} other${t.length>2?"s":""}`:void 0}let r=t;for(let n of ohe)if(n in r){let o=dS(r[n]);if(o)return o}}import{CANVAS_SLOT_SECTION_SLOT as ahe,walkNodeTree as ihe}from"@uniformdev/canvas";import{v4 as DB}from"uuid";var Qg="|";function Jy(t,e){if(!t)return e??DB();let r=t.split(Qg),n=(e??DB()).split(Qg);return r.at(-1)===n[0]&&r.pop(),r.concat(n).join(Qg)}function LB(t){let e=t.indexOf(Qg);if(e<0)throw new Error(`Cannot remove pattern instance ID from ${t}`);return t.substring(e+1)}function qy(t,e,r=!1){ihe(t,({node:n,actions:{setDescendantsContext:o},context:a})=>{let i=!r&&!a?.currentParentPatternInstanceId,l="_pattern"in n&&!!n._pattern;if(a?.currentParentPatternInstanceId){let u=Jy(a.currentParentPatternInstanceId,n._id);n._id=u}let s=a?.currentParentPatternInstanceId;l&&(s=n._id),"_overrides"in n&&n._overrides&&AB(n._overrides,s,i),"_patternOverrides"in n&&n._patternOverrides&&AB(n._patternOverrides,s,i),l&&o({currentParentPatternInstanceId:n._id})},{initialContext:{currentParentPatternInstanceId:e}})}var AB=(t,e,r)=>{Object.entries(t).forEach(([n,o])=>{let a=r?n:Jy(e,n);Object.entries(o.slots??{}).forEach(([i,l])=>{l.forEach(s=>{let{partOfNestedPattern:u}=Qy(n??"");qy(s,i===ahe&&!u?void 0:e,!0)})}),a&&(delete t[n],t[a]=o)})};function Qy(t){let e=t.split(Qg);return e.length===1?{partOfPattern:void 0,partOfNestedPattern:void 0}:e.length===2?{partOfPattern:e[0],partOfNestedPattern:void 0}:{partOfPattern:e[0],partOfNestedPattern:e[e.length-2]}}import{CANVAS_SLOT_SECTION_SLOT as OB}from"@uniformdev/canvas";import{CANVAS_VIZ_CONTROL_PARAM as dhe}from"@uniformdev/canvas";import{CANVAS_ENRICHMENT_TAG_PARAM as _B,CANVAS_INTENT_TAG_PARAM as she,CANVAS_LOCALE_TAG_PARAM as lhe,CANVAS_PERSONALIZATION_PARAM as MB,CANVAS_TEST_VARIANT_PARAM as uhe,CANVAS_VIZ_CONTROL_PARAM as NB}from"@uniformdev/canvas";var che="$internal_displayName",kB=[{id:che,name:"Display Name",type:"text"},{id:she,name:"Intent Tag",type:"intentTag"},{id:lhe,name:"Locale Visibility",type:"localeSelect"},{id:MB,name:"Personalization Criteria",type:MB},{id:_B,name:"Enrichment Tags",type:_B,helpText:"Seeing this component will increase a visitor's score in these enrichments."},{id:uhe,name:"A/B Test",type:"testVariant"},{id:NB,name:"Visibility Control",type:NB}];var fhe=kB.reduce((t,e)=>(e.id===dhe||t.add(e.id),t),new Set);function oc(t,e){return fhe.has(e)?"yes":t?.parameters?.[e]??"no"}function fS(t,e){e&&Object.entries(e).forEach(([r,n])=>{let o=t[r];if(n.parameters||o?.parameters){t[r]??={};let a={...n?.parameters};Object.entries(o?.parameters??{}).forEach(([i,l])=>{let s=a[i];if(!s)a[i]=l;else if(l.locales||l.localesConditions||s.locales||s.localesConditions){let u={...s,...l};(l.locales||s.locales)&&(u.locales={...s.locales,...l.locales}),(l.localesConditions||s.localesConditions)&&(u.localesConditions={...s.localesConditions,...l.localesConditions}),a[i]=u}else a[i]={...s,...l}}),t[r].parameters=a}if((n.dataResources||o?.dataResources)&&(t[r]??={},t[r].dataResources={...n?.dataResources,...o?.dataResources}),n.slots||o?.slots){t[r]??={};let a=Object.entries(o?.slots??{}).reduce((i,[l,s])=>(i[l]&&Array.isArray(i[l])?i[l]=[...s,...i[l]]:i[l]=s,i),n.slots??{});t[r].slots=a}(n.variant!==void 0||o?.variant!==void 0)&&(t[r]=t[r]??{},t[r].variant=o?.variant??n?.variant)})}function PB({applyOverrideToNode:t}){let e=new Set,r={};return{visitNode(n){e.add(n._id),fS(r,n._overrides),fS(r,n._patternOverrides);let o=r[n._id];o&&(o.parameters&&Object.keys(o.parameters).forEach(a=>{oc(n._overridability,a)==="no"&&(console.log(`[Override] Cleaned override from ${n._id} parameter ${a} because it is not overridable`),delete r[n._id].parameters?.[a])}),o.dataResources&&Object.keys(o.dataResources).forEach(a=>{n._patternDataResources?.[a]?.isPatternParameter||(console.log(`[Override] Cleaned override from ${n._id} data resource ${a} because it is not overridable`),delete r[n._id].dataResources?.[a])}),o.variant!==void 0&&(n._overridability?.variants||delete o.variant),t({node:n,overrides:o}))},overrides:r}}function pS(t){let{beforeApplyParameterOverride:e,beforeApplyDataResourceOverride:r}=t??{};return PB({applyOverrideToNode({node:n,overrides:o}){if(Object.entries(o.parameters??{}).map(([a,i])=>{n.parameters=n.parameters??{},e?.(n,a,i,n.parameters[a]);let l=n.parameters[a]??={type:i.type};i.locales||i.localesConditions?(l.locales??={},delete l.value,delete l.conditions,new Set([...Object.keys(i.locales??{}),...Object.keys(i.localesConditions??{})]).forEach(c=>{delete l.locales?.[c],delete l.localesConditions?.[c];let d=i.locales?.[c],f=i.localesConditions?.[c];d!=null&&(l.locales??={},l.locales[c]=d),f!=null&&(l.localesConditions??={},l.localesConditions[c]=f)}),l.locales&&Object.keys(l.locales).length===0&&delete l.locales,l.localesConditions&&Object.keys(l.localesConditions).length===0&&delete l.localesConditions):(delete l.locales,delete l.localesConditions,delete l.conditions,delete l.value,i.value!==null&&i.value!==void 0&&(l.value=i.value,l.connectedData=i.connectedData),i.conditions!==null&&i.conditions!==void 0&&(l.conditions=i.conditions)),!l.locales&&!l.localesConditions&&!l.conditions&&l.value===void 0&&delete n.parameters[a]}),Object.entries(o.dataResources??{}).forEach(([a,i])=>{r?.(n,a,i,n._dataResources?.[a]),n._dataResources??={},n._dataResources[a]=i}),o.variant!==void 0&&(n.variant=o.variant),o.slots){n.slots??={};let a=Object.keys(o.slots)[0];n.slots[OB]??=[],n.slots[OB]=[...o.slots[a]??[]]}}})}import{CANVAS_SLOT_SECTION_SLOT as phe,CANVAS_SLOT_SECTION_TYPE as mhe}from"@uniformdev/canvas";var RB=({preserveOwnSlotSections:t=!1,preserveChildrenSlotSections:e=!1}={})=>r=>{if(r.node.type!==mhe)return;let{partOfPattern:n,partOfNestedPattern:o}=Qy(r.node._id??"");!n&&!o&&t||n&&!o&&e||ghe(r)},ghe=({node:t,type:e,actions:r})=>{e!=="entry"&&(r.insertAfter(t.slots?.[phe]??[]),r.remove())};import{walkNodeTree as yhe}from"@uniformdev/canvas";import{produce as xhe}from"immer";import{v4 as Che}from"uuid";import{CANVAS_SLOT_SECTION_SLOT as FB,walkNodeTree as hhe}from"@uniformdev/canvas";import{produce as vhe}from"immer";import{v4 as bhe}from"uuid";function e2(t,e,r,n=bhe()){if(!t._pattern)throw new Error("Not a pattern");let o={};return hhe(t,({node:a,ancestorsAndSelf:i,actions:l})=>{let s=a._id,u=e[s];if(i.length===1)a._id=n;else{let d=i[0];d.type!=="slot"||d.parentSlot!==FB?(a._id=LB(s),a._id=Jy(n,a._id)):(l.replace({...o[s],_id:o[s]._id}),l.stopProcessingDescendants())}if(u){let d=vhe(u,f=>{f.slots&&Object.entries(f.slots).forEach(([p,m])=>{if(p!==FB)throw new Error("Only slot section items are supported for duplication");m.forEach((h,g)=>{if(!h._id)return;let v=t2(h,e,r);o[h._id]=v,m[g]=v})})});r?.(a._id,d,s)}}),n}function t2(t,e,r){return xhe(t,n=>{yhe(n,({type:o,node:a,actions:{stopProcessingDescendants:i}})=>{o==="component"&&a._pattern?(e2(a,e,r),i()):a._id=Che()})})}import{produce as whe}from"immer";import{v4 as She}from"uuid";function BB(t,e=She()){return whe(t,r=>(r._pattern?e2(r,r._overrides??{},(n,o,a)=>{delete r._overrides[a],r._overrides[n]=o},e):r._id=e,r))}import{bindExpressionPrefix as VB}from"@uniformdev/canvas";var Ehe=new Set(["t","a","p","c"]),$he=new Set(["w","e","i"]);function jB(t){if(!t.startsWith(VB))return;let[r,n,...o]=t.substring(VB.length).split(":");if(r==="jptr"){if(!n)throw new Error(`Missing JSON pointer in dynamic token binding '${t}'`);let a="t",i="w",l;for(let s of o){let[u,c]=s.split("=");if(u==="fa"){if(!Ehe.has(c))throw new Error(`Invalid failure action '${c}' in dynamic token binding '${t}'`);a=c}else if(u==="fl"){if(!$he.has(c))throw new Error(`Invalid failure log level '${c}' in dynamic token binding '${t}'`);i=c}else if(u==="fd")l=Ihe(c);else throw new Error(`Unsupported property '${s}' in dynamic token binding '${t}'`)}return{pointer:zB(The(n)),syntax:r,failureAction:a,failureLogLevel:i,failureDefault:a==="t"?l:void 0}}throw new Error(`Unsupported dynamic token binding syntax '${r}'`)}function The(t){return t.replace(/\$\[([^}]+)\]/g,"${$1}")}function zB(t){let e=t.split("\\");return e.map((r,n)=>{if(r==="")return n>0&&e[n-1]===""?"":"\\";let o=r[0],a=r.substring(1);return o===";"&&(o=":"),a?o+a:o}).join("")}function Ihe(t){return zB(t.replace("\\+","="))}function HB(t){if(!t?.pointer)return;let e=t.pointer.indexOf("/",1);return e<0?{dataResource:t.pointer.substring(1)}:{dataResource:t.pointer.substring(1,e),dataExpression:t.pointer.substring(e)}}function r2({locale:t,conditionIndex:e,property:r}){if(t===void 0)if(e<0){if(delete r.value,!r.conditions?.length)return!1}else r.conditions?.splice(e,1);else e<0?delete r.locales?.[t]:r.localesConditions?.[t]?.splice(e,1);if(r.localesConditions){for(let[n,o]of Object.entries(r.localesConditions))if(o.length===0){delete r.localesConditions[n];break}Object.keys(r.localesConditions).length===0&&delete r.localesConditions}return r.locales&&Object.keys(r.locales).length===0&&delete r.locales,r.conditions&&r.conditions.length===0&&delete r.conditions,!!(r.value!==void 0||r.locales||r.conditions||r.localesConditions)}function mS({locale:t,conditionIndex:e,conditionDefinition:r,property:n,newPropertyValue:o}){t===void 0?e<0?n.value=o:(n.conditions??=[],WB(n.conditions,e,r,o)):e<0?(n.locales??={},n.locales[t]=o):(n.localesConditions??={},n.localesConditions[t]??=[],WB(n.localesConditions[t],e,r,o))}function WB(t,e,r,n){if(e<0)throw new Error("Condition index must be greater than or equal to 0");let o=t[e];t[e]={when:r??o?.when??{clauses:[]},value:n===void 0?null:n,id:o?.id??Dhe(t)}}function Dhe(t){let e=new Set(t.map(n=>n.id)),r=0;for(;e.has(r);)r++;return r}function GB(t){let e=!1,r={};return"_pattern"in t&&t._patternDataResources&&Object.entries(t._patternDataResources).forEach(([n,o])=>{e=!0,r[n]={...o,source:"patternDataResource"}}),t._dataResources&&Object.entries(t._dataResources).forEach(([n,o])=>{r[n]?r[n].isPatternParameter&&(e=!0,r[n]={...o,source:"dataResource"}):(e=!0,r[n]={...o,source:"dataResource"})}),e?r:void 0}import{CANVAS_DRAFT_STATE as Ahe,convertEntryToPutEntry as ZJe,getPropertiesValue as XJe}from"@uniformdev/canvas";function UB(t){let{fields:e,entryName:r,type:n="contentType",thumbnailField:o,...a}=t;return{...a,titleParameter:r,thumbnailParameter:o,parameters:e,canBeComposition:n==="block",permissions:t.permissions,useTeamPermissions:t.useTeamPermissions??!0,workflowId:t.workflowId}}function ZB(t){return{id:t.id,name:t.name,entryName:t.titleParameter,thumbnailField:t.thumbnailParameter,fields:t.parameters,icon:t.icon,description:t.description,slugSettings:t.slugSettings,type:t.canBeComposition?"block":"contentType",created:t.created,updated:t.updated,permissions:t.permissions,useTeamPermissions:t.useTeamPermissions,workflowId:t.workflowId||void 0}}function eh(t){let{entry:{fields:e,...r},...n}=t;return{created:"",modified:"",composition:{_id:"",...r,_name:t.entry._name??"Untitled",parameters:e,_overridability:t.entry._overridability,_overrides:t.entry._overrides,_pattern:t.entry._pattern,_patternError:t.entry._patternError},pattern:!!t.pattern,previewImageUrl:t.entry._thumbnail,...n}}function YB(t,e,r,n,o,a,i){let l=i??e.projectId;if(!l)throw new Error("projectId is required in currentEntry or explicitly");return{created:e.created??"",modified:e.modified??"",projectId:l,state:n??e.state??Ahe,releaseId:o??e.releaseId,workflowId:r?.workflowId??e.workflowId,workflowStageId:r?.workflowStageId??e.workflowStageId,editionId:a,editionName:r?.editionName??e.editionName,editionPriority:r?.editionPriority??e.editionPriority,pattern:e.pattern,entry:{type:t.type,_id:t._id,_name:t._name,_slug:t._slug??"",fields:t.parameters,_thumbnail:r?.previewImageUrl??void 0,_dataResources:t._dataResources,_pattern:t._pattern,_patternError:t._patternError,_overridability:t._overridability,_overrides:t._overrides,_locales:t._locales,_author:t._author,_authorSubject:t._authorSubject,_creator:t._creator,_creatorSubject:t._creatorSubject,_patternDataResources:t._patternDataResources}}}function gS(t,e){let{parameters:r,...n}=t;return{...n,_id:e??n._id??"unknown",fields:r}}function hS(t){let{fields:e,...r}=t;return{...r,parameters:e}}function vS(t){let e=jB(t);if(e)switch(e.syntax){case"jptr":return HB(e);default:throw new Error(`Unsupported dynamic token binding syntax '${e.syntax}'`)}}import{CANVAS_VIZ_LOCALE_RULE as Lhe}from"@uniformdev/canvas";import{produce as _he}from"immer";function KB(t,e,r){let n=_he(t.criteria,o=>XB(o,e,r));return n&&{...t,criteria:n}}function XB(t,e,r){if(!t)return t;let n=!1;for(let o of t.clauses)if("clauses"in o){let a=XB(o,e,r);if(a===null){if(t.op!=="|")return null;t.clauses.splice(t.clauses.indexOf(o),1),n=!0}else a!==void 0&&(t.clauses[t.clauses.indexOf(o)]=a,n=!0)}else if(o.rule===Lhe){let a=Array.isArray(o.value)?o.value:[o.value],i=a.includes(e),l=a.includes(r);if(!i&&!l||i&&l)continue;if(a.length===1&&l&&!i)return null;i&&!l&&(o.value=a.concat(r),n=!0)}return n?t:void 0}var JB=B(cS(),1);function bS(t,e){try{return(0,JB.get)(t,e)}catch{return}}function yS(t,e,r=0){let n=t.slice(r*4,r*4+4);if(!n)throw new Error("Failed to generate a default variation name");return`${e.startsWith("$")?e.slice(1):e}-${n}`}import{CANVAS_VIZ_LOCALE_RULE as Mhe}from"@uniformdev/canvas";import{produce as Nhe}from"immer";function qB(t,e){let r=Nhe(t.criteria,n=>QB(n,e));return r&&{...t,criteria:r}}function QB(t,e){if(!t)return t;for(let r=t.clauses.length-1;r>=0;r--){let n=t.clauses[r];if("clauses"in n){let o=QB(n,e);if(o)t.clauses[r]=o;else if(t.clauses.splice(r,1),o===null&&t.op!=="|")return null}else if(n.rule===Mhe){let o=Array.isArray(n.value)?n.value:[n.value],a=o.indexOf(e);if(a!==-1)if(Array.isArray(n.value)&&n.value.length>1)o.splice(a,1);else if(n.op.startsWith("!"))t.clauses.splice(r,1);else return null}}if(t.clauses.length!==0)return t}function eV(t,e){let r=Nf();if(process.env.NODE_ENV==="development"&&!e){let n=new Error().stack?.split(`
|
|
5781
5789
|
`).slice(2).join(`
|
|
5782
5790
|
`).trimStart();r.on("*",(o,a)=>{console.debug(`\u26A1\uFE0F ${t}:${String(o)}`,{args:a,stack:n,subs:r.all.get(String(o))?.length??0})})}return r}var Yo=(0,cV.default)(),Fhe=!0,Bhe="Twee",ii=class t{#e={};rootNodeId;#n={};#o={};#r;#a={};#t=eV(Bhe,Fhe);#u;#c;#g;#d;#s;#i;constructor(e,r){let{metadata:n,startDirty:o}=r||{};this.#s=n??{},this.#i={_name:e?._name??"",_slug:e?._slug??null},this.#d=!o;let a=wr(e,i=>{this.#v({composition:i,ignoreRootOverrides:!0,preserveChildrenSlotSections:!0}),delete i._author,delete i._authorSubject,delete i._creator,delete i._creatorSubject});this.rootNodeId=a._id??pl(),this.#u=this.rootNodeId,this.#l({componentTree:a,nodeId:this.rootNodeId}),this.#r=a._overrides??{}}events=this.#t;exportTree(e){return this.exportSubtree(this.rootNodeId,e)}exportMetadata(){return this.#s}exportRootNodeMetadata(){return this.#i}get pristine(){return this.#d}set pristine(e){this.#d!==e&&(this.#d=e,this.#t.emit("pristineChanged",{pristine:e}))}get selectedBlockIdStack(){return this.#c}set selectedBlockIdStack(e){this.#c=e,this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.#c})}get selectedNodeId(){return this.#u}set selectedNodeId(e){this.#u!==e&&(this.#u=e,this.selectedParameterId=void 0,this.#t.emit("selectedNodeChanged",{selectedNodeId:e}))}get selectedParameterId(){return this.#g}set selectedParameterId(e){this.#g!==e&&(this.#g=e,this.#t.emit("selectedParameterChanged",{selectedParameterId:e}))}pushSelectedBlockId(e){this.selectedBlockIdStack=this.selectedBlockIdStack??[],this.selectedBlockIdStack?.push(e),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}popSelectedBlockId(){this.#c?.pop(),this.#t.emit("selectedBlockChanged",{selectedBlockIds:this.selectedBlockIdStack})}getNodeById(e){return this.#e[e]}getNodesIndex(){return this.#e}getBlockNodeValueById(e){return gS(this.exportSubtree(e),e)}getNodeChildren(e){let r=this.#n[e];if(r)return r}getNodeProperty(e,r){return bS(this.#o,[e,r])}getNodeProperties(e){return this.#o[e]??{}}insertNode({node:e,parentNodeId:r,parentSlot:n,targetIndexInSlot:o,overrideNodeId:a}){let i=a??pl();if(!this.#$(r))throw new Error("Cannot insert component into a read-only pattern slot unless it is within a slot section");let s={nodeId:i,parentId:r,value:t.#E(e),isExpandedInUI:!0,propertyValueLocalizability:{}};return this.#w({node:s,parentNodeId:r,parentSlot:n,targetIndexInSlot:o}),this.#m({nodeId:i,destinationParentId:r,destinationSlotName:n}),this.pristine=!1,this.#t.emit("nodeChanged",{changedNode:s,oldValue:void 0,type:"new"}),this.#t.emit("childrenChanged",{parentId:r,slotOrBlockName:n,newChildIds:this.#n[r][n],type:"slot"}),i}upsertBlockNode({nodeId:e,property:r,index:n,entry:o}){let a=this.#S({nodeId:e,property:r,index:n,entry:o});return this.pristine=!1,this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:r,newChildIds:this.#o[e]?.[r]?.value,type:"block"}),a}updateRootMetadata(e){let r={...this.#s};this.#s={...this.#s,...e},this.pristine=!1,this.#t.emit("metadataChanged",{metadata:this.#s,oldValue:r})}updateRootNode({update:e,doNotSetDirty:r}){let n={...this.#i};this.#i={...this.#i,...e},r||(this.pristine=!1),this.#t.emit("rootNodeMetadataChanged",{metadata:this.#i,oldValue:n})}insertPattern({parentNodeId:e,parentSlot:r,pattern:n,targetIndexInSlot:o,patternInstanceId:a}){let i=a??pl();if(this.#e[i])throw new Error(`Node with ID '${i}' already exists. Pattern nodes must have unique IDs. Did you mean to move or duplicate this pattern instead?`);let l=this.#y(n,i,!1);return this.#f({nodeId:l,parentNodeId:e,parentSlot:r,targetIndexInSlot:o}),this.#m({nodeId:l,destinationParentId:e,destinationSlotName:r}),this.pristine=!1,this.visitNodeAndDescendants(l,s=>{this.#t.emit("nodeChanged",{changedNode:s,oldValue:void 0,type:"new"})}),this.#t.emit("childrenChanged",{parentId:e,slotOrBlockName:r,newChildIds:this.#n[e][r],type:"slot"}),l}unlinkPattern(e){let r=this.#e[e];if(!r)throw new Error(`Node ${e} does not exist`);if(!r.value._pattern)throw new Error(`Node ${e} is not a pattern`);let n=r.value._patternDataResources||r.value._dataResources,o=GB(r.value),a=l=>{l.partOfNestedPattern||(this.updateNode({nodeId:l.nodeId,updateComponent:s=>{delete s._pattern,delete s._patternError,delete s._overrides},updateMetadata:s=>{delete s.partOfPattern,delete s.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0}),this.#r[l.nodeId]&&(this.#r=wr(this.#r,s=>{delete s[l.nodeId]})))};this.visitNodeAndDescendants(e,a);let i=l=>{l.partOfNestedPattern&&this.updateNode({nodeId:l.nodeId,updateMetadata:s=>{s.partOfPattern=s.partOfNestedPattern,delete s.partOfNestedPattern},doNotSetDirty:!0,ignoreOverrides:!0})};this.visitNodeAndDescendants(e,i),n&&(this.updateNode({nodeId:this.rootNodeId,updateDataResources:l=>Object.entries(o??{}).filter(([s])=>!(s in(l??{}))).map(([s,u])=>{let{source:c,...d}=u;return{type:"set",name:s,value:d}})}),this.updateNode({nodeId:r.nodeId,updateComponent:l=>{delete l._patternDataResources},updateDataResources:"removeAll",doNotSetDirty:!0,ignoreOverrides:!0})),this.pristine=!1}convertToPattern({existingNodeId:e,pattern:r}){let n=this.#e[e],o=n?.parentId;if(!n)throw new Error(`Node ${e} does not exist`);let a=this.#y(r,e,!0);this.#e[a]=wr(this.#e[a],l=>{l.parentId=o}),this.pristine=!1;let i=this.#e[a];this.#t.emit("nodeChanged",{changedNode:i,oldValue:n,type:"new"}),Object.entries(this.#n[a]??{}).forEach(([l,s])=>{this.#t.emit("childrenChanged",{newChildIds:s,parentId:a,slotOrBlockName:l,type:"slot"})})}copyNodeToClipboard(e){let r=this.exportSubtree(e,{keepPatternData:!1}),n=this.exportSubtree(e,{keepPatternData:!0}),o=[];rs(n,({node:l})=>{l._id&&o.push(l._id)}),rs(r,({node:l})=>{l._id&&(l._overrides&&delete l._overrides,"_name"in l&&delete l._name,"_slug"in l&&delete l._slug)});let a=this.#h(),i=Object.entries(a??{}).reduce((l,[s,u])=>(o.some(c=>s.includes(c))&&(l[s]=u),l),{});return{format:"uniform/copied-component-subtree-1.0",componentData:r,overrides:Object.keys(i).length?i:void 0,pasteAs:this.getNodeById(e)?.isBlock?"block":void 0}}async pasteNodeFromClipboard({parentNodeId:e,parentSlot:r,targetIndexInParent:n,clipboard:o,resolvePattern:a}){let i=Yo(o),l=async u=>{u._pattern&&s.push((async()=>{let c=await a(u._pattern);if(!c){console.debug(`Pasted pattern ${u._pattern} not found, skipping`);return}let d=this.#x(c,u._id);Object.assign(u,d)})())},s=[];return rs(i.componentData,({node:u})=>{l(u)}),i.overrides&&Object.values(i.overrides).forEach(u=>{u.slots&&Object.values(u.slots).forEach(c=>{c.forEach(d=>{rs(d,({node:f})=>{l(f)})})})}),await Promise.all(s),this.#T(i.componentData,{parentId:e,parentName:r,parentType:o.pasteAs==="block"?"block":"slot",targetIndexInParent:n},i.overrides)}enableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:r=>{let n=r;n._locales??=[];let o=[...new Set([...n._locales,...Array.isArray(e)?e:[e]])];n._locales=o}})}disableLocale(e){this.updateNode({nodeId:this.rootNodeId,updateComponent:o=>{let a=o;a._locales=a._locales?.filter(i=>i!==e)}});let r=[],n=o=>{this.getNodeProperty(o.nodeId,th)?.value===e&&!o.partOfPattern&&r.push(o.nodeId);let i=this.getNodeProperties(o.nodeId);Object.entries(i).forEach(([s,u])=>{let c=u;s!==fl&&(o.partOfPattern?this.isPatternPropertyOverridden(o.nodeId,s,e)&&this.resetPatternPropertyOverride(o.nodeId,s,e):(c?.localesConditions?.[e]?.forEach((d,f)=>{this.updateNodeProperty({nodeId:o.nodeId,property:s,value:void 0,source:"other",locale:e,conditionIndex:f,conditionDefinition:null})}),c?.locales?.[e]!==void 0&&this.updateNodeProperty({nodeId:o.nodeId,property:s,value:void 0,source:"other",locale:e,conditionIndex:-1})))});let l=this.getNodeProperty(o.nodeId,fl);if(l?.value){let s=qB(l.value,e);if(s===null)r.push(o.nodeId);else if(s===void 0||!Vr(l.value,s)){let u=!o.partOfPattern,c=oc(o.value._overridability,fl)==="yes";(u||c)&&this.updateNodeProperty({nodeId:o.nodeId,property:fl,value:s?()=>s:void 0,source:"other",locale:void 0,conditionIndex:-1})}}};this.visitNodeAndDescendants(this.rootNodeId,n),r.forEach(o=>{this.deleteNode(o)})}copyValuesToLocalePlan({sourceLocale:e,destinationLocale:r,doNotCopyDescendants:n=!1,startingNodeId:o=this.rootNodeId,specificPropertyId:a}){let i=new Map,l=u=>{if(u.value.type===khe&&!u.partOfPattern){let d=this.getNodeChildren(u.nodeId)?.[xS]??[],f=d.map(h=>this.getNodeProperty(h,th)),p=f.findIndex(h=>h?.value===r);if(p>=0){let h=d[p];ml(i,h).actions.push({type:"deleteLocalizedNode"})}let m=f.findIndex(h=>h?.value===e);if(m>=0){let h=d[m];ml(i,h).actions.push({type:"duplicateLocalizedNode",targetIndexInSlot:p})}}if(i.get(u.nodeId)?.actions.some(d=>d.type==="deleteLocalizedNode"))return;let c=a?{[a]:this.getNodeProperty(u.nodeId,a)}:this.getNodeProperties(u.nodeId);Object.entries(c).forEach(([d,f])=>{if(f===void 0)return;let p=!u.partOfPattern,m=oc(u.value._overridability,d)==="yes";if(!(p||m))return;if(d===fl){let S=KB(f.value,e,r);S===null?ml(i,u.nodeId).actions.push({type:"deleteLocalizedNode"}):S&&ml(i,u.nodeId).actions.push({type:"updateVisibilityCriteria",targetValue:S})}let g=f.locales?.[e],v=f.locales?.[r];(!g||!v||!Vr(g,v))&&(g!==void 0?ml(i,u.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:g,targetValue:v,conditionIndex:-1}):v!==void 0&&ml(i,u.nodeId).actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:g,targetValue:v,conditionIndex:-1}));let y=f.localesConditions?.[e],x=f.localesConditions?.[r];y?.forEach((S,E)=>{let $=f.localesConditions?.[r]?.[E];(!S||!$||!Vr(S,$))&&ml(i,u.nodeId).actions.push({type:"copyPropertyValue",propertyId:d,sourceValue:S.value,targetValue:$,conditionIndex:E,conditionDefinition:S.when})});let C=y?.length??0,w=x?.length??0;if(C<w){let S=ml(i,u.nodeId);for(let E=C;E<w;E++)S.actions.push({type:"deletePropertyValue",propertyId:d,sourceValue:y?.[E],targetValue:x?.[E],conditionIndex:E})}})},s=this.#e[o];if(!s)throw new Error(`Node ${o} does not exist`);return l(s),!a&&!n&&this.visitDescendants(s.nodeId,l),{nodePlans:Array.from(i.values()),sourceLocale:e,destinationLocale:r}}async copyValuesToLocaleExecute({resolvePattern:e,plan:{sourceLocale:r,destinationLocale:n,nodePlans:o}}){let a=`copyLocaleExecute: ${n}`;console.time(a);for(let{nodeId:i,actions:l}of o)for(let s of l)switch(s.type){case"copyPropertyValue":{let u=this.getNodeProperty(i,s.propertyId)?.type,c=s.sourceValue;u==="contentReference"&&(c=this.prepareContentReferenceWrite({nodeId:i,propertyId:s.propertyId,destinationLocale:n,conditionIndex:s.conditionIndex,sourceValue:s.sourceValue})),this.updateNodeProperty({nodeId:i,property:s.propertyId,source:"other",locale:n,value:()=>c,type:u,conditionIndex:s.conditionIndex,conditionDefinition:s.conditionDefinition});break}case"deletePropertyValue":{this.updateNodeProperty({nodeId:i,property:s.propertyId,source:"other",locale:n,value:void 0,conditionIndex:s.conditionIndex,conditionDefinition:null});break}case"deleteLocalizedNode":{this.deleteNode(i);break}case"duplicateLocalizedNode":{let u=await this.duplicateNode(i,e);this.updateNodeProperty({nodeId:u,locale:void 0,conditionIndex:-1,type:"localeSelect",property:th,source:"other",value:()=>n});let c=this.copyValuesToLocalePlan({sourceLocale:r,destinationLocale:n,startingNodeId:u});this.copyValuesToLocaleExecute({plan:c,resolvePattern:e}),s.targetIndexInSlot!==void 0&&this.moveNode({movedNodeId:u,parentNodeId:this.#e[i].parentId,parentSlot:xS,targetIndexInSlot:s.targetIndexInSlot});break}case"updateVisibilityCriteria":{this.updateNodeProperty({nodeId:i,property:fl,source:"other",locale:void 0,conditionIndex:-1,value:()=>s.targetValue});break}default:throw new Error(`Unhandled action type ${s.type}`)}console.timeEnd(a)}updateNode({nodeId:e,updateComponent:r,updateDataResources:n,updateMetadata:o,doNotSetDirty:a,ignoreOverrides:i}){let l=this.#e[e];if(!l)throw new Error(`Update target node ID ${e} did not exist!`);let s=wr(l,f=>{if(o&&(o(f),f.nodeId=e,f.value=l.value,f.parentId=l.parentId),r){if(r(f.value),"slots"in f.value)throw new Error("Do not set `slots` on a Twee node, insert child nodes instead.");if("parameters"in f.value)throw new Error("Do not set `parameters` on a Twee node, use updateProperties option instead.")}if(n){let p=typeof n=="function"?n(f.value._dataResources):n;if(p==="removeAll")delete f.value._dataResources;else for(let m of p){let h=i?!1:f.nodeId!==this.rootNodeId&&f.value._pattern;switch(m.type){case"set":h&&(this.#r=wr(this.#r,g=>{g[e]??={},g[e].dataResources??={},g[e].dataResources[m.name]=m.value})),f.value._dataResources??={},f.value._dataResources[m.name]=m.value;break;case"remove":h&&(this.#r=wr(this.#r,g=>{delete g[e]?.dataResources?.[m.name]})),delete f.value._dataResources?.[m.name];break;case"reset":{let g=this.#a[e]?.dataResources?.[m.name];f.value._dataResources&&(g&&Object.keys(g).length>0?f.value._dataResources[m.name]=g:delete f.value._dataResources[m.name]),this.#r=wr(this.#r,v=>{delete v[e]?.dataResources?.[m.name]})}break;default:throw new Error(`Unhandled data resource action ${m?.type}`)}}}}),u=!!(l.partOfPattern&&!l.value._patternError),c=l.value.variant!==s.value.variant,d=l.value._overridability?.variants??!1;!i&&u&&c&&d&&(this.#r=wr(this.#r,f=>{f[e]??={},f[e].variant=s.value.variant})),this.#e[e]=s,a||(this.pristine=!1),this.#t.emit("nodeChanged",{changedNode:s,type:"update",oldValue:l})}updateNodeProperty({nodeId:e,property:r,value:n,source:o,locale:a,type:i,doNotSetDirty:l=!1,ignoreOverrides:s=!1,conditionIndex:u,conditionDefinition:c}){let d=this.#e[e];if(!d)throw new Error(`Update target node ID ${e} did not exist!`);if(u<0&&c)throw new Error("Condition definition provided for non-conditional value");let f=!!(d.partOfPattern&&!d.value._patternError),p=[e,r],m=bS(this.#o,p);if(!m&&n==null)return;let h=sV({locale:a,property:m,conditionIndex:u}),g=a?m?.localesConditions?.[a]?.[u]:m?.conditions?.[u],v=typeof n=="function"?wr(h,S=>n(S)):n,y=i??m?.type;if(!y)throw new Error(`Cannot add parameter ${r} to node ${e} without specifying a type`);let x={...m,type:y},C=!1;x=wr(x,S=>{v===void 0&&u<0?C=!r2({locale:a,property:S,conditionIndex:u}):c===null&&u>=0?C=!r2({locale:a,property:S,conditionIndex:u}):mS({locale:a,property:S,newPropertyValue:v,conditionIndex:u,conditionDefinition:c??g?.when??{clauses:[]}})}),C&&(x=void 0);let w=f&&oc(d.value._overridability,r)==="yes";if(f&&!w&&!s)throw new Error(`Cannot override parameter ${r} on node ${e} because it is not marked as overridable on the pattern (${d.partOfPattern})`);if(w&&(this.#a[e]?.parameters?.[r]||(this.#a=wr(this.#a,E=>{E[e]??={parameters:{},dataResources:{}},E[e].parameters[r]=m??{type:y,value:null}}))),!s&&w){let S=this.#r[e]?.parameters?.[r];this.#r=wr(this.#r,E=>{let T=v==null||x===void 0?null:v,D=S??{type:x?.type??m?.type??"unknown",value:m?.value,conditions:m?.conditions,locales:a&&m?.locales?.[a]?{[a]:m.locales[a]}:void 0,localesConditions:a&&m?.localesConditions?.[a]?{[a]:m.localesConditions[a]}:void 0},L=wr(D,k=>{c===null&&u>=0?r2({locale:a,property:k,conditionIndex:u}):mS({locale:a,property:k,newPropertyValue:T,conditionIndex:u,conditionDefinition:c??g?.when??{clauses:[]}})});(0,ac.set)(E,`/${e}/parameters/${r}`,L)}),S||this.#t.emit("propertyOverrideCreated",{nodeId:e,property:r})}v===null?(0,ac.remove)(this.#o,p):(this.#o[e]??={},(0,ac.set)(this.#o,p,x)),l||(this.pristine=!1),this.#t.emit("nodeParameterChanged",{nodeId:e,parameter:r,locale:a,conditionIndex:u,value:x,previousValue:m,type:n?m?"update":"new":"delete",conditionDefinition:c,source:o})}isPatternPropertyOverridden(e,r,n,o){let a=this.getNodeById(e);if(!a||oc(a.value._overridability,r)==="no")return!1;let i=this.#r[e]?.parameters?.[r];return i?n?(o===void 0||o===!0)&&i.localesConditions?.[n]!==void 0||(o===void 0||o===!1)&&i.locales?.[n]!==void 0:(o===void 0||o===!0)&&i.conditions!==void 0||(o===void 0||o===!1)&&i.value!==void 0:!1}getPatternPropertyOverrideDefaultValue(e,r,n){let o=this.#a[e]?.parameters?.[r];if(!o)return{exists:!1};if(n&&o.locales?.[n])return{exists:!0,value:o,sourceLocale:n};if(o.value!==void 0)return{exists:!0,value:o,sourceLocale:void 0};let a=Object.keys(o.locales??{})[0];return a?{exists:!0,value:o,sourceLocale:a}:{exists:!1}}resetPatternPropertyOverride(e,r,n){let o=[-1];this.#r=wr(this.#r,i=>{let l=i[e]?.parameters?.[r];if(l)if(n){delete l.locales?.[n];let s=l.localesConditions?.[n];s&&(s.forEach((u,c)=>{o.push(c)}),delete l.localesConditions?.[n]),l.locales&&Object.keys(l.locales).length===0&&delete l.locales,l.localesConditions&&Object.keys(l.localesConditions).length===0&&delete l.localesConditions,Object.keys(l.locales??{}).length===0&&Object.keys(l.localesConditions??{}).length===0&&delete i[e]?.parameters?.[r]}else{let s=l.conditions;s&&s.forEach((u,c)=>{o.push(c)}),delete i[e].parameters?.[r]}});let a=this.getPatternPropertyOverrideDefaultValue(e,r,n);!a.exists||a.value===null?this.updateNodeProperty({nodeId:e,property:r,value:void 0,source:"reset",locale:n,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:-1}):o.forEach(i=>{let l=sV({locale:a.sourceLocale,property:a.value,conditionIndex:i,strict:!0});this.updateNodeProperty({nodeId:e,property:r,value:l===void 0?void 0:()=>l,source:"reset",locale:n,type:a.value?.type,ignoreOverrides:!0,doNotSetDirty:!1,conditionIndex:i,conditionDefinition:(n?a.value?.localesConditions?.[n]?.[i]?.when:a.value?.conditions?.[i]?.when)??null})}),this.#t.emit("propertyOverrideReset",{nodeId:e,property:r,usedPatternDefault:a!==void 0})}async duplicateNode(e,r){let n=this.getParentInfo(e);if(!n)throw new Error("Cannot duplicate root node or parentless block");let o=this.copyNodeToClipboard(e);return await this.pasteNodeFromClipboard({parentNodeId:n.parentId,parentSlot:n.parentName,resolvePattern:r,targetIndexInParent:n.targetIndexInParent+1,clipboard:o})}moveNode({movedNodeId:e,parentNodeId:r,parentSlot:n,targetIndexInSlot:o}){if(!this.#e[e])throw new Error(`Cannot move node ${e} - it does not exist`);let i=this.getParentInfo(e);if(!i)throw new Error("Cannot move root node");this.#n[i.parentId][i.parentName].splice(i.targetIndexInParent,1),this.#b(i.parentId,e),this.#f({nodeId:e,parentNodeId:r,parentSlot:n,targetIndexInSlot:o}),this.#m({nodeId:e,destinationParentId:r,destinationSlotName:n,sourceSlotName:i.parentName}),this.pristine=!1,this.#t.emit("childrenChanged",{parentId:r,slotOrBlockName:n,newChildIds:this.#n[r][n],type:"slot"}),this.#t.emit("childrenChanged",{parentId:i.parentId,slotOrBlockName:i.parentName,newChildIds:this.#n[i.parentId][i.parentName],type:"slot"})}deleteNode(e,r){let n=this.getParentInfo(e);if(!n&&!r)throw new Error("Cannot delete root node");n&&!r&&(this.#n[n.parentId][n.parentName].splice(n.targetIndexInParent,1),this.#n[n.parentId][n.parentName].length===0&&delete this.#n[n.parentId][n.parentName],this.selectedNodeId===e&&(this.selectedNodeId=n.parentId),this.#b(n.parentId,e),this.#t.emit("childrenChanged",{parentId:n.parentId,slotOrBlockName:n.parentName,newChildIds:this.#n[n.parentId][n.parentName]??[],type:"slot"})),delete this.#e[e],this.#t.emit("nodeDeleted",{deletedNodeId:e}),this.pristine=!1}#b(e,r){this.#r=wr(this.#r,n=>{let o=n[e]?.slots;o&&Object.keys(o).forEach(a=>{o[a]=o[a].filter(({_id:i})=>i!==r),o[a].length===0&&delete o[a]})})}#h(){if(Object.keys(this.#r).length>0){let e=Yo(this.#r);return Object.entries(e).forEach(([n,o])=>{let a=!0;if(!this.#e[n]){delete e[n];return}if(o.parameters){let i=Object.entries(o.parameters);i.forEach(([l,s])=>{let u=uV(s);u?(o.parameters[l]=u,a=!1):delete o.parameters[l]}),i.length===0&&delete o.parameters}o.slots&&Object.entries(o.slots).forEach(([l,s])=>{if(s.length){let u=s.filter(c=>c._id).map(c=>this.exportSubtree(c._id));u?(o.slots[l]=u,a=!1):delete o.slots[l]}else delete o.slots[l]}),o.variant!==void 0&&(a=!1),o.dataResources&&Object.keys(o.dataResources).length>0&&(a=!1),a&&delete e[n]}),Object.keys(e).length===0&&(e=void 0),e}}exportSubtree(e,r){let{keepPatternData:n=!1}=r??{},o=this.#e[e];if(!o)throw new Error(`Node ${e} to export is not found`);let a=Yo(o);if(e===this.rootNodeId){let s=this.#h();s?a.value._overrides=s:delete a.value._overrides;let u=a.value;u._name=this.#i._name,this.#i._slug&&(u._slug=this.#i._slug)}let i=[a],l=new Set;for(;i.length>0;){let s=i.pop();if(l.has(s.nodeId))throw new Error("Circular reference detected in the composition tree with node ID "+s.nodeId);if(l.add(s.nodeId),s.value._id=s.nodeId,!n&&(delete s.value._patternDataResources,delete s.value._patternOverrides,s.value._pattern&&s.value._dataResources)){let d=!1;Object.keys(s.value._dataResources).forEach(f=>{a.value._overrides?.[s.nodeId]?.dataResources?.[f]?delete s.value._dataResources[f]:d=!0}),d||delete s.value._dataResources}let u=this.#o[s.nodeId];if(u&&(n||!s.partOfPattern)){let d={},f=!1;Object.entries(u).forEach(([p,m])=>{if(m?.type===ba&&Array.isArray(m.value)){let h=m.value,g=[];h.forEach(v=>{let y=this.exportSubtree(v,r);g.push(gS(y,v))}),d[p]={value:g,type:ba},f=!0}else{let h=uV(m);h&&(d[p]=h,f=!0)}}),f&&(s.value.parameters=d)}let c=this.#n[s.nodeId];!c||s.partOfPattern&&!n||Object.entries(c).forEach(([d,f])=>{f.forEach((p,m)=>{let h=this.#e[p];if(!h)throw new Error("Insanity detected.");let g=Yo(h),v=s.value;v.slots=v.slots||{},(0,ac.set)(s,["value","slots",d,m.toString(10)],g.value),i.push(g)})})}return this.#A(a.value),a.value}#w({parentNodeId:e,parentSlot:r,targetIndexInSlot:n,node:o}){if(!this.#e[e])throw new Error("Parent ID to insert under did not exist!");if(this.#e[o.nodeId])throw new Error(`Node with ID '${o.nodeId}' already exists. Nodes must have unique IDs. Did you mean to move or duplicate this node instead?`);this.#e[o.nodeId]=o,this.#f({nodeId:o.nodeId,parentNodeId:e,parentSlot:r,targetIndexInSlot:n})}#f({nodeId:e,parentNodeId:r,parentSlot:n,targetIndexInSlot:o}){let a=this.#e[r],i=this.#n[r]??={},l=i[n]??=[];typeof o<"u"?l.splice(o,0,e):l.push(e),a?.value.type===n2&&(this.#r=wr(this.#r,s=>{s[r]=s[r]??{},s[r].slots={[Phe]:l.map(u=>({_id:u,type:this.#e[u].value.type}))}})),this.#e[e]=wr(this.#e[e],s=>{s.parentId=r})}#S({nodeId:e,property:r,index:n,entry:o}){let a=this.getNodeById(e);if(!a)throw new Error("Node doesn't exist");let l={nodeId:o._id??pl(),value:{type:o.type,_dataResources:o._dataResources},isBlock:!0,parentId:e,propertyValueLocalizability:{}},s=this.getNodeProperty(a.nodeId,r);if(s&&s.type!==ba)throw new Error("Parameter already exists and isn't a block parameter");let u=this.#e[l.nodeId];this.#e[l.nodeId]=l;let c=Yo(this.getNodeProperty(a.nodeId,r)?.value?.filter(d=>this.getNodeById(d))??[]);if(typeof n<"u"){if(n<0)throw new Error("parameter index cannot be less than 0");let d=-1;if(c.forEach((f,p)=>{f===l.nodeId&&(d=p)}),n>c.length+(d===-1?1:0))throw new Error(`Parameter index ${n} outside current index bounds.`);d>-1&&d!==n&&(c=c.filter(f=>f!==l.nodeId),c.splice(n,0,l.nodeId))}else c.push(l.nodeId);return Object.entries(o?.fields??{}).forEach(([d,f])=>{if(f.type===ba&&Array.isArray(f.value)){let p=f.value,m=[];p.forEach(h=>{let g=h._id??pl();this.#l({nodeId:g,componentTree:hS(h)}),this.#e[g].isBlock=!0,this.#e[g].parentId=l.nodeId,m.push(g)}),this.updateNodeProperty({nodeId:l.nodeId,property:d,type:f.type,value:()=>m,source:"other",locale:void 0,conditionIndex:-1})}else this.updateNodeProperty({nodeId:l.nodeId,property:d,type:f.type,value:()=>f.value,source:"other",locale:void 0,conditionIndex:-1})}),this.updateNodeProperty({nodeId:a.nodeId,property:r,type:ba,value:()=>c,source:"other",locale:void 0,conditionIndex:-1}),this.#t.emit("nodeChanged",{changedNode:a,oldValue:void 0,type:u?"update":"new"}),this.#t.emit("nodeParameterChanged",{nodeId:a.nodeId,parameter:r,previousValue:s,source:"other",type:u?"update":"new",locale:void 0,conditionIndex:-1,conditionDefinition:void 0,value:{type:ba,value:c}}),{blockIds:c}}#l({componentTree:e,nodeId:r,partOfPattern:n,partOfNestedPattern:o,resetUids:a,isBlock:i,allowReplacement:l}){let{slots:s,parameters:u,_id:c,_overrides:d,...f}=e,p=n??f._pattern,m=f._pattern&&f._pattern!==p?f._pattern:o,h=r??(a?void 0:c)??pl();if(this.#e[h]&&!l)throw new Error(`Node with ID '${h}' already exists. Nodes must have unique IDs.`);let g={nodeId:h,value:f,partOfPattern:p,partOfNestedPattern:m,isBlock:i,propertyValueLocalizability:Object.entries(u??{}).reduce((v,[y,x])=>(v[y]=Gh({definition:void 0,currentValue:x,lastUserChoice:void 0}),v),{})};return p&&(g.partOfPattern=p),this.#e[g.nodeId]=g,u&&Object.entries(u).forEach(([v,y])=>{let{connectedData:x,...C}=y,w=x?iV(aV(x)):y.value;if(y?.type===ba&&Array.isArray(w)){let S=w,E=[];S?.forEach($=>{let T={...$,_id:a?pl():$._id??pl()};if(this.#e[T._id])throw new Error(`Block node with ID '${T._id}' already exists. Block nodes must have unique IDs.`);return E.push(T._id),this.#e[T._id]={nodeId:T._id,value:{type:ba},propertyValueLocalizability:{}},this.#l({componentTree:hS(T),nodeId:T._id,allowReplacement:!0,partOfPattern:p,partOfNestedPattern:m}),this.#e[T._id].isBlock=!0,this.#e[T._id].parentId=g.nodeId,this.#e[T._id]}),w=E}this.#o[g.nodeId]=this.#o[g.nodeId]??{},(0,ac.set)(this.#o,[g.nodeId,v],{...C,value:w})}),s&&Object.entries(s).forEach(([v,y])=>{let x=y.map(C=>{if(this.#e[C._id??""]?.isBlock)return;let w=this.#l({componentTree:C,partOfPattern:f.type===n2?void 0:p,partOfNestedPattern:f.type===n2?void 0:m,resetUids:a});return this.#e[w].parentId=g.nodeId,w});this.#n[g.nodeId]=this.#n[g.nodeId]??{},this.#n[g.nodeId][v]=x.filter(C=>C)}),g.nodeId}#y(e,r,n){let o=this.#x(e,r);return this.#l({componentTree:o,nodeId:r,allowReplacement:n})}#x(e,r){let n=Yo(e);return this.#v({composition:n}),qy(n,r),n._pattern=e._id,delete n._id,delete n._name,delete n._slug,delete n._overrides,delete n._locales,delete n._author,delete n._authorSubject,delete n._creator,delete n._creatorSubject,n._dataResources&&(n._patternDataResources=Yo(n._dataResources),delete n._dataResources),n}getParentInfo(e){let{parentId:r,isBlock:n}=this.#e[e]??{};if(!r)return;let o=this.#e[r];if(o)if(n)for(let[a,i]of Object.entries(this.#o[r]??{})){if(i?.type!==ba)continue;let l=Array.isArray(i.value)?i.value:[],s=l.indexOf(e);if(s>=0)return{value:o.value,parentId:r,parentName:a,targetIndexInParent:s,parentChildIds:l,parentType:"block"}}else{let a=this.#n[r];if(!a&&!n)throw new Error("Sanity failed; parent had no children!");for(let[i,l]of Object.entries(a??{})){let s=l.indexOf(e);if(s>=0)return{value:o.value,parentId:r,parentName:i,targetIndexInParent:s,parentChildIds:l,parentType:"slot"}}return}}static#E(e){return wr(e,n=>{delete n.slots,delete n.parameters})}#$(e){let r=e;for(;r;){let n=this.getNodeById(r);if(!n)break;if(n.value._pattern)return!1;if(n.value.type===n2||!n.partOfPattern)return!0;r=n.parentId}return!0}#T(e,r,n){let a={...this.#h(),...n},i;if(this.#r=wr(this.#r,s=>{this.#a=wr(this.#a,u=>{i=t2(e,a,(c,d,f)=>{s[c]=d,u[c]=this.#a[f]})})}),!i)throw new Error("Failed to duplicate component");i=wr(i,s=>{s._overrides=Yo(this.#r),this.#v({composition:s,preserveChildrenSlotSections:!0})});let l=this.#l({componentTree:i,isBlock:r.parentType==="block"});if(r.parentType==="block"){let s=this.getNodeProperty(r.parentId,r.parentName)?.value??[],u=[...s.slice(0,r.targetIndexInParent),l,...s.slice(r.targetIndexInParent)];this.updateNodeProperty({nodeId:r.parentId,property:r.parentName,type:ba,value:()=>u,locale:void 0,conditionIndex:-1,source:"other"}),this.#e[l].parentId=r.parentId,this.#t.emit("nodeChanged",{changedNode:this.getNodeById(l),type:"new",oldValue:void 0}),this.#t.emit("childrenChanged",{parentId:r.parentId,slotOrBlockName:r.parentName,newChildIds:u,type:"block"})}else{this.#f({nodeId:l,parentNodeId:r.parentId,parentSlot:r.parentName,targetIndexInSlot:r.targetIndexInParent}),this.#m({nodeId:l,destinationParentId:r.parentId,destinationSlotName:r.parentName}),this.#t.emit("childrenChanged",{parentId:r.parentId,slotOrBlockName:r.parentName,newChildIds:this.#n[r.parentId][r.parentName],type:"slot"});let s=u=>{this.#t.emit("nodeChanged",{changedNode:u,type:"new",oldValue:void 0})};this.visitNodeAndDescendants(l,s)}return this.pristine=!1,l}#v({composition:e,ignoreRootOverrides:r,preserveChildrenSlotSections:n}){this.#a=wr(this.#a,a=>{let i=pS({beforeApplyParameterOverride(u,c,d){a[u._id]??={parameters:{},dataResources:{}},a[u._id].parameters[c]=Yo(d)},beforeApplyDataResourceOverride(u,c,d){u._dataResources?.[c]?.ignorePatternParameterDefault||(a[u._id]??={parameters:{},dataResources:{}},a[u._id].dataResources[c]=Yo(d))}}),l=pS({beforeApplyParameterOverride(u,c,d,f){a[u._id]?.parameters[c]||(a[u._id]??={parameters:{},dataResources:{}},a[u._id].parameters[c]=Yo(f??null))},beforeApplyDataResourceOverride(u,c,d,f){u._dataResources?.[c]?.ignorePatternParameterDefault||a[u._id]?.dataResources[c]||(a[u._id]??={parameters:{},dataResources:{}},a[u._id].dataResources[c]=Yo(f))}});if(r){let{_overrides:u,...c}=e;rs(c,({node:d})=>{i.visitNode(d)})}let s=r?l:i;rs(e,({node:u})=>{s.visitNode(u)})});let o=RB({preserveOwnSlotSections:!0,preserveChildrenSlotSections:n});rs(e,a=>{o(a)})}visitNodeAndDescendants(e,r){let n=this.getNodeById(e);if(!n)throw new Error("Insanity detected.");r(n),this.visitDescendants(e,r)}visitDescendants(e,r){let n=this.#p(e,new Set);for(let o of n)r(...o)}async visitDescendantsAsync(e,r){let n=this.#p(e,new Set);for(let o of n)await r(...o)}*#p(e,r){let n=this.#e[e],o=this.#n[e]??{},a=Object.entries(this.#o[e]??{}).filter(([,i])=>i?.type===ba)??[];if(!n)throw new Error("Insanity detected.");r.add(e);for(let[i,l]of a){let s=l.value??[];for(let u=0;u<s.length;u++){let c=s[u],d=this.#e[c];if(d){if(r.has(c)){console.error(`Detected parent/child cycle in composition, ID ${c} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[d,n,i,u];for(let f of this.#p(c,r))yield f}}}for(let[i,l]of Object.entries(o))for(let s=0;s<l.length;s++){let u=l[s],c=this.#e[u];if(c){if(r.has(u)){console.error(`Detected parent/child cycle in composition, ID ${u} exists more than once. The traversal of descendants will be aborted for the cycle subtree.`);continue}yield[c,n,i,s];for(let d of this.#p(u,r))yield d}}}#m({nodeId:e,destinationParentId:r,destinationSlotName:n,sourceSlotName:o}){let a=n,i=o===rV,l=a===rV,s=o===nV,u=a===nV,c=a===xS,d=this.getNodeProperty(e,tV);l&&d&&this.updateNodeProperty({nodeId:e,property:tV,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let f=this.getNodeProperty(e,rh);!l&&f&&this.updateNodeProperty({nodeId:e,property:rh,value:void 0,source:"other",locale:void 0,conditionIndex:-1}),l&&!i&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(r)?.[n]??[],selectExistingName:h=>this.getNodeProperty(h,rh)?.value?.name,setName:h=>this.updateNodeProperty({nodeId:e,property:rh,value:g=>g&&typeof g=="object"&&g!==null?{...g,name:h}:{name:h,crit:[]},source:"other",locale:void 0,conditionIndex:-1,type:rh})}),u&&!s&&this.#C({nodeId:e,siblingIds:this.getNodeChildren(r)?.[n]??[],selectExistingName:h=>this.getNodeProperty(h,oV)?.value?.id,setName:h=>this.updateNodeProperty({nodeId:e,property:oV,value:g=>g&&typeof g=="object"&&g!==null?{...g,id:h}:{id:h},source:"other",locale:void 0,conditionIndex:-1,type:"testVariant"})});let p=this.getNodeProperty(e,th);!c&&p&&this.updateNodeProperty({nodeId:e,property:th,value:void 0,source:"other",locale:void 0,conditionIndex:-1});let m=this.getNodeProperty(e,fl);(l||c||u)&&m&&this.updateNodeProperty({nodeId:e,property:fl,value:void 0,source:"other",locale:void 0,conditionIndex:-1})}#C({nodeId:e,siblingIds:r,selectExistingName:n,setName:o}){let a=n(e),i=d=>r.some(f=>f===e?!1:n(f)===d),l=a&&i(a);if(a&&!l)return;let s=this.getNodeById(e)?.value.type;if(!s)throw new Error("Insanity detected.");let u=0,c=yS(e,s,u);do c=yS(e,s,u),u++;while(i(c));o(c)}prepareContentReferenceWrite({nodeId:e,propertyId:r,destinationLocale:n,conditionIndex:o,sourceValue:a}){let i=this.#I({value:a,dataResources:this.#e[e]?.value._dataResources});if(!i)return a;let{dataResource:l,isSingleEntryReference:s}=i,u=mc(e,r,n==="${locale}"?void 0:n,o);this.updateNode({nodeId:e,updateDataResources:[{name:u,type:"set",value:{...l,variables:{...l?.variables,locale:n}}}]});let c=`/${u}/entries${s?"/0":""}`;return iV(aV({syntax:"jptr",pointer:c}))}#I({value:e,dataResources:r}){if(typeof e!="string")return;let n;lV(e,(l,s)=>{s==="variable"&&(n=l)});let o=n?vS(n):void 0;if(!o)return;let a=o.dataResource,i=r?.[a];if(i)return{dataResource:i,dataResourceName:a,isSingleEntryReference:o.dataExpression?.endsWith("/0")}}#D(e){if(typeof e!="string")return;let r;return lV(e,(o,a)=>{a==="variable"&&(r=o)}),(r?vS(r):void 0)?.dataResource}#A(e){let r=new Set,n=[],o=({node:a})=>{let i=Ohe(a),l=a._dataResources;if(l)for(let[s,u]of Object.entries(l))u.type===ci&&n.push({dataResources:l,dataResourceKey:s});if(i)for(let s of Object.values(i))s.type==="contentReference"&&Rhe(s,({value:u})=>{let c=this.#D(u);c&&r.add(c)})};if(rs(e,o),"_overrides"in e&&e._overrides)for(let[,a]of Object.entries(e._overrides))rs({type:e.type,...a,_dataResources:a.dataResources},o);for(let{dataResources:a,dataResourceKey:i}of n)r.has(i)||delete a[i]}};function uV(t){return t?.value===void 0&&!t?.conditions&&!t?.locales&&!t?.localesConditions?null:t}function ml(t,e){return Vhe(t,e,()=>({nodeId:e,actions:[]}))}function Vhe(t,e,r){return t.has(e)||t.set(e,r()),t.get(e)}import{CANVAS_DRAFT_STATE as i2,CanvasClient as Whe}from"@uniformdev/canvas";import{ProjectMapClient as Ghe}from"@uniformdev/project-map";import{produce as Uhe}from"immer";function dV(t){return t.reduce((e,r)=>(e[r._id]={id:r._id,type:r.type,name:r._name},e),{})}import{CANVAS_DRAFT_STATE as fV,CanvasClient as CS,ContentClient as pV,ProjectClient as mV}from"@uniformdev/canvas";function gV(t){let e,r,n;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new mV(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(r!==void 0)return r;let a=await new CS(t).getComponentDefinitions({limit:1e3,includeSystem:!0});return r=Object.fromEntries(a.componentDefinitions.map(i=>[i.id,i])),r},fetchPatterns:async()=>{if(n!==void 0)return n;let a=await new CS(t).getCompositionList({limit:1e3,pattern:!0,patternType:"component",resolveData:!1,skipPatternResolution:!0,skipOverridesResolution:!0,state:fV});return n=dV(a.compositions.map(i=>i.composition)),n},resolvePatternData:async o=>(await new CS(t).getCompositionById({compositionId:o,state:fV,skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.composition,getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}function hV(t){let e,r;return{fetchProjectGuidance:async()=>(e!==void 0||(e=(await new mV(t).get({projectId:t.projectId}))?.guidance),e),fetchDefinitions:async()=>{if(r!==void 0)return r;let o=await new pV(t).getContentTypes({limit:1e3});return r=Object.fromEntries(o.contentTypes.map(a=>[a.id,UB(a)])),r},fetchPatterns:async()=>({}),resolvePatternData:async n=>{let a=(await new pV(t).getEntries({entryIDs:[n],skipPatternResolution:!1,skipOverridesResolution:!0,withComponentIDs:!0,skipDataResolution:!0,withWorkflowDefinition:!0,releaseId:void 0}))?.entries[0];return eh(a).composition},getToolClient:async()=>t.toolInvoker,getDimensionGuidance:async()=>{}}}import{parseHTML as jhe}from"linkedom/worker";function zhe(t){let e=Object.getPrototypeOf(t.body);for(;e&&!Object.getOwnPropertyDescriptor(e,"style");)e=Object.getPrototypeOf(e);let r=e?Object.getOwnPropertyDescriptor(e,"style"):void 0;if(!r?.get||e.__stylePatched)return;let n=r.get;Object.defineProperty(e,"style",{get(){let o=n.call(this);return new Proxy(o,{get(a,i){if(typeof i=="string"){let l=a[i];return typeof l=="function"?l.bind(a):l===void 0?"":l}return a[i]},set(a,i,l){return a[i]=l,!0}})},configurable:!0}),e.__stylePatched=!0}function o2(t){let e=`<!DOCTYPE html><html><body>${t}</body></html>`,{document:r}=jhe(e);return zhe(r),r}import{LocaleClient as Hhe}from"@uniformdev/canvas";async function a2(t,e){if(!t||t.length===0)return;let o=(await new Hhe(e).get()).results.map(i=>i.locale),a=t.filter(i=>!o.includes(i));if(a.length>0)throw new Error(`The following locales are not registered in your project: ${a.join(", ")}`)}async function s2({action:t,id:e,instructions:r,isPattern:n,patternId:o,projectMapNode:a,getEditUrl:i,env:l}){let s=new Whe(l),u,c,d=t==="update"?e:void 0,f={success:!0,actionsTaken:[]};if(t==="duplicate"){if(c=await s.getCompositionById({compositionId:e,state:i2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!c)throw new Error("Composition not found");let p=crypto.randomUUID(),m=BB(c.composition,p),h=Uhe(m,g=>{g._name=`${g._name} (copy)`,g._slug&&(g._slug=`${g._slug}-copy${g._slug?.endsWith("/")?"/":""}`)});u=new ii(h),e=p}else if(t==="create"){if(!r)throw new Error("Instructions are required for create");if(!r.name)throw new Error("Name is required for create");if(!r.type)throw new Error("Type is required for create");if(!o)u=new ii({_id:e,_name:r.name,type:r.type,_overridability:{hideLockedParameters:!0}});else{let p={composition:{_id:e,_name:r.name,type:r.type,_pattern:o},projectId:l.projectId,state:i2,pattern:!1};await s.updateComposition(p),d=e}}if(d){if(c=await s.getCompositionById({compositionId:e,state:i2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0}),!c)throw new Error("Composition not found");u=new ii(c.composition)}if(t==="delete"&&await s.removeComposition({compositionId:e}),u){await a2(r?.localeUpdates?.enableLocales,l),f=await Xy({twee:u,descriptionUpdate:void 0,slugUpdate:void 0,nameUpdate:r?.name,propertyUpdates:r?.parameterUpdates??[],dataResourceUpdates:r?.dataResourceUpdates??[],localeUpdates:r?.localeUpdates,slotUpdates:r??{},currentEditorLocale:void 0,referenceData:gV(l),isEditingPattern:n,domParser:o2});let p=u.exportTree(),m=u.exportMetadata(),h={composition:p,projectId:l.projectId,state:i2,pattern:n,releaseId:c?.releaseId,editionId:c?.editionId,...m};await s.updateComposition(h)}if(t==="create"&&!n&&(a?.nodePathSegment||a?.localePathSegments)&&r?.name){let p=new Ghe({apiKey:l.apiKey,apiHost:l.apiHost,projectId:l.projectId}),{path:m,nodeId:h}=await EB({projectMapClient:p,compositionId:e,compositionName:r.name,nodePathSegment:a.nodePathSegment||"",parentNodeId:a.parentNodeId,localePathSegments:a.localePathSegments,allowedQueryStrings:a.allowedQueryStrings});return f.actionsTaken.push({success:!0,summary:`Created project map node at path: ${m}`}),{content:[{type:"text",text:JSON.stringify({...f,editUrl:i(e),projectMapNode:{path:m,nodeId:h}},null,2)}]}}return{content:[{type:"text",text:JSON.stringify({...f,editUrl:i(e)},null,2)}]}}function l2(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}async function u2(t,e,r){return await r.toolInvoker.invoke("createFilterExpression",{...t,entityType:e})}var Zhe={action:en.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:en.string().uuid().describe("UUID of the composition instance to create, update, delete, or duplicate"),patternId:en.string().uuid().describe("Composition pattern ID to create the composition from. Omit when not creating, or when creating a composition without a composition pattern.").optional(),instructions:yE.describe("Modification instructions for the composition. Omit for delete and duplicate.").optional(),projectMapNode:en.object({parentNodeId:en.string().uuid().describe("UUID of the parent node from searchProjectMapNodes. If omitted, the node will be a child of the root node.").optional(),nodePathSegment:en.string().describe('URL path segment for the node (e.g., "about-us", "products", ":productId" for dynamic matching). Use a slugified version of the name unless otherwise requested by the user. Omit if not creating a project map node.').optional(),localePathSegments:en.array(en.object({locale:en.string().describe('Locale code (e.g., "en-US", "fr-FR")'),pathSegment:en.string().describe("URL path segment for this locale")})).describe("Optional array of locale-specific path segments. Unspecified locales use the nodePathSegment. Do not use these for dynamic path segments.").optional(),allowedQueryStrings:en.array(en.object({name:en.string().describe("Query parameter name"),defaultValue:en.string().describe("Default value if not provided in the URL").optional()})).describe("Optional array of allowed query string parameters for this node").optional()}).describe("Attaches the new composition to a new node in the project map hierarchy. Omit to avoid creating a project map node, or if action is not create.").optional()};function vV(t,e){t.tool("compositionAction","Creates, updates, or deletes a Uniform Composition",Zhe,async r=>await s2({...r,isPattern:!1,getEditUrl:n=>l2(n,e),patternId:r.patternId,projectMapNode:r.projectMapNode,env:e}))}import*as rr from"zod/v3";var Yhe=rr.object({field:rr.string(),operator:rr.string(),value:rr.string().or(rr.array(rr.string()))}),Khe=rr.object({filter:rr.array(Yhe),error:rr.string().describe("An error message if the filter expression could not be created, otherwise an empty string"),sort:rr.array(rr.enum(["created_at_ASC","created_at_DESC","updated_at_ASC","updated_at_DESC","author_ASC","author_DESC","creator_ASC","creator_DESC","name_ASC","name_DESC","slug_ASC","slug_DESC"])),limit:rr.number().min(1).max(100),offset:rr.number().min(0),keyword:rr.string(),locale:rr.string().optional()}),ns=rr.object({searchExpressionPrompt:rr.string().describe(`Describe what you are looking for, for example "created by me in the last week" or "type is article and headline contains breaking news" or "keyword search for breaking news".
|
|
5783
5791
|
You can specify multiple criteria (AND only).
|
|
5784
|
-
You can filter by date, number, or string properties on the definition, as well as name, created, modified, author, slug, enabled locales, type, and publish status.`),username:rr.string().describe("The username of the current user. If you do not know the username, use an empty string"),locale:rr.string().describe("The current locale. If there is no current locale, use an empty string")}),yQe={displayName:"Create filter expression",description:"Creates a Uniform search filter expression for searching entries, patterns, or compositions from a user prompt. Meant to be a callable tool only.",inputSchema:ns.extend({entityType:rr.enum(["composition","entry","componentPattern","compositionPattern","entryPattern"]).describe("The entity type we are creating a filter for")}),outputSchema:Khe,runsAt:"server",timeout:10,callable:!0};import*as Aj from"zod/v3";var os=class extends Error{},c2=class extends os{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},d2=class extends os{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},f2=class extends os{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ya=class extends os{},bf=class extends os{constructor(e){super(`Invalid unit ${e}`)}},Nr=class extends os{},xa=class extends os{constructor(){super("Zone is an abstract class")}};var Ee="numeric",Ca="short",To="long",gl={year:Ee,month:Ee,day:Ee},nh={year:Ee,month:Ca,day:Ee},wS={year:Ee,month:Ca,day:Ee,weekday:Ca},oh={year:Ee,month:To,day:Ee},ah={year:Ee,month:To,day:Ee,weekday:To},ih={hour:Ee,minute:Ee},sh={hour:Ee,minute:Ee,second:Ee},lh={hour:Ee,minute:Ee,second:Ee,timeZoneName:Ca},uh={hour:Ee,minute:Ee,second:Ee,timeZoneName:To},ch={hour:Ee,minute:Ee,hourCycle:"h23"},dh={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23"},fh={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23",timeZoneName:Ca},ph={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23",timeZoneName:To},mh={year:Ee,month:Ee,day:Ee,hour:Ee,minute:Ee},gh={year:Ee,month:Ee,day:Ee,hour:Ee,minute:Ee,second:Ee},hh={year:Ee,month:Ca,day:Ee,hour:Ee,minute:Ee},vh={year:Ee,month:Ca,day:Ee,hour:Ee,minute:Ee,second:Ee},SS={year:Ee,month:Ca,day:Ee,weekday:Ca,hour:Ee,minute:Ee},bh={year:Ee,month:To,day:Ee,hour:Ee,minute:Ee,timeZoneName:Ca},yh={year:Ee,month:To,day:Ee,hour:Ee,minute:Ee,second:Ee,timeZoneName:Ca},xh={year:Ee,month:To,day:Ee,weekday:To,hour:Ee,minute:Ee,timeZoneName:To},Ch={year:Ee,month:To,day:Ee,weekday:To,hour:Ee,minute:Ee,second:Ee,timeZoneName:To};var no=class{get type(){throw new xa}get name(){throw new xa}get ianaName(){return this.name}get isUniversal(){throw new xa}offsetName(e,r){throw new xa}formatOffset(e,r){throw new xa}offset(e){throw new xa}equals(e){throw new xa}get isValid(){throw new xa}};var ES=null,hl=class t extends no{static get instance(){return ES===null&&(ES=new t),ES}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return m2(e,r,n)}formatOffset(e,r){return vl(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var h2={};function Xhe(t){return h2[t]||(h2[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),h2[t]}var Jhe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function qhe(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,a,i,l,s,u,c]=n;return[i,o,a,l,s,u,c]}function Qhe(t,e){let r=t.formatToParts(e),n=[];for(let o=0;o<r.length;o++){let{type:a,value:i}=r[o],l=Jhe[a];a==="era"?n[l]=i:ke(l)||(n[l]=parseInt(i,10))}return n}var g2={},hn=class t extends no{static create(e){return g2[e]||(g2[e]=new t(e)),g2[e]}static resetCache(){g2={},h2={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return m2(e,r,n,this.name)}formatOffset(e,r){return vl(this.offset(e),r)}offset(e){let r=new Date(e);if(isNaN(r))return NaN;let n=Xhe(this.name),[o,a,i,l,s,u,c]=n.formatToParts?Qhe(n,r):qhe(n,r);l==="BC"&&(o=-Math.abs(o)+1);let f=yf({year:o,month:a,day:i,hour:s===24?0:s,minute:u,second:c,millisecond:0}),p=+r,m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var bV={};function e0e(t,e={}){let r=JSON.stringify([t,e]),n=bV[r];return n||(n=new Intl.ListFormat(t,e),bV[r]=n),n}var $S={};function TS(t,e={}){let r=JSON.stringify([t,e]),n=$S[r];return n||(n=new Intl.DateTimeFormat(t,e),$S[r]=n),n}var IS={};function t0e(t,e={}){let r=JSON.stringify([t,e]),n=IS[r];return n||(n=new Intl.NumberFormat(t,e),IS[r]=n),n}var DS={};function r0e(t,e={}){let{base:r,...n}=e,o=JSON.stringify([t,n]),a=DS[o];return a||(a=new Intl.RelativeTimeFormat(t,e),DS[o]=a),a}var wh=null;function n0e(){return wh||(wh=new Intl.DateTimeFormat().resolvedOptions().locale,wh)}var yV={};function o0e(t){let e=yV[t];if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,yV[t]=e}return e}function a0e(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,o;try{n=TS(t).resolvedOptions(),o=t}catch{let s=t.substring(0,r);n=TS(s).resolvedOptions(),o=s}let{numberingSystem:a,calendar:i}=n;return[o,a,i]}}function i0e(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function s0e(t){let e=[];for(let r=1;r<=12;r++){let n=dt.utc(2009,r,1);e.push(t(n))}return e}function l0e(t){let e=[];for(let r=1;r<=7;r++){let n=dt.utc(2016,11,13+r);e.push(t(n))}return e}function v2(t,e,r,n){let o=t.listingMode();return o==="error"?null:o==="en"?r(e):n(e)}function u0e(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var AS=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:o,floor:a,...i}=n;if(!r||Object.keys(i).length>0){let l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=t0e(e,l)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):xf(e,3);return dr(r,this.padTo)}}},LS=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let i=-1*(e.offset/60),l=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&hn.create(l).valid?(o=l,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let a={...this.opts};a.timeZone=a.timeZone||o,this.dtf=TS(r,a)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},_S=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&b2()&&(this.rtf=r0e(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):xV(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},c0e={firstDay:1,minimalDays:4,weekend:[6,7]},At=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,o,a=!1){let i=e||St.defaultLocale,l=i||(a?"en-US":n0e()),s=r||St.defaultNumberingSystem,u=n||St.defaultOutputCalendar,c=Sh(o)||St.defaultWeekSettings;return new t(l,s,u,c,i)}static resetCache(){wh=null,$S={},IS={},DS={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:o}={}){return t.create(e,r,n,o)}constructor(e,r,n,o,a){let[i,l,s]=a0e(e);this.locale=i,this.numberingSystem=r||l||null,this.outputCalendar=n||s||null,this.weekSettings=o,this.intl=i0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=u0e(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Sh(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return v2(this,e,MS,()=>{let n=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=s0e(a=>this.extract(a,n,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1){return v2(this,e,NS,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=l0e(a=>this.extract(a,n,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return v2(this,void 0,()=>kS,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dt.utc(2016,11,13,9),dt.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return v2(this,e,PS,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[dt.utc(-40,1,1),dt.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let o=this.dtFormatter(e,r),a=o.formatToParts(),i=a.find(l=>l.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new AS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new LS(e,this.intl,r)}relFormatter(e={}){return new _S(this.intl,this.isEnglish(),e)}listFormatter(e={}){return e0e(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:y2()?o0e(this.locale):c0e}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}};var RS=null,tn=class t extends no{static get utcInstance(){return RS===null&&(RS=new t(0)),RS}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(ic(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${vl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${vl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return vl(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var Cf=class extends no{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function wa(t,e){let r;if(ke(t)||t===null)return e;if(t instanceof no)return t;if(CV(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?hl.instance:n==="utc"||n==="gmt"?tn.utcInstance:tn.parseSpecifier(n)||hn.create(t)}else return si(t)?tn.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Cf(t)}var wV=()=>Date.now(),SV="system",EV=null,$V=null,TV=null,IV=60,DV,AV=null,St=class{static get now(){return wV}static set now(e){wV=e}static set defaultZone(e){SV=e}static get defaultZone(){return wa(SV,hl.instance)}static get defaultLocale(){return EV}static set defaultLocale(e){EV=e}static get defaultNumberingSystem(){return $V}static set defaultNumberingSystem(e){$V=e}static get defaultOutputCalendar(){return TV}static set defaultOutputCalendar(e){TV=e}static get defaultWeekSettings(){return AV}static set defaultWeekSettings(e){AV=Sh(e)}static get twoDigitCutoffYear(){return IV}static set twoDigitCutoffYear(e){IV=e%100}static get throwOnInvalid(){return DV}static set throwOnInvalid(e){DV=e}static resetCaches(){At.resetCache(),hn.resetCache()}};var rn=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var LV=[0,31,59,90,120,151,181,212,243,273,304,334],_V=[0,31,60,91,121,152,182,213,244,274,305,335];function Ko(t,e){return new rn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function x2(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return o===0?7:o}function MV(t,e,r){return r+(lc(t)?_V:LV)[e-1]}function NV(t,e){let r=lc(t)?_V:LV,n=r.findIndex(a=>a<e),o=e-r[n];return{month:n+1,day:o}}function C2(t,e){return(t-e+7)%7+1}function Eh(t,e=4,r=1){let{year:n,month:o,day:a}=t,i=MV(n,o,a),l=C2(x2(n,o,a),r),s=Math.floor((i-l+14-e)/7),u;return s<1?(u=n-1,s=sc(u,e,r)):s>sc(n,e,r)?(u=n+1,s=1):u=n,{weekYear:u,weekNumber:s,weekday:l,...Th(t)}}function FS(t,e=4,r=1){let{weekYear:n,weekNumber:o,weekday:a}=t,i=C2(x2(n,1,e),r),l=bl(n),s=o*7+a-i-7+e,u;s<1?(u=n-1,s+=bl(u)):s>l?(u=n+1,s-=bl(n)):u=n;let{month:c,day:d}=NV(u,s);return{year:u,month:c,day:d,...Th(t)}}function w2(t){let{year:e,month:r,day:n}=t,o=MV(e,r,n);return{year:e,ordinal:o,...Th(t)}}function BS(t){let{year:e,ordinal:r}=t,{month:n,day:o}=NV(e,r);return{year:e,month:n,day:o,...Th(t)}}function VS(t,e){if(!ke(t.localWeekday)||!ke(t.localWeekNumber)||!ke(t.localWeekYear)){if(!ke(t.weekday)||!ke(t.weekNumber)||!ke(t.weekYear))throw new ya("Cannot mix locale-based week fields with ISO-based week fields");return ke(t.localWeekday)||(t.weekday=t.localWeekday),ke(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),ke(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function kV(t,e=4,r=1){let n=$h(t.weekYear),o=Io(t.weekNumber,1,sc(t.weekYear,e,r)),a=Io(t.weekday,1,7);return n?o?a?!1:Ko("weekday",t.weekday):Ko("week",t.weekNumber):Ko("weekYear",t.weekYear)}function PV(t){let e=$h(t.year),r=Io(t.ordinal,1,bl(t.year));return e?r?!1:Ko("ordinal",t.ordinal):Ko("year",t.year)}function jS(t){let e=$h(t.year),r=Io(t.month,1,12),n=Io(t.day,1,wf(t.year,t.month));return e?r?n?!1:Ko("day",t.day):Ko("month",t.month):Ko("year",t.year)}function zS(t){let{hour:e,minute:r,second:n,millisecond:o}=t,a=Io(e,0,23)||e===24&&r===0&&n===0&&o===0,i=Io(r,0,59),l=Io(n,0,59),s=Io(o,0,999);return a?i?l?s?!1:Ko("millisecond",o):Ko("second",n):Ko("minute",r):Ko("hour",e)}function ke(t){return typeof t>"u"}function si(t){return typeof t=="number"}function $h(t){return typeof t=="number"&&t%1===0}function CV(t){return typeof t=="string"}function RV(t){return Object.prototype.toString.call(t)==="[object Date]"}function b2(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y2(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function FV(t){return Array.isArray(t)?t:[t]}function HS(t,e,r){if(t.length!==0)return t.reduce((n,o)=>{let a=[e(o),o];return n&&r(n[0],a[0])===n[0]?n:a},null)[1]}function BV(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function yl(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Sh(t){if(t==null)return null;if(typeof t!="object")throw new Nr("Week settings must be an object");if(!Io(t.firstDay,1,7)||!Io(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Io(e,1,7)))throw new Nr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Io(t,e,r){return $h(t)&&t>=e&&t<=r}function d0e(t,e){return t-e*Math.floor(t/e)}function dr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function as(t){if(!(ke(t)||t===null||t===""))return parseInt(t,10)}function xl(t){if(!(ke(t)||t===null||t===""))return parseFloat(t)}function Ih(t){if(!(ke(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function xf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function lc(t){return t%4===0&&(t%100!==0||t%400===0)}function bl(t){return lc(t)?366:365}function wf(t,e){let r=d0e(e-1,12)+1,n=t+(e-r)/12;return r===2?lc(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function yf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function OV(t,e,r){return-C2(x2(t,1,e),r)+e-1}function sc(t,e=4,r=1){let n=OV(t,e,r),o=OV(t+1,e,r);return(bl(t)-n+o)/7}function Dh(t){return t>99?t:t>St.twoDigitCutoffYear?1900+t:2e3+t}function m2(t,e,r,n=null){let o=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);let i={timeZoneName:e,...a},l=new Intl.DateTimeFormat(r,i).formatToParts(o).find(s=>s.type.toLowerCase()==="timezonename");return l?l.value:null}function ic(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,o=r<0||Object.is(r,-0)?-n:n;return r*60+o}function WS(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Nr(`Invalid unit value ${t}`);return e}function Sf(t,e){let r={};for(let n in t)if(yl(t,n)){let o=t[n];if(o==null)continue;r[e(n)]=WS(o)}return r}function vl(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${dr(r,2)}:${dr(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${dr(r,2)}${dr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Th(t){return BV(t,["hour","minute","second","millisecond"])}var f0e=["January","February","March","April","May","June","July","August","September","October","November","December"],GS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],p0e=["J","F","M","A","M","J","J","A","S","O","N","D"];function MS(t){switch(t){case"narrow":return[...p0e];case"short":return[...GS];case"long":return[...f0e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var US=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ZS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],m0e=["M","T","W","T","F","S","S"];function NS(t){switch(t){case"narrow":return[...m0e];case"short":return[...ZS];case"long":return[...US];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var kS=["AM","PM"],g0e=["Before Christ","Anno Domini"],h0e=["BC","AD"],v0e=["B","A"];function PS(t){switch(t){case"narrow":return[...v0e];case"short":return[...h0e];case"long":return[...g0e];default:return null}}function VV(t){return kS[t.hour<12?0:1]}function jV(t,e){return NS(e)[t.weekday-1]}function zV(t,e){return MS(e)[t.month-1]}function HV(t,e){return PS(e)[t.year<0?0:1]}function xV(t,e,r="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&a){let d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`;default:}}let i=Object.is(e,-0)||e<0,l=Math.abs(e),s=l===1,u=o[t],c=n?s?u[1]:u[2]||u[1]:s?o[t][0]:t;return i?`${l} ${c} ago`:`in ${l} ${c}`}function WV(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var b0e={D:gl,DD:nh,DDD:oh,DDDD:ah,t:ih,tt:sh,ttt:lh,tttt:uh,T:ch,TT:dh,TTT:fh,TTTT:ph,f:mh,ff:hh,fff:bh,ffff:xh,F:gh,FF:vh,FFF:yh,FFFF:Ch},nn=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",o=!1,a=[];for(let i=0;i<e.length;i++){let l=e.charAt(i);l==="'"?(n.length>0&&a.push({literal:o||/^\s+$/.test(n),val:n}),r=null,n="",o=!o):o||l===r?n+=l:(n.length>0&&a.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&a.push({literal:o||/^\s+$/.test(n),val:n}),a}static macroTokenToFormatOpts(e){return b0e[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return dr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(p,m)=>this.loc.extract(e,p,m),i=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",l=()=>n?VV(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(p,m)=>n?zV(e,p):a(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>n?jV(e,p):a(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let m=t.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},d=p=>n?HV(e,p):a({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return o?a({day:"numeric"},"day"):this.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return o?a({month:"numeric"},"month"):this.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return o?a({year:"numeric"},"year"):this.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(p)}};return WV(t.parseFormat(r),f)}formatDurationFromString(e,r){let n=s=>{switch(s[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=s=>u=>{let c=n(u);return c?this.num(s.get(c),u.length):u},a=t.parseFormat(r),i=a.reduce((s,{literal:u,val:c})=>u?s:s.concat(c),[]),l=e.shiftTo(...i.map(n).filter(s=>s));return WV(a,o(l))}};var UV=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $f(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Tf(...t){return e=>t.reduce(([r,n,o],a)=>{let[i,l,s]=a(e,o);return[{...r,...i},l||n,s]},[{},null,1]).slice(0,2)}function If(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let o=r.exec(t);if(o)return n(o)}return[null,null]}function ZV(...t){return(e,r)=>{let n={},o;for(o=0;o<t.length;o++)n[t[o]]=as(e[r+o]);return[n,null,r+o]}}var YV=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,y0e=`(?:${YV.source}?(?:\\[(${UV.source})\\])?)?`,YS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,KV=RegExp(`${YS.source}${y0e}`),KS=RegExp(`(?:T${KV.source})?`),x0e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,C0e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,w0e=/(\d{4})-?(\d{3})/,S0e=ZV("weekYear","weekNumber","weekDay"),E0e=ZV("year","ordinal"),$0e=/(\d{4})-(\d\d)-(\d\d)/,XV=RegExp(`${YS.source} ?(?:${YV.source}|(${UV.source}))?`),T0e=RegExp(`(?: ${XV.source})?`);function Ef(t,e,r){let n=t[e];return ke(n)?r:as(n)}function I0e(t,e){return[{year:Ef(t,e),month:Ef(t,e+1,1),day:Ef(t,e+2,1)},null,e+3]}function Df(t,e){return[{hours:Ef(t,e,0),minutes:Ef(t,e+1,0),seconds:Ef(t,e+2,0),milliseconds:Ih(t[e+3])},null,e+4]}function Ah(t,e){let r=!t[e]&&!t[e+1],n=ic(t[e+1],t[e+2]),o=r?null:tn.instance(n);return[{},o,e+3]}function Lh(t,e){let r=t[e]?hn.create(t[e]):null;return[{},r,e+1]}var D0e=RegExp(`^T?${YS.source}$`),A0e=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function L0e(t){let[e,r,n,o,a,i,l,s,u]=t,c=e[0]==="-",d=s&&s[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&c)?-p:p;return[{years:f(xl(r)),months:f(xl(n)),weeks:f(xl(o)),days:f(xl(a)),hours:f(xl(i)),minutes:f(xl(l)),seconds:f(xl(s),s==="-0"),milliseconds:f(Ih(u),d)}]}var _0e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function XS(t,e,r,n,o,a,i){let l={year:e.length===2?Dh(as(e)):as(e),month:GS.indexOf(r)+1,day:as(n),hour:as(o),minute:as(a)};return i&&(l.second=as(i)),t&&(l.weekday=t.length>3?US.indexOf(t)+1:ZS.indexOf(t)+1),l}var M0e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function N0e(t){let[,e,r,n,o,a,i,l,s,u,c,d]=t,f=XS(e,o,n,r,a,i,l),p;return s?p=_0e[s]:u?p=0:p=ic(c,d),[f,new tn(p)]}function k0e(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var P0e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,O0e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,R0e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function GV(t){let[,e,r,n,o,a,i,l]=t;return[XS(e,o,n,r,a,i,l),tn.utcInstance]}function F0e(t){let[,e,r,n,o,a,i,l]=t;return[XS(e,l,r,n,o,a,i),tn.utcInstance]}var B0e=$f(x0e,KS),V0e=$f(C0e,KS),j0e=$f(w0e,KS),z0e=$f(KV),JV=Tf(I0e,Df,Ah,Lh),H0e=Tf(S0e,Df,Ah,Lh),W0e=Tf(E0e,Df,Ah,Lh),G0e=Tf(Df,Ah,Lh);function qV(t){return If(t,[B0e,JV],[V0e,H0e],[j0e,W0e],[z0e,G0e])}function QV(t){return If(k0e(t),[M0e,N0e])}function ej(t){return If(t,[P0e,GV],[O0e,GV],[R0e,F0e])}function tj(t){return If(t,[A0e,L0e])}var U0e=Tf(Df);function rj(t){return If(t,[D0e,U0e])}var Z0e=$f($0e,T0e),Y0e=$f(XV),K0e=Tf(Df,Ah,Lh);function nj(t){return If(t,[Z0e,JV],[Y0e,K0e])}var oj="Invalid Duration",ij={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},X0e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ij},Xo=146097/400,Af=146097/4800,J0e={years:{quarters:4,months:12,weeks:Xo/7,days:Xo,hours:Xo*24,minutes:Xo*24*60,seconds:Xo*24*60*60,milliseconds:Xo*24*60*60*1e3},quarters:{months:3,weeks:Xo/28,days:Xo/4,hours:Xo*24/4,minutes:Xo*24*60/4,seconds:Xo*24*60*60/4,milliseconds:Xo*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...ij},uc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],q0e=uc.slice(0).reverse();function Cl(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new fr(n)}function sj(t,e){let r=e.milliseconds??0;for(let n of q0e.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function aj(t,e){let r=sj(t,e)<0?-1:1;uc.reduceRight((n,o)=>{if(ke(e[o]))return n;if(n){let a=e[n]*r,i=t[o][n],l=Math.floor(a/i);e[o]+=l*r,e[n]-=l*i*r}return o},null),uc.reduce((n,o)=>{if(ke(e[o]))return n;if(n){let a=e[n]%1;e[n]-=a,e[o]+=a*t[n][o]}return o},null)}function Q0e(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var fr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?J0e:X0e;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||At.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Nr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Sf(e,t.normalizeUnit),loc:At.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(si(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Nr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=tj(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=rj(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the Duration is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new f2(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new bf(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?nn.create(this.loc,n).formatDurationFromString(this,e):oj}toHuman(e={}){if(!this.isValid)return oj;let r=uc.map(n=>{let o=this.values[n];return ke(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(o)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=xf(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},dt.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?sj(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let o of uc)(yl(r.values,o)||yl(this.values,o))&&(n[o]=r.get(o)+this.get(o));return Cl(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=WS(e(this.values[n],n));return Cl(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Sf(e,t.normalizeUnit)};return Cl(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:o}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:o,conversionAccuracy:n};return Cl(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return aj(this.matrix,e),Cl(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Q0e(this.normalize().shiftToAll().toObject());return Cl(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>t.normalizeUnit(i));let r={},n={},o=this.toObject(),a;for(let i of uc)if(e.indexOf(i)>=0){a=i;let l=0;for(let u in n)l+=this.matrix[u][i]*n[u],n[u]=0;si(o[i])&&(l+=o[i]);let s=Math.trunc(l);r[i]=s,n[i]=(l*1e3-s*1e3)/1e3}else si(o[i])&&(n[i]=o[i]);for(let i in n)n[i]!==0&&(r[a]+=i===a?n[i]:n[i]/this.matrix[a][i]);return aj(this.matrix,r),Cl(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Cl(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(let n of uc)if(!r(this.values[n],e.values[n]))return!1;return!0}};var Lf="Invalid Interval";function e1e(t,e){return!t||!t.isValid?is.invalid("missing or invalid start"):!e||!e.isValid?is.invalid("missing or invalid end"):e<t?is.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var is=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the Interval is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new d2(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=_f(e),o=_f(r),a=e1e(n,o);return a??new t({start:n,end:o})}static after(e,r){let n=fr.fromDurationLike(r),o=_f(e);return t.fromDateTimes(o,o.plus(n))}static before(e,r){let n=fr.fromDurationLike(r),o=_f(e);return t.fromDateTimes(o.minus(n),o)}static fromISO(e,r){let[n,o]=(e||"").split("/",2);if(n&&o){let a,i;try{a=dt.fromISO(n,r),i=a.isValid}catch{i=!1}let l,s;try{l=dt.fromISO(o,r),s=l.isValid}catch{s=!1}if(i&&s)return t.fromDateTimes(a,l);if(i){let u=fr.fromISO(o,r);if(u.isValid)return t.after(a,u)}else if(s){let u=fr.fromISO(n,r);if(u.isValid)return t.before(l,u)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),o;return r?.useLocaleWeeks?o=this.end.reconfigure({locale:n.locale}):o=this.end,o=o.startOf(e,r),Math.floor(o.diff(n,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(_f).filter(i=>this.contains(i)).sort((i,l)=>i.toMillis()-l.toMillis()),n=[],{s:o}=this,a=0;for(;o<this.e;){let i=r[a]||this.e,l=+i>+this.e?this.e:i;n.push(t.fromDateTimes(o,l)),o=l,a+=1}return n}splitBy(e){let r=fr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,o=1,a,i=[];for(;n<this.e;){let l=this.start.plus(r.mapUnits(s=>s*o));a=+l>+this.e?this.e:l,i.push(t.fromDateTimes(n,a)),n=a,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((o,a)=>o.s-a.s).reduce(([o,a],i)=>a?a.overlaps(i)||a.abutsStart(i)?[o,a.union(i)]:[o.concat([a]),i]:[o,i],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,o=[],a=e.map(s=>[{time:s.s,type:"s"},{time:s.e,type:"e"}]),i=Array.prototype.concat(...a),l=i.sort((s,u)=>s.time-u.time);for(let s of l)n+=s.type==="s"?1:-1,n===1?r=s.time:(r&&+r!=+s.time&&o.push(t.fromDateTimes(r,s.time)),r=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Lf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=gl,r={}){return this.isValid?nn.create(this.s.loc.clone(r),e).formatInterval(this):Lf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Lf}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):fr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var ss=class{static hasDST(e=St.defaultZone){let r=dt.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return hn.isValidZone(e)}static normalizeZone(e){return wa(e,St.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||At.create(r,n,a)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||At.create(r,n,a)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||At.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||At.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return At.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return At.create(r,null,"gregory").eras(e)}static features(){return{relative:b2(),localeWeek:y2()}}};function lj(t,e){let r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(fr.fromMillis(n).as("days"))}function t1e(t,e,r){let n=[["years",(s,u)=>u.year-s.year],["quarters",(s,u)=>u.quarter-s.quarter+(u.year-s.year)*4],["months",(s,u)=>u.month-s.month+(u.year-s.year)*12],["weeks",(s,u)=>{let c=lj(s,u);return(c-c%7)/7}],["days",lj]],o={},a=t,i,l;for(let[s,u]of n)r.indexOf(s)>=0&&(i=s,o[s]=u(t,e),l=a.plus(o),l>e?(o[s]--,t=a.plus(o),t>e&&(l=t,o[s]--,t=a.plus(o))):t=l);return[t,o,l,i]}function uj(t,e,r,n){let[o,a,i,l]=t1e(t,e,r),s=e-o,u=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(i<e&&(i=o.plus({[l]:1})),i!==o&&(a[l]=(a[l]||0)+s/(i-o)));let c=fr.fromObject(a,n);return u.length>0?fr.fromMillis(s,n).shiftTo(...u).plus(c):c}var JS={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},cj={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},r1e=JS.hanidec.replace(/[\[|\]]/g,"").split("");function dj(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(JS.hanidec)!==-1)e+=r1e.indexOf(t[r]);else for(let o in cj){let[a,i]=cj[o];n>=a&&n<=i&&(e+=n-a)}}return parseInt(e,10)}else return e}function Jo({numberingSystem:t},e=""){return new RegExp(`${JS[t||"latn"]}${e}`)}var n1e="missing Intl.DateTimeFormat.formatToParts support";function Et(t,e=r=>r){return{regex:t,deser:([r])=>e(dj(r))}}var o1e="\xA0",mj=`[ ${o1e}]`,gj=new RegExp(mj,"g");function a1e(t){return t.replace(/\./g,"\\.?").replace(gj,mj)}function fj(t){return t.replace(/\./g,"").replace(gj," ").toLowerCase()}function Sa(t,e){return t===null?null:{regex:RegExp(t.map(a1e).join("|")),deser:([r])=>t.findIndex(n=>fj(r)===fj(n))+e}}function pj(t,e){return{regex:t,deser:([,r,n])=>ic(r,n),groups:e}}function S2(t){return{regex:t,deser:([e])=>e}}function i1e(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s1e(t,e){let r=Jo(e),n=Jo(e,"{2}"),o=Jo(e,"{3}"),a=Jo(e,"{4}"),i=Jo(e,"{6}"),l=Jo(e,"{1,2}"),s=Jo(e,"{1,3}"),u=Jo(e,"{1,6}"),c=Jo(e,"{1,9}"),d=Jo(e,"{2,4}"),f=Jo(e,"{4,6}"),p=g=>({regex:RegExp(i1e(g.val)),deser:([v])=>v,literal:!0}),h=(g=>{if(t.literal)return p(g);switch(g.val){case"G":return Sa(e.eras("short"),0);case"GG":return Sa(e.eras("long"),0);case"y":return Et(u);case"yy":return Et(d,Dh);case"yyyy":return Et(a);case"yyyyy":return Et(f);case"yyyyyy":return Et(i);case"M":return Et(l);case"MM":return Et(n);case"MMM":return Sa(e.months("short",!0),1);case"MMMM":return Sa(e.months("long",!0),1);case"L":return Et(l);case"LL":return Et(n);case"LLL":return Sa(e.months("short",!1),1);case"LLLL":return Sa(e.months("long",!1),1);case"d":return Et(l);case"dd":return Et(n);case"o":return Et(s);case"ooo":return Et(o);case"HH":return Et(n);case"H":return Et(l);case"hh":return Et(n);case"h":return Et(l);case"mm":return Et(n);case"m":return Et(l);case"q":return Et(l);case"qq":return Et(n);case"s":return Et(l);case"ss":return Et(n);case"S":return Et(s);case"SSS":return Et(o);case"u":return S2(c);case"uu":return S2(l);case"uuu":return Et(r);case"a":return Sa(e.meridiems(),0);case"kkkk":return Et(a);case"kk":return Et(d,Dh);case"W":return Et(l);case"WW":return Et(n);case"E":case"c":return Et(r);case"EEE":return Sa(e.weekdays("short",!1),1);case"EEEE":return Sa(e.weekdays("long",!1),1);case"ccc":return Sa(e.weekdays("short",!0),1);case"cccc":return Sa(e.weekdays("long",!0),1);case"Z":case"ZZ":return pj(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return pj(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return S2(/[a-z_+-/]{1,256}?/i);case" ":return S2(/[^\S\n\r]/);default:return p(g)}})(t)||{invalidReason:n1e};return h.token=t,h}var l1e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function u1e(t,e,r){let{type:n,value:o}=t;if(n==="literal"){let s=/^\s+$/.test(o);return{literal:!s,val:s?" ":o}}let a=e[n],i=n;n==="hour"&&(e.hour12!=null?i=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?i="hour12":i="hour24":i=r.hour12?"hour12":"hour24");let l=l1e[i];if(typeof l=="object"&&(l=l[a]),l)return{literal:!1,val:l}}function c1e(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function d1e(t,e,r){let n=t.match(e);if(n){let o={},a=1;for(let i in r)if(yl(r,i)){let l=r[i],s=l.groups?l.groups+1:1;!l.literal&&l.token&&(o[l.token.val[0]]=l.deser(n.slice(a,a+s))),a+=s}return[n,o]}else return[n,{}]}function f1e(t){let e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return ke(t.z)||(r=hn.create(t.z)),ke(t.Z)||(r||(r=new tn(t.Z)),n=t.Z),ke(t.q)||(t.M=(t.q-1)*3+1),ke(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),ke(t.u)||(t.S=Ih(t.u)),[Object.keys(t).reduce((a,i)=>{let l=e(i);return l&&(a[l]=t[i]),a},{}),r,n]}var qS=null;function p1e(){return qS||(qS=dt.fromMillis(1555555555555)),qS}function m1e(t,e){if(t.literal)return t;let r=nn.macroTokenToFormatOpts(t.val),n=tE(r,e);return n==null||n.includes(void 0)?t:n}function QS(t,e){return Array.prototype.concat(...t.map(r=>m1e(r,e)))}function eE(t,e,r){let n=QS(nn.parseFormat(r),t),o=n.map(i=>s1e(i,t)),a=o.find(i=>i.invalidReason);if(a)return{input:e,tokens:n,invalidReason:a.invalidReason};{let[i,l]=c1e(o),s=RegExp(i,"i"),[u,c]=d1e(e,s,l),[d,f,p]=c?f1e(c):[null,null,void 0];if(yl(c,"a")&&yl(c,"H"))throw new ya("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:s,rawMatches:u,matches:c,result:d,zone:f,specificOffset:p}}}function hj(t,e,r){let{result:n,zone:o,specificOffset:a,invalidReason:i}=eE(t,e,r);return[n,o,a,i]}function tE(t,e){if(!t)return null;let n=nn.create(e,t).dtFormatter(p1e()),o=n.formatToParts(),a=n.resolvedOptions();return o.map(i=>u1e(i,t,a))}var rE="Invalid DateTime",vj=864e13;function E2(t){return new rn("unsupported zone",`the zone "${t.name}" is not supported`)}function nE(t){return t.weekData===null&&(t.weekData=Eh(t.c)),t.weekData}function oE(t){return t.localWeekData===null&&(t.localWeekData=Eh(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function cc(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dt({...r,...e,old:r})}function Ej(t,e,r){let n=t-e*60*1e3,o=r.offset(n);if(e===o)return[n,e];n-=(o-e)*60*1e3;let a=r.offset(n);return o===a?[n,o]:[t-Math.min(o,a)*60*1e3,Math.max(o,a)]}function $2(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function I2(t,e,r){return Ej(yf(t),e,r)}function bj(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...t.c,year:n,month:o,day:Math.min(t.c.day,wf(n,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},i=fr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=yf(a),[s,u]=Ej(l,r,t.zone);return i!==0&&(s+=i,u=t.zone.offset(s)),{ts:s,o:u}}function _h(t,e,r,n,o,a){let{setZone:i,zone:l}=r;if(t&&Object.keys(t).length!==0||e){let s=e||l,u=dt.fromObject(t,{...r,zone:s,specificOffset:a});return i?u:u.setZone(l)}else return dt.invalid(new rn("unparsable",`the input "${o}" can't be parsed as ${n}`))}function T2(t,e,r=!0){return t.isValid?nn.create(At.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function aE(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=dr(t.c.year,r?6:4),e?(n+="-",n+=dr(t.c.month),n+="-",n+=dr(t.c.day)):(n+=dr(t.c.month),n+=dr(t.c.day)),n}function yj(t,e,r,n,o,a){let i=dr(t.c.hour);return e?(i+=":",i+=dr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(i+=":")):i+=dr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(i+=dr(t.c.second),(t.c.millisecond!==0||!n)&&(i+=".",i+=dr(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!a?i+="Z":t.o<0?(i+="-",i+=dr(Math.trunc(-t.o/60)),i+=":",i+=dr(Math.trunc(-t.o%60))):(i+="+",i+=dr(Math.trunc(t.o/60)),i+=":",i+=dr(Math.trunc(t.o%60)))),a&&(i+="["+t.zone.ianaName+"]"),i}var $j={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},g1e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},h1e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Tj=["year","month","day","hour","minute","second","millisecond"],v1e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],b1e=["year","ordinal","hour","minute","second","millisecond"];function y1e(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new bf(t);return e}function xj(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return y1e(t)}}function Cj(t,e){let r=wa(e.zone,St.defaultZone),n=At.fromObject(e),o=St.now(),a,i;if(ke(t.year))a=o;else{for(let u of Tj)ke(t[u])&&(t[u]=$j[u]);let l=jS(t)||zS(t);if(l)return dt.invalid(l);let s=r.offset(o);[a,i]=I2(t,s,r)}return new dt({ts:a,zone:r,loc:n,o:i})}function wj(t,e,r){let n=ke(r.round)?!0:r.round,o=(i,l)=>(i=xf(i,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(i,l)),a=i=>r.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i);if(r.unit)return o(a(r.unit),r.unit);for(let i of r.units){let l=a(i);if(Math.abs(l)>=1)return o(l,i)}return o(t>e?-0:0,r.units[r.units.length-1])}function Sj(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var dt=class t{constructor(e){let r=e.zone||St.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new rn("invalid input"):null)||(r.isValid?null:E2(r));this.ts=ke(e.ts)?St.now():e.ts;let o=null,a=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[o,a]=[e.old.c,e.old.o];else{let l=r.offset(this.ts);o=$2(this.ts,l),n=Number.isNaN(o.year)?new rn("invalid input"):null,o=n?null:o,a=n?null:l}this._zone=r,this.loc=e.loc||At.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=a,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Sj(arguments),[n,o,a,i,l,s,u]=r;return Cj({year:n,month:o,day:a,hour:i,minute:l,second:s,millisecond:u},e)}static utc(){let[e,r]=Sj(arguments),[n,o,a,i,l,s,u]=r;return e.zone=tn.utcInstance,Cj({year:n,month:o,day:a,hour:i,minute:l,second:s,millisecond:u},e)}static fromJSDate(e,r={}){let n=RV(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let o=wa(r.zone,St.defaultZone);return o.isValid?new t({ts:n,zone:o,loc:At.fromObject(r)}):t.invalid(E2(o))}static fromMillis(e,r={}){if(si(e))return e<-vj||e>vj?t.invalid("Timestamp out of range"):new t({ts:e,zone:wa(r.zone,St.defaultZone),loc:At.fromObject(r)});throw new Nr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(si(e))return new t({ts:e*1e3,zone:wa(r.zone,St.defaultZone),loc:At.fromObject(r)});throw new Nr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=wa(r.zone,St.defaultZone);if(!n.isValid)return t.invalid(E2(n));let o=At.fromObject(r),a=Sf(e,xj),{minDaysInFirstWeek:i,startOfWeek:l}=VS(a,o),s=St.now(),u=ke(r.specificOffset)?n.offset(s):r.specificOffset,c=!ke(a.ordinal),d=!ke(a.year),f=!ke(a.month)||!ke(a.day),p=d||f,m=a.weekYear||a.weekNumber;if((p||c)&&m)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new ya("Can't mix ordinal dates with month/day");let h=m||a.weekday&&!p,g,v,y=$2(s,u);h?(g=v1e,v=g1e,y=Eh(y,i,l)):c?(g=b1e,v=h1e,y=w2(y)):(g=Tj,v=$j);let x=!1;for(let D of g){let L=a[D];ke(L)?x?a[D]=v[D]:a[D]=y[D]:x=!0}let C=h?kV(a,i,l):c?PV(a):jS(a),w=C||zS(a);if(w)return t.invalid(w);let S=h?FS(a,i,l):c?BS(a):a,[E,$]=I2(S,u,n),T=new t({ts:E,zone:n,o:$,loc:o});return a.weekday&&p&&e.weekday!==T.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,r={}){let[n,o]=qV(e);return _h(n,o,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,o]=QV(e);return _h(n,o,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,o]=ej(e);return _h(n,o,r,"HTTP",r)}static fromFormat(e,r,n={}){if(ke(e)||ke(r))throw new Nr("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:a=null}=n,i=At.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),[l,s,u,c]=hj(i,e,r);return c?t.invalid(c):_h(l,s,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,o]=nj(e);return _h(n,o,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the DateTime is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new c2(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=tE(e,At.fromObject(r));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(e,r={}){return QS(nn.parseFormat(e),At.fromObject(r)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nE(this).weekYear:NaN}get weekNumber(){return this.isValid?nE(this).weekNumber:NaN}get weekday(){return this.isValid?nE(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?oE(this).weekday:NaN}get localWeekNumber(){return this.isValid?oE(this).weekNumber:NaN}get localWeekYear(){return this.isValid?oE(this).weekYear:NaN}get ordinal(){return this.isValid?w2(this.c).ordinal:NaN}get monthShort(){return this.isValid?ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ss.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=yf(this.c),o=this.zone.offset(n-e),a=this.zone.offset(n+e),i=this.zone.offset(n-o*r),l=this.zone.offset(n-a*r);if(i===l)return[this];let s=n-i*r,u=n-l*r,c=$2(s,i),d=$2(u,l);return c.hour===d.hour&&c.minute===d.minute&&c.second===d.second&&c.millisecond===d.millisecond?[cc(this,{ts:s}),cc(this,{ts:u})]:[this]}get isInLeapYear(){return lc(this.year)}get daysInMonth(){return wf(this.year,this.month)}get daysInYear(){return this.isValid?bl(this.year):NaN}get weeksInWeekYear(){return this.isValid?sc(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?sc(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:o}=nn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:o}}toUTC(e=0,r={}){return this.setZone(tn.instance(e),r)}toLocal(){return this.setZone(St.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=wa(e,St.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(r||n){let a=e.offset(this.ts),i=this.toObject();[o]=I2(i,a,e)}return cc(this,{ts:o,zone:e})}else return t.invalid(E2(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let o=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return cc(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Sf(e,xj),{minDaysInFirstWeek:n,startOfWeek:o}=VS(r,this.loc),a=!ke(r.weekYear)||!ke(r.weekNumber)||!ke(r.weekday),i=!ke(r.ordinal),l=!ke(r.year),s=!ke(r.month)||!ke(r.day),u=l||s,c=r.weekYear||r.weekNumber;if((u||i)&&c)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new ya("Can't mix ordinal dates with month/day");let d;a?d=FS({...Eh(this.c,n,o),...r},n,o):ke(r.ordinal)?(d={...this.toObject(),...r},ke(r.day)&&(d.day=Math.min(wf(d.year,d.month),d.day))):d=BS({...w2(this.c),...r});let[f,p]=I2(d,this.o,this.zone);return cc(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let r=fr.fromDurationLike(e);return cc(this,bj(this,r))}minus(e){if(!this.isValid)return this;let r=fr.fromDurationLike(e).negate();return cc(this,bj(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},o=fr.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(r){let a=this.loc.getStartOfWeek(),{weekday:i}=this;i<a&&(n.weekNumber=this.weekNumber-1),n.weekday=a}else n.weekday=1;if(o==="quarters"){let a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?nn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):rE}toLocaleString(e=gl,r={}){return this.isValid?nn.create(this.loc.clone(r),e).formatDateTime(this):rE}toLocaleParts(e={}){return this.isValid?nn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:o=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;let i=e==="extended",l=aE(this,i);return l+="T",l+=yj(this,i,r,n,o,a),l}toISODate({format:e="extended"}={}){return this.isValid?aE(this,e==="extended"):null}toISOWeekDate(){return T2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:o=!1,extendedZone:a=!1,format:i="extended"}={}){return this.isValid?(o?"T":"")+yj(this,i==="extended",r,e,n,a):null}toRFC2822(){return T2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return T2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?aE(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let o="HH:mm:ss.SSS";return(r||e)&&(n&&(o+=" "),r?o+="z":e&&(o+="ZZ")),T2(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rE}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return fr.invalid("created by diffing an invalid DateTime");let o={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=FV(r).map(fr.normalizeUnit),i=e.valueOf()>this.valueOf(),l=i?this:e,s=i?e:this,u=uj(l,s,a,o);return i?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?is.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r,n)<=o&&o<=a.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,o=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(o=e.unit,a=void 0),wj(r,this.plus(n),{...e,numeric:"always",units:o,unit:a})}toRelativeCalendar(e={}){return this.isValid?wj(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Nr("min requires all arguments be DateTimes");return HS(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Nr("max requires all arguments be DateTimes");return HS(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:o=null,numberingSystem:a=null}=n,i=At.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});return eE(i,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return gl}static get DATE_MED(){return nh}static get DATE_MED_WITH_WEEKDAY(){return wS}static get DATE_FULL(){return oh}static get DATE_HUGE(){return ah}static get TIME_SIMPLE(){return ih}static get TIME_WITH_SECONDS(){return sh}static get TIME_WITH_SHORT_OFFSET(){return lh}static get TIME_WITH_LONG_OFFSET(){return uh}static get TIME_24_SIMPLE(){return ch}static get TIME_24_WITH_SECONDS(){return dh}static get TIME_24_WITH_SHORT_OFFSET(){return fh}static get TIME_24_WITH_LONG_OFFSET(){return ph}static get DATETIME_SHORT(){return mh}static get DATETIME_SHORT_WITH_SECONDS(){return gh}static get DATETIME_MED(){return hh}static get DATETIME_MED_WITH_SECONDS(){return vh}static get DATETIME_MED_WITH_WEEKDAY(){return SS}static get DATETIME_FULL(){return bh}static get DATETIME_FULL_WITH_SECONDS(){return yh}static get DATETIME_HUGE(){return xh}static get DATETIME_HUGE_WITH_SECONDS(){return Ch}};function _f(t){if(dt.isDateTime(t))return t;if(t&&t.valueOf&&si(t.valueOf()))return dt.fromJSDate(t);if(t&&typeof t=="object")return dt.fromObject(t);throw new Nr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function D2(t){return t.reduce((e,{field:r,operator:n,value:o})=>{if(!r||!n)return e;if(r==="updated_at"&&(r="modified"),r==="created_at"&&(r="created"),n==="def")return{...e,[`${r}[def]`]:"true"};if(n==="ndef")return{...e,[`${r}[def]`]:"false"};if(n==="checked")return{...e,[`${r}[eq]`]:"true"};if(n==="nchecked")return{...e,[`${r}[eq]`]:"false"};if(typeof o>"u"||o===null||o===""||Array.isArray(o)&&o.length<1)return e;if(n==="between"||n==="sys-date-between")if(Array.isArray(o)&&o.length===2){if(n==="between")return{...e,[`${r}[gte]`]:o[0],[`${r}[lte]`]:o[1]};{let a=dt.fromISO(o[0],{zone:"system"}).setZone("utc").toISO(),i=dt.fromISO(o[1],{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a&&i?{...e,[`${r}[gte]`]:a,[`${r}[lt]`]:i}:e}}else return e;if(n==="sys-date-eq")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO(),i=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a&&i?{...e,[`${r}[gte]`]:a,[`${r}[lt]`]:i}:e}else return e;if(n==="sys-date-gt")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a?{...e,[`${r}[gte]`]:a}:e}else return e;if(n==="sys-date-gte")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return a?{...e,[`${r}[gte]`]:a}:e}else return e;if(n==="sys-date-lt")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return a?{...e,[`${r}[lt]`]:a}:e}else return e;if(n==="sys-date-lte")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a?{...e,[`${r}[lt]`]:a}:e}else return e;if(n==="starts"&&typeof o=="string")return{...e,[`${r}[starts]`]:o.replaceAll(/[^a-zA-Z0-9_.\s-]/g,"").toLowerCase()};if(r==="workflowStageId"){let a=t.some(i=>i.field==="workflowId");if(n==="eq"||n==="neq"){let i=[];return Array.isArray(o)?i=o.map(s=>s.split("_")[1]):i=o.split("_"),{...e,...a?{}:{"workflowId[eq]":i[0]},[`${r}[${n}]`]:i[1]}}if(Array.isArray(o)){let i=o.map(u=>{let c=u.split("_")[0],d=u.split("_")[1];return{workflowId:c,workflowStage:d}}),l=i.map(u=>u.workflowId).join(","),s=i.map(u=>u.workflowStage).join(",");return{...e,...a?{}:{[`workflowId[${n}]`]:l},[`${r}[${n}]`]:s}}}return{...e,[`${r}[${n}]`]:Array.isArray(o)?o.join(","):o}},{})}import{CANVAS_DRAFT_STATE as Ij,CanvasClient as Dj}from"@uniformdev/canvas";async function A2({instanceType:t,searchExpressionPrompt:e,username:r,locale:n,getEditUrl:o,env:a}){let i=new Dj(a),l=await u2({searchExpressionPrompt:e,username:r,locale:n},t,a),{limit:s,offset:u,keyword:c,sort:d,filter:f}=l,m=(await i.getCompositionList({patternType:t==="composition"?void 0:t==="componentPattern"?"component":"composition",pattern:t!=="composition",resolveData:!1,withComponentIDs:!0,skipOverridesResolution:!0,limit:s,offset:u,search:c,filters:f?D2(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:n,skipPatternResolution:!0,state:Ij})).compositions.map(h=>({id:h.composition._id,name:h.composition._name,componentType:h.composition.type,editUrl:o(h.composition._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:l},null,2)}]}}async function L2({id:t,env:e}){let n=await new Dj(e).getCompositionById({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,compositionId:t,state:Ij});return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}var x1e={id:Aj.string()};function Lj(t,e){t.tool("compositionList","Lists available Uniform compositions",ns.shape,async r=>await A2({...r,instanceType:"composition",getEditUrl:n=>l2(n,e),env:e})),t.tool("compositionGet","Gets the full contents of a Uniform composition",x1e,async r=>await L2({...r,env:e}))}import{autoFixParameterGroups as Nj,ContentClient as C1e}from"@uniformdev/canvas";import*as M2 from"zod/v3";import*as wl from"zod/v3";var _j=wl.object({name:wl.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:wl.string().describe("Public ID of the content type, the camelCase version of name, using only alphanumeric characters"),description:wl.string().describe("Describe the purpose of the content type in 1-2 sentences."),fields:wl.array(Rh).describe("The fields of the content type. The key is the publicId of the field.").optional()});function Mj(t){let e=t.fields?.find(n=>n.type==="asset"&&typeof n.typeConfig=="object"&&n.typeConfig!==null&&"allowedTypes"in n.typeConfig&&Array.isArray(n.typeConfig.allowedTypes)&&n.typeConfig.allowedTypes?.includes("image"))?.id,r=t.fields?.find(n=>n.type==="text")?.id;return{...t,thumbnailField:e,entryName:r}}function _2(t,e){return`${e.baseWebUrl}/dashboards/canvas/content-types/${t}`}var w1e={action:M2.enum(["create","update","delete"]).describe("The action to perform"),publicId:M2.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),contentType:_j.describe("Full content type definition to create. Omit for update or delete.").optional(),patches:Ph.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function kj(t,e){t.tool("contentTypeAction","Creates, updates, or deletes a Uniform Content Type definition",w1e,async({publicId:r,action:n,contentType:o,patches:a})=>{let i=new C1e(e),l=!1;if(n==="create"){if(!o)throw new Error("Content type definition is required for create");let s=Mj(o);s.fields&&(l=Nj(s.fields),fc(s.fields)),await i.upsertContentType({contentType:s})}if(n==="update"){if(!a)throw new Error("Patches are required for update");let u=(await i.getContentTypes()).contentTypes.find(f=>f.id===r);if(!u)throw new Error(`Content Type with public ID ${r} does not exist, try creating it instead`);let c=u.fields?.filter(f=>f.type==="richText").map(f=>f.id),d=kh(u,a);if(d.fields){l=Nj(d.fields);let f=d.fields?.filter(p=>p.type==="richText").map(p=>p.id).filter(p=>!c?.includes(p));fc(d.fields,f)}await i.upsertContentType({contentType:d})}return n==="delete"&&await i.deleteContentType({contentTypeId:r}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:_2(r,e),warning:l?"Issues with field group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{ContentClient as Pj}from"@uniformdev/canvas";import*as Oj from"zod/v3";var S1e={id:Oj.string()};function Rj(t,e){t.tool("contentTypeList","Lists all Uniform Content Type definitions",async()=>{let o=(await new Pj(e).getContentTypes()).contentTypes.map(a=>({id:a.id,name:a.name,description:a.description,editUrl:_2(a.id,e)}));return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}),t.tool("contentTypeGet","Gets a Uniform Content Type definition details (fields, etc.)",S1e,async({id:r})=>{let a=(await new Pj(e).getContentTypes()).contentTypes.find(i=>i.id===r);if(!a)throw new Error(`Content Type with ID ${r} not found`);return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}})}import{v4 as E1e}from"uuid";function Fj(t,e){t.tool("createUuid","Creates a new random UUID",async()=>({content:[{type:"text",text:E1e()}]}))}import*as Mh from"zod/v3";import{CANVAS_DRAFT_STATE as N2,ContentClient as $1e,convertEntryToPutEntry as T1e,getEffectivePropertyValue as I1e}from"@uniformdev/canvas";async function D1e(t,e,r){let o=(await e.fetchDefinitions())[t.entry.type];if(!o)throw new Error("insanity");let a=ZB(o),i;a.entryName&&(i=t.entry._overrides?.[t.entry._id].parameters?.[a.entryName]??t.entry.fields?.[a.entryName]);let l=I1e({conditionIndex:-1,locale:"__any__",greedyLocaleMatching:!0,property:i}),s=TB({value:l,isNew:r,contentType:a});t.entry._name=s}async function k2({action:t,id:e,instructions:r,isPattern:n,patternId:o,getEditUrl:a,env:i}){let l=new $1e(i),s,u,c=t==="update"?e:void 0,d={success:!0,actionsTaken:[]};if(t==="duplicate"){let p=(await l.getEntries({entryIDs:[e],pattern:n,state:N2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0];if(!p)throw new Error("Entry not found");let m=crypto.randomUUID(),h={...p.entry,_id:m,_name:`${p.entry._name} (copy)`};h._slug&&(h._slug=`${h._slug}-copy${h._slug?.endsWith("/")?"/":""}`),delete h._thumbnail;let g=eh({...p,entry:h});s=new ii(g.composition),e=m}else if(t==="create"){if(!r)throw new Error("Instructions are required for create");if(!r.type)throw new Error("Type is required for create");o?(await l.upsertEntry({state:N2,entry:{type:r.type,_id:e,fields:{},_pattern:o}}),c=e):s=new ii({_id:e,_name:"New Entry",type:r.type,_overridability:{hideLockedParameters:!0}})}if(c){if(u=(await l.getEntries({entryIDs:[e],pattern:n,state:N2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0],!u)throw new Error("Entry not found");let p=eh(u);s=new ii(p.composition)}t==="delete"&&await l.deleteEntry({entryId:e});let f=hV(i);if(s){t!=="duplicate"&&(await a2(r?.localeUpdates?.enableLocales,i),d=await Xy({twee:s,descriptionUpdate:void 0,slugUpdate:r&&"slug"in r?r.slug:void 0,nameUpdate:r&&"name"in r?r.name:void 0,propertyUpdates:r?.fieldUpdates??[],dataResourceUpdates:(r&&"dataResourceUpdates"in r?r.dataResourceUpdates:[])??[],slotUpdates:{},localeUpdates:r?.localeUpdates,currentEditorLocale:void 0,referenceData:f,isEditingPattern:n,domParser:o2}));let p=s.exportTree(),m=s.exportMetadata(),h=T1e(YB(p,u??{projectId:i.projectId,pattern:n},m,N2,u?.releaseId,u?.editionId));n||await D1e(h,f,t==="create"),await l.upsertEntry(h)}return{content:[{type:"text",text:JSON.stringify({...d,editUrl:a(e)},null,2)}]}}function P2(t,e){return`${e.baseWebUrl}/dashboards/canvas/entries/${t}`}var A1e={action:Mh.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:Mh.string().uuid().describe("UUID of the entry to create, update, delete, or duplicate"),patternId:Mh.string().uuid().describe("Entry pattern ID to create the entry from. Omit when not creating, or when creating an entry without an entry pattern.").optional(),instructions:xE.describe("Modification instructions for the entry. Omit for delete and duplicate.").optional()};function Bj(t,e){t.tool("entryAction","Creates, updates, or deletes a Uniform Entry",A1e,async r=>await k2({...r,isPattern:!1,getEditUrl:n=>P2(n,e),patternId:r.patternId,env:e}))}import*as zj from"zod/v3";import{CANVAS_DRAFT_STATE as Vj,ContentClient as jj}from"@uniformdev/canvas";async function O2({isPattern:t,searchExpressionPrompt:e,username:r,locale:n,getEditUrl:o,env:a}){let i=new jj(a),l=await u2({searchExpressionPrompt:e,username:r,locale:n},t?"entryPattern":"entry",a),{limit:s,offset:u,keyword:c,sort:d,filter:f}=l,m=(await i.getEntries({limit:s,offset:u,pattern:t,skipDataResolution:!0,withTotalCount:!0,skipPatternResolution:!0,skipOverridesResolution:!0,state:Vj,search:c,filters:f?D2(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:n})).entries.map(h=>({id:h.entry._id,name:h.entry._name??"",contentType:h.entry.type,editUrl:o(h.entry._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:l},null,2)}]}}async function R2({id:t,isPattern:e,env:r}){let o=await new jj(r).getEntries({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,pattern:e,entryIDs:[t],state:Vj});if(o.entries.length===0)throw new Error(`Entry with ID ${t} not found`);return{content:[{type:"text",text:JSON.stringify(o.entries[0],null,2)}]}}var L1e={id:zj.string()};function Hj(t,e){t.tool("entryList","Lists available Uniform entries",ns.shape,async r=>await O2({...r,isPattern:!1,getEditUrl:n=>P2(n,e),env:e})),t.tool("entryGet","Gets the full contents of a Uniform entry",L1e,async r=>await R2({...r,isPattern:!1,env:e}))}import*as B2 from"zod/v3";function F2(t,e){return`${e.baseWebUrl}/dashboards/canvas/entry-patterns/${t}`}var _1e={action:B2.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:B2.string().uuid().describe("UUID of the entry pattern to create, update, delete, or duplicate"),instructions:CE.describe("Modification instructions for the entry pattern. Omit for delete and duplicate.").optional()};function Wj(t,e){t.tool("entryPatternAction","Creates, updates, or deletes a Uniform Entry Pattern",_1e,async r=>await k2({...r,isPattern:!0,getEditUrl:n=>F2(n,e),patternId:void 0,env:e}))}import*as Gj from"zod/v3";var M1e={id:Gj.string()};function Uj(t,e){t.tool("entryPatternList","Lists available Uniform entry patterns",ns.shape,async r=>await O2({...r,isPattern:!0,getEditUrl:n=>F2(n,e),env:e})),t.tool("entryPatternGet","Gets the full contents of a Uniform entry pattern",M1e,async r=>await R2({...r,isPattern:!0,env:e}))}import{ProjectClient as N1e}from"@uniformdev/canvas";async function k1e(t){let e=await fetch(`${t.apiHost}/api/v1/member-profile`,{headers:{"x-api-key":t.apiKey,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch user profile: ${e.status} ${e.statusText}`);return(await e.json()).name}function Zj(t,e){t.tool("getUniformEnvironment","Get the connected Uniform Project name, edit URL, and current user",{},async()=>{try{let r=new N1e(e),[n,o]=await Promise.all([r.get({projectId:e.projectId}),k1e(e)]),a={projectName:n.name,teamName:n.teamName,projectUrl:e.baseWebUrl,currentIdentity:o};return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}}catch(r){return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch project information",details:r instanceof Error?r.message:"Unknown error"},null,2)}]}}})}import{LocaleClient as P1e}from"@uniformdev/canvas";function Yj(t,e){t.tool("localeList","Lists all registered Uniform locales",async()=>{let n=await new P1e(e).get();return{content:[{type:"text",text:JSON.stringify({locales:n.results,editUrl:`${e.baseWebUrl}/settings/localization`},null,2)}]}})}import*as j2 from"zod/v3";function V2(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}var O1e={action:j2.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:j2.string().uuid().describe("UUID of the pattern instance to create, update, delete, or duplicate"),instructions:bE.describe("Modification instructions for the pattern. Omit for delete and duplicate.").optional()};function Kj(t,e){t.tool("patternAction","Creates, updates, or deletes a Uniform Component Pattern or Composition Pattern",O1e,async r=>await s2({...r,isPattern:!0,getEditUrl:n=>V2(n,e),patternId:void 0,env:e}))}import*as z2 from"zod/v3";var R1e={instanceType:z2.enum(["componentPattern","compositionPattern"]),...ns.shape},F1e={id:z2.string()};function Xj(t,e){t.tool("patternList","Lists available Uniform component patterns or composition patterns",R1e,async r=>await A2({...r,getEditUrl:n=>V2(n,e),env:e})),t.tool("patternGet","Gets the full contents of a Uniform component pattern or composition pattern",F1e,async r=>await L2({...r,env:e}))}import{ProjectMapClient as B1e}from"@uniformdev/project-map";import*as Jj from"zod/v3";var V1e={query:Jj.string().describe("Keyword to search for in node names and paths.")};function qj(t,e){t.tool("projectMapNodeSearch","Search for project map nodes by keyword. Use this to find the appropriate parent node when you need to create a composition attached to a specific location in the project map hierarchy.",V1e,async({query:r})=>{let n=new B1e({apiKey:e.apiKey,apiHost:e.apiHost,projectId:e.projectId}),a=(await n.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!a)throw new Error("No project map found for this project");let l=(await n.getNodes({search:r,includeAncestors:!1,expanded:!0,depth:1,projectMapId:a})).nodes?.map(s=>({id:s.id,name:s.name,path:s.path}))??[];return{content:[{type:"text",text:JSON.stringify({matches:l},null,2)}]}})}function snt(t,e){lE(t,e),mE(t,e),vE(t,e),kj(t,e),Rj(t,e),Bj(t,e),Hj(t,e),Uj(t,e),Wj(t,e),Xj(t,e),Kj(t,e),vV(t,e),Lj(t,e),Fj(t,e),Zj(t,e),Yj(t,e),qj(t,e)}export{snt as configureServer};
|
|
5792
|
+
You can filter by date, number, or string properties on the definition, as well as name, created, modified, author, slug, enabled locales, type, and publish status.`),username:rr.string().describe("The username of the current user. If you do not know the username, use an empty string"),locale:rr.string().describe("The current locale. If there is no current locale, use an empty string")}),xQe={displayName:"Create filter expression",description:"Creates a Uniform search filter expression for searching entries, patterns, or compositions from a user prompt. Meant to be a callable tool only.",inputSchema:ns.extend({entityType:rr.enum(["composition","entry","componentPattern","compositionPattern","entryPattern"]).describe("The entity type we are creating a filter for")}),outputSchema:Khe,runsAt:"server",timeout:10,callable:!0};import*as Aj from"zod/v3";var os=class extends Error{},c2=class extends os{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},d2=class extends os{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},f2=class extends os{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},ya=class extends os{},bf=class extends os{constructor(e){super(`Invalid unit ${e}`)}},Nr=class extends os{},xa=class extends os{constructor(){super("Zone is an abstract class")}};var Ee="numeric",Ca="short",To="long",gl={year:Ee,month:Ee,day:Ee},nh={year:Ee,month:Ca,day:Ee},wS={year:Ee,month:Ca,day:Ee,weekday:Ca},oh={year:Ee,month:To,day:Ee},ah={year:Ee,month:To,day:Ee,weekday:To},ih={hour:Ee,minute:Ee},sh={hour:Ee,minute:Ee,second:Ee},lh={hour:Ee,minute:Ee,second:Ee,timeZoneName:Ca},uh={hour:Ee,minute:Ee,second:Ee,timeZoneName:To},ch={hour:Ee,minute:Ee,hourCycle:"h23"},dh={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23"},fh={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23",timeZoneName:Ca},ph={hour:Ee,minute:Ee,second:Ee,hourCycle:"h23",timeZoneName:To},mh={year:Ee,month:Ee,day:Ee,hour:Ee,minute:Ee},gh={year:Ee,month:Ee,day:Ee,hour:Ee,minute:Ee,second:Ee},hh={year:Ee,month:Ca,day:Ee,hour:Ee,minute:Ee},vh={year:Ee,month:Ca,day:Ee,hour:Ee,minute:Ee,second:Ee},SS={year:Ee,month:Ca,day:Ee,weekday:Ca,hour:Ee,minute:Ee},bh={year:Ee,month:To,day:Ee,hour:Ee,minute:Ee,timeZoneName:Ca},yh={year:Ee,month:To,day:Ee,hour:Ee,minute:Ee,second:Ee,timeZoneName:Ca},xh={year:Ee,month:To,day:Ee,weekday:To,hour:Ee,minute:Ee,timeZoneName:To},Ch={year:Ee,month:To,day:Ee,weekday:To,hour:Ee,minute:Ee,second:Ee,timeZoneName:To};var no=class{get type(){throw new xa}get name(){throw new xa}get ianaName(){return this.name}get isUniversal(){throw new xa}offsetName(e,r){throw new xa}formatOffset(e,r){throw new xa}offset(e){throw new xa}equals(e){throw new xa}get isValid(){throw new xa}};var ES=null,hl=class t extends no{static get instance(){return ES===null&&(ES=new t),ES}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return m2(e,r,n)}formatOffset(e,r){return vl(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var h2={};function Xhe(t){return h2[t]||(h2[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),h2[t]}var Jhe={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function qhe(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,o,a,i,l,s,u,c]=n;return[i,o,a,l,s,u,c]}function Qhe(t,e){let r=t.formatToParts(e),n=[];for(let o=0;o<r.length;o++){let{type:a,value:i}=r[o],l=Jhe[a];a==="era"?n[l]=i:ke(l)||(n[l]=parseInt(i,10))}return n}var g2={},hn=class t extends no{static create(e){return g2[e]||(g2[e]=new t(e)),g2[e]}static resetCache(){g2={},h2={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return m2(e,r,n,this.name)}formatOffset(e,r){return vl(this.offset(e),r)}offset(e){let r=new Date(e);if(isNaN(r))return NaN;let n=Xhe(this.name),[o,a,i,l,s,u,c]=n.formatToParts?Qhe(n,r):qhe(n,r);l==="BC"&&(o=-Math.abs(o)+1);let f=yf({year:o,month:a,day:i,hour:s===24?0:s,minute:u,second:c,millisecond:0}),p=+r,m=p%1e3;return p-=m>=0?m:1e3+m,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var bV={};function e0e(t,e={}){let r=JSON.stringify([t,e]),n=bV[r];return n||(n=new Intl.ListFormat(t,e),bV[r]=n),n}var $S={};function TS(t,e={}){let r=JSON.stringify([t,e]),n=$S[r];return n||(n=new Intl.DateTimeFormat(t,e),$S[r]=n),n}var IS={};function t0e(t,e={}){let r=JSON.stringify([t,e]),n=IS[r];return n||(n=new Intl.NumberFormat(t,e),IS[r]=n),n}var DS={};function r0e(t,e={}){let{base:r,...n}=e,o=JSON.stringify([t,n]),a=DS[o];return a||(a=new Intl.RelativeTimeFormat(t,e),DS[o]=a),a}var wh=null;function n0e(){return wh||(wh=new Intl.DateTimeFormat().resolvedOptions().locale,wh)}var yV={};function o0e(t){let e=yV[t];if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,yV[t]=e}return e}function a0e(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,o;try{n=TS(t).resolvedOptions(),o=t}catch{let s=t.substring(0,r);n=TS(s).resolvedOptions(),o=s}let{numberingSystem:a,calendar:i}=n;return[o,a,i]}}function i0e(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function s0e(t){let e=[];for(let r=1;r<=12;r++){let n=dt.utc(2009,r,1);e.push(t(n))}return e}function l0e(t){let e=[];for(let r=1;r<=7;r++){let n=dt.utc(2016,11,13+r);e.push(t(n))}return e}function v2(t,e,r,n){let o=t.listingMode();return o==="error"?null:o==="en"?r(e):n(e)}function u0e(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}var AS=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:o,floor:a,...i}=n;if(!r||Object.keys(i).length>0){let l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=t0e(e,l)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):xf(e,3);return dr(r,this.padTo)}}},LS=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let o;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let i=-1*(e.offset/60),l=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;e.offset!==0&&hn.create(l).valid?(o=l,this.dt=e):(o="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,o=e.zone.name):(o="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let a={...this.opts};a.timeZone=a.timeZone||o,this.dtf=TS(r,a)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},_S=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&b2()&&(this.rtf=r0e(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):xV(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},c0e={firstDay:1,minimalDays:4,weekend:[6,7]},At=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,o,a=!1){let i=e||St.defaultLocale,l=i||(a?"en-US":n0e()),s=r||St.defaultNumberingSystem,u=n||St.defaultOutputCalendar,c=Sh(o)||St.defaultWeekSettings;return new t(l,s,u,c,i)}static resetCache(){wh=null,$S={},IS={},DS={}}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:o}={}){return t.create(e,r,n,o)}constructor(e,r,n,o,a){let[i,l,s]=a0e(e);this.locale=i,this.numberingSystem=r||l||null,this.outputCalendar=n||s||null,this.weekSettings=o,this.intl=i0e(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=u0e(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Sh(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return v2(this,e,MS,()=>{let n=r?{month:e,day:"numeric"}:{month:e},o=r?"format":"standalone";return this.monthsCache[o][e]||(this.monthsCache[o][e]=s0e(a=>this.extract(a,n,"month"))),this.monthsCache[o][e]})}weekdays(e,r=!1){return v2(this,e,NS,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},o=r?"format":"standalone";return this.weekdaysCache[o][e]||(this.weekdaysCache[o][e]=l0e(a=>this.extract(a,n,"weekday"))),this.weekdaysCache[o][e]})}meridiems(){return v2(this,void 0,()=>kS,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dt.utc(2016,11,13,9),dt.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return v2(this,e,PS,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[dt.utc(-40,1,1),dt.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let o=this.dtFormatter(e,r),a=o.formatToParts(),i=a.find(l=>l.type.toLowerCase()===n);return i?i.value:null}numberFormatter(e={}){return new AS(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new LS(e,this.intl,r)}relFormatter(e={}){return new _S(this.intl,this.isEnglish(),e)}listFormatter(e={}){return e0e(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:y2()?o0e(this.locale):c0e}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}};var RS=null,tn=class t extends no{static get utcInstance(){return RS===null&&(RS=new t(0)),RS}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(ic(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${vl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${vl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return vl(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var Cf=class extends no{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function wa(t,e){let r;if(ke(t)||t===null)return e;if(t instanceof no)return t;if(CV(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?hl.instance:n==="utc"||n==="gmt"?tn.utcInstance:tn.parseSpecifier(n)||hn.create(t)}else return si(t)?tn.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new Cf(t)}var wV=()=>Date.now(),SV="system",EV=null,$V=null,TV=null,IV=60,DV,AV=null,St=class{static get now(){return wV}static set now(e){wV=e}static set defaultZone(e){SV=e}static get defaultZone(){return wa(SV,hl.instance)}static get defaultLocale(){return EV}static set defaultLocale(e){EV=e}static get defaultNumberingSystem(){return $V}static set defaultNumberingSystem(e){$V=e}static get defaultOutputCalendar(){return TV}static set defaultOutputCalendar(e){TV=e}static get defaultWeekSettings(){return AV}static set defaultWeekSettings(e){AV=Sh(e)}static get twoDigitCutoffYear(){return IV}static set twoDigitCutoffYear(e){IV=e%100}static get throwOnInvalid(){return DV}static set throwOnInvalid(e){DV=e}static resetCaches(){At.resetCache(),hn.resetCache()}};var rn=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var LV=[0,31,59,90,120,151,181,212,243,273,304,334],_V=[0,31,60,91,121,152,182,213,244,274,305,335];function Ko(t,e){return new rn("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function x2(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let o=n.getUTCDay();return o===0?7:o}function MV(t,e,r){return r+(lc(t)?_V:LV)[e-1]}function NV(t,e){let r=lc(t)?_V:LV,n=r.findIndex(a=>a<e),o=e-r[n];return{month:n+1,day:o}}function C2(t,e){return(t-e+7)%7+1}function Eh(t,e=4,r=1){let{year:n,month:o,day:a}=t,i=MV(n,o,a),l=C2(x2(n,o,a),r),s=Math.floor((i-l+14-e)/7),u;return s<1?(u=n-1,s=sc(u,e,r)):s>sc(n,e,r)?(u=n+1,s=1):u=n,{weekYear:u,weekNumber:s,weekday:l,...Th(t)}}function FS(t,e=4,r=1){let{weekYear:n,weekNumber:o,weekday:a}=t,i=C2(x2(n,1,e),r),l=bl(n),s=o*7+a-i-7+e,u;s<1?(u=n-1,s+=bl(u)):s>l?(u=n+1,s-=bl(n)):u=n;let{month:c,day:d}=NV(u,s);return{year:u,month:c,day:d,...Th(t)}}function w2(t){let{year:e,month:r,day:n}=t,o=MV(e,r,n);return{year:e,ordinal:o,...Th(t)}}function BS(t){let{year:e,ordinal:r}=t,{month:n,day:o}=NV(e,r);return{year:e,month:n,day:o,...Th(t)}}function VS(t,e){if(!ke(t.localWeekday)||!ke(t.localWeekNumber)||!ke(t.localWeekYear)){if(!ke(t.weekday)||!ke(t.weekNumber)||!ke(t.weekYear))throw new ya("Cannot mix locale-based week fields with ISO-based week fields");return ke(t.localWeekday)||(t.weekday=t.localWeekday),ke(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),ke(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function kV(t,e=4,r=1){let n=$h(t.weekYear),o=Io(t.weekNumber,1,sc(t.weekYear,e,r)),a=Io(t.weekday,1,7);return n?o?a?!1:Ko("weekday",t.weekday):Ko("week",t.weekNumber):Ko("weekYear",t.weekYear)}function PV(t){let e=$h(t.year),r=Io(t.ordinal,1,bl(t.year));return e?r?!1:Ko("ordinal",t.ordinal):Ko("year",t.year)}function jS(t){let e=$h(t.year),r=Io(t.month,1,12),n=Io(t.day,1,wf(t.year,t.month));return e?r?n?!1:Ko("day",t.day):Ko("month",t.month):Ko("year",t.year)}function zS(t){let{hour:e,minute:r,second:n,millisecond:o}=t,a=Io(e,0,23)||e===24&&r===0&&n===0&&o===0,i=Io(r,0,59),l=Io(n,0,59),s=Io(o,0,999);return a?i?l?s?!1:Ko("millisecond",o):Ko("second",n):Ko("minute",r):Ko("hour",e)}function ke(t){return typeof t>"u"}function si(t){return typeof t=="number"}function $h(t){return typeof t=="number"&&t%1===0}function CV(t){return typeof t=="string"}function RV(t){return Object.prototype.toString.call(t)==="[object Date]"}function b2(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function y2(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function FV(t){return Array.isArray(t)?t:[t]}function HS(t,e,r){if(t.length!==0)return t.reduce((n,o)=>{let a=[e(o),o];return n&&r(n[0],a[0])===n[0]?n:a},null)[1]}function BV(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function yl(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Sh(t){if(t==null)return null;if(typeof t!="object")throw new Nr("Week settings must be an object");if(!Io(t.firstDay,1,7)||!Io(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Io(e,1,7)))throw new Nr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Io(t,e,r){return $h(t)&&t>=e&&t<=r}function d0e(t,e){return t-e*Math.floor(t/e)}function dr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function as(t){if(!(ke(t)||t===null||t===""))return parseInt(t,10)}function xl(t){if(!(ke(t)||t===null||t===""))return parseFloat(t)}function Ih(t){if(!(ke(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function xf(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function lc(t){return t%4===0&&(t%100!==0||t%400===0)}function bl(t){return lc(t)?366:365}function wf(t,e){let r=d0e(e-1,12)+1,n=t+(e-r)/12;return r===2?lc(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function yf(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function OV(t,e,r){return-C2(x2(t,1,e),r)+e-1}function sc(t,e=4,r=1){let n=OV(t,e,r),o=OV(t+1,e,r);return(bl(t)-n+o)/7}function Dh(t){return t>99?t:t>St.twoDigitCutoffYear?1900+t:2e3+t}function m2(t,e,r,n=null){let o=new Date(t),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);let i={timeZoneName:e,...a},l=new Intl.DateTimeFormat(r,i).formatToParts(o).find(s=>s.type.toLowerCase()==="timezonename");return l?l.value:null}function ic(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,o=r<0||Object.is(r,-0)?-n:n;return r*60+o}function WS(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new Nr(`Invalid unit value ${t}`);return e}function Sf(t,e){let r={};for(let n in t)if(yl(t,n)){let o=t[n];if(o==null)continue;r[e(n)]=WS(o)}return r}function vl(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${dr(r,2)}:${dr(n,2)}`;case"narrow":return`${o}${r}${n>0?`:${n}`:""}`;case"techie":return`${o}${dr(r,2)}${dr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Th(t){return BV(t,["hour","minute","second","millisecond"])}var f0e=["January","February","March","April","May","June","July","August","September","October","November","December"],GS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],p0e=["J","F","M","A","M","J","J","A","S","O","N","D"];function MS(t){switch(t){case"narrow":return[...p0e];case"short":return[...GS];case"long":return[...f0e];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var US=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ZS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],m0e=["M","T","W","T","F","S","S"];function NS(t){switch(t){case"narrow":return[...m0e];case"short":return[...ZS];case"long":return[...US];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var kS=["AM","PM"],g0e=["Before Christ","Anno Domini"],h0e=["BC","AD"],v0e=["B","A"];function PS(t){switch(t){case"narrow":return[...v0e];case"short":return[...h0e];case"long":return[...g0e];default:return null}}function VV(t){return kS[t.hour<12?0:1]}function jV(t,e){return NS(e)[t.weekday-1]}function zV(t,e){return MS(e)[t.month-1]}function HV(t,e){return PS(e)[t.year<0?0:1]}function xV(t,e,r="always",n=!1){let o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&a){let d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${o[t][0]}`;case-1:return d?"yesterday":`last ${o[t][0]}`;case 0:return d?"today":`this ${o[t][0]}`;default:}}let i=Object.is(e,-0)||e<0,l=Math.abs(e),s=l===1,u=o[t],c=n?s?u[1]:u[2]||u[1]:s?o[t][0]:t;return i?`${l} ${c} ago`:`in ${l} ${c}`}function WV(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var b0e={D:gl,DD:nh,DDD:oh,DDDD:ah,t:ih,tt:sh,ttt:lh,tttt:uh,T:ch,TT:dh,TTT:fh,TTTT:ph,f:mh,ff:hh,fff:bh,ffff:xh,F:gh,FF:vh,FFF:yh,FFFF:Ch},nn=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",o=!1,a=[];for(let i=0;i<e.length;i++){let l=e.charAt(i);l==="'"?(n.length>0&&a.push({literal:o||/^\s+$/.test(n),val:n}),r=null,n="",o=!o):o||l===r?n+=l:(n.length>0&&a.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&a.push({literal:o||/^\s+$/.test(n),val:n}),a}static macroTokenToFormatOpts(e){return b0e[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return dr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",o=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(p,m)=>this.loc.extract(e,p,m),i=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",l=()=>n?VV(e):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(p,m)=>n?zV(e,p):a(m?{month:p}:{month:p,day:"numeric"},"month"),u=(p,m)=>n?jV(e,p):a(m?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),c=p=>{let m=t.macroTokenToFormatOpts(p);return m?this.formatWithSystemDefault(e,m):p},d=p=>n?HV(e,p):a({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return l();case"d":return o?a({day:"numeric"},"day"):this.num(e.day);case"dd":return o?a({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return o?a({month:"numeric"},"month"):this.num(e.month);case"MM":return o?a({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return o?a({year:"numeric"},"year"):this.num(e.year);case"yy":return o?a({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return c(p)}};return WV(t.parseFormat(r),f)}formatDurationFromString(e,r){let n=s=>{switch(s[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=s=>u=>{let c=n(u);return c?this.num(s.get(c),u.length):u},a=t.parseFormat(r),i=a.reduce((s,{literal:u,val:c})=>u?s:s.concat(c),[]),l=e.shiftTo(...i.map(n).filter(s=>s));return WV(a,o(l))}};var UV=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function $f(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function Tf(...t){return e=>t.reduce(([r,n,o],a)=>{let[i,l,s]=a(e,o);return[{...r,...i},l||n,s]},[{},null,1]).slice(0,2)}function If(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let o=r.exec(t);if(o)return n(o)}return[null,null]}function ZV(...t){return(e,r)=>{let n={},o;for(o=0;o<t.length;o++)n[t[o]]=as(e[r+o]);return[n,null,r+o]}}var YV=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,y0e=`(?:${YV.source}?(?:\\[(${UV.source})\\])?)?`,YS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,KV=RegExp(`${YS.source}${y0e}`),KS=RegExp(`(?:T${KV.source})?`),x0e=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,C0e=/(\d{4})-?W(\d\d)(?:-?(\d))?/,w0e=/(\d{4})-?(\d{3})/,S0e=ZV("weekYear","weekNumber","weekDay"),E0e=ZV("year","ordinal"),$0e=/(\d{4})-(\d\d)-(\d\d)/,XV=RegExp(`${YS.source} ?(?:${YV.source}|(${UV.source}))?`),T0e=RegExp(`(?: ${XV.source})?`);function Ef(t,e,r){let n=t[e];return ke(n)?r:as(n)}function I0e(t,e){return[{year:Ef(t,e),month:Ef(t,e+1,1),day:Ef(t,e+2,1)},null,e+3]}function Df(t,e){return[{hours:Ef(t,e,0),minutes:Ef(t,e+1,0),seconds:Ef(t,e+2,0),milliseconds:Ih(t[e+3])},null,e+4]}function Ah(t,e){let r=!t[e]&&!t[e+1],n=ic(t[e+1],t[e+2]),o=r?null:tn.instance(n);return[{},o,e+3]}function Lh(t,e){let r=t[e]?hn.create(t[e]):null;return[{},r,e+1]}var D0e=RegExp(`^T?${YS.source}$`),A0e=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function L0e(t){let[e,r,n,o,a,i,l,s,u]=t,c=e[0]==="-",d=s&&s[0]==="-",f=(p,m=!1)=>p!==void 0&&(m||p&&c)?-p:p;return[{years:f(xl(r)),months:f(xl(n)),weeks:f(xl(o)),days:f(xl(a)),hours:f(xl(i)),minutes:f(xl(l)),seconds:f(xl(s),s==="-0"),milliseconds:f(Ih(u),d)}]}var _0e={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function XS(t,e,r,n,o,a,i){let l={year:e.length===2?Dh(as(e)):as(e),month:GS.indexOf(r)+1,day:as(n),hour:as(o),minute:as(a)};return i&&(l.second=as(i)),t&&(l.weekday=t.length>3?US.indexOf(t)+1:ZS.indexOf(t)+1),l}var M0e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function N0e(t){let[,e,r,n,o,a,i,l,s,u,c,d]=t,f=XS(e,o,n,r,a,i,l),p;return s?p=_0e[s]:u?p=0:p=ic(c,d),[f,new tn(p)]}function k0e(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var P0e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,O0e=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,R0e=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function GV(t){let[,e,r,n,o,a,i,l]=t;return[XS(e,o,n,r,a,i,l),tn.utcInstance]}function F0e(t){let[,e,r,n,o,a,i,l]=t;return[XS(e,l,r,n,o,a,i),tn.utcInstance]}var B0e=$f(x0e,KS),V0e=$f(C0e,KS),j0e=$f(w0e,KS),z0e=$f(KV),JV=Tf(I0e,Df,Ah,Lh),H0e=Tf(S0e,Df,Ah,Lh),W0e=Tf(E0e,Df,Ah,Lh),G0e=Tf(Df,Ah,Lh);function qV(t){return If(t,[B0e,JV],[V0e,H0e],[j0e,W0e],[z0e,G0e])}function QV(t){return If(k0e(t),[M0e,N0e])}function ej(t){return If(t,[P0e,GV],[O0e,GV],[R0e,F0e])}function tj(t){return If(t,[A0e,L0e])}var U0e=Tf(Df);function rj(t){return If(t,[D0e,U0e])}var Z0e=$f($0e,T0e),Y0e=$f(XV),K0e=Tf(Df,Ah,Lh);function nj(t){return If(t,[Z0e,JV],[Y0e,K0e])}var oj="Invalid Duration",ij={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},X0e={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ij},Xo=146097/400,Af=146097/4800,J0e={years:{quarters:4,months:12,weeks:Xo/7,days:Xo,hours:Xo*24,minutes:Xo*24*60,seconds:Xo*24*60*60,milliseconds:Xo*24*60*60*1e3},quarters:{months:3,weeks:Xo/28,days:Xo/4,hours:Xo*24/4,minutes:Xo*24*60/4,seconds:Xo*24*60*60/4,milliseconds:Xo*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...ij},uc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],q0e=uc.slice(0).reverse();function Cl(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new fr(n)}function sj(t,e){let r=e.milliseconds??0;for(let n of q0e.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function aj(t,e){let r=sj(t,e)<0?-1:1;uc.reduceRight((n,o)=>{if(ke(e[o]))return n;if(n){let a=e[n]*r,i=t[o][n],l=Math.floor(a/i);e[o]+=l*r,e[n]-=l*i*r}return o},null),uc.reduce((n,o)=>{if(ke(e[o]))return n;if(n){let a=e[n]%1;e[n]-=a,e[o]+=a*t[n][o]}return o},null)}function Q0e(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var fr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?J0e:X0e;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||At.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Nr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Sf(e,t.normalizeUnit),loc:At.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(si(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Nr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=tj(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=rj(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the Duration is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new f2(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new bf(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?nn.create(this.loc,n).formatDurationFromString(this,e):oj}toHuman(e={}){if(!this.isValid)return oj;let r=uc.map(n=>{let o=this.values[n];return ke(o)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(o)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=xf(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},dt.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?sj(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let o of uc)(yl(r.values,o)||yl(this.values,o))&&(n[o]=r.get(o)+this.get(o));return Cl(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=WS(e(this.values[n],n));return Cl(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Sf(e,t.normalizeUnit)};return Cl(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:o}={}){let i={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:o,conversionAccuracy:n};return Cl(this,i)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return aj(this.matrix,e),Cl(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=Q0e(this.normalize().shiftToAll().toObject());return Cl(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(i=>t.normalizeUnit(i));let r={},n={},o=this.toObject(),a;for(let i of uc)if(e.indexOf(i)>=0){a=i;let l=0;for(let u in n)l+=this.matrix[u][i]*n[u],n[u]=0;si(o[i])&&(l+=o[i]);let s=Math.trunc(l);r[i]=s,n[i]=(l*1e3-s*1e3)/1e3}else si(o[i])&&(n[i]=o[i]);for(let i in n)n[i]!==0&&(r[a]+=i===a?n[i]:n[i]/this.matrix[a][i]);return aj(this.matrix,r),Cl(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Cl(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,o){return n===void 0||n===0?o===void 0||o===0:n===o}for(let n of uc)if(!r(this.values[n],e.values[n]))return!1;return!0}};var Lf="Invalid Interval";function e1e(t,e){return!t||!t.isValid?is.invalid("missing or invalid start"):!e||!e.isValid?is.invalid("missing or invalid end"):e<t?is.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var is=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the Interval is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new d2(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=_f(e),o=_f(r),a=e1e(n,o);return a??new t({start:n,end:o})}static after(e,r){let n=fr.fromDurationLike(r),o=_f(e);return t.fromDateTimes(o,o.plus(n))}static before(e,r){let n=fr.fromDurationLike(r),o=_f(e);return t.fromDateTimes(o.minus(n),o)}static fromISO(e,r){let[n,o]=(e||"").split("/",2);if(n&&o){let a,i;try{a=dt.fromISO(n,r),i=a.isValid}catch{i=!1}let l,s;try{l=dt.fromISO(o,r),s=l.isValid}catch{s=!1}if(i&&s)return t.fromDateTimes(a,l);if(i){let u=fr.fromISO(o,r);if(u.isValid)return t.after(a,u)}else if(s){let u=fr.fromISO(n,r);if(u.isValid)return t.before(l,u)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),o;return r?.useLocaleWeeks?o=this.end.reconfigure({locale:n.locale}):o=this.end,o=o.startOf(e,r),Math.floor(o.diff(n,e).get(e))+(o.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(_f).filter(i=>this.contains(i)).sort((i,l)=>i.toMillis()-l.toMillis()),n=[],{s:o}=this,a=0;for(;o<this.e;){let i=r[a]||this.e,l=+i>+this.e?this.e:i;n.push(t.fromDateTimes(o,l)),o=l,a+=1}return n}splitBy(e){let r=fr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,o=1,a,i=[];for(;n<this.e;){let l=this.start.plus(r.mapUnits(s=>s*o));a=+l>+this.e?this.e:l,i.push(t.fromDateTimes(n,a)),n=a,o+=1}return i}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((o,a)=>o.s-a.s).reduce(([o,a],i)=>a?a.overlaps(i)||a.abutsStart(i)?[o,a.union(i)]:[o.concat([a]),i]:[o,i],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,o=[],a=e.map(s=>[{time:s.s,type:"s"},{time:s.e,type:"e"}]),i=Array.prototype.concat(...a),l=i.sort((s,u)=>s.time-u.time);for(let s of l)n+=s.type==="s"?1:-1,n===1?r=s.time:(r&&+r!=+s.time&&o.push(t.fromDateTimes(r,s.time)),r=null);return t.merge(o)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Lf}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=gl,r={}){return this.isValid?nn.create(this.s.loc.clone(r),e).formatInterval(this):Lf}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Lf}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lf}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Lf}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:Lf}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):fr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}};var ss=class{static hasDST(e=St.defaultZone){let r=dt.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return hn.isValidZone(e)}static normalizeZone(e){return wa(e,St.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||At.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||At.create(r,n,a)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null,outputCalendar:a="gregory"}={}){return(o||At.create(r,n,a)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||At.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:o=null}={}){return(o||At.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return At.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return At.create(r,null,"gregory").eras(e)}static features(){return{relative:b2(),localeWeek:y2()}}};function lj(t,e){let r=o=>o.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(fr.fromMillis(n).as("days"))}function t1e(t,e,r){let n=[["years",(s,u)=>u.year-s.year],["quarters",(s,u)=>u.quarter-s.quarter+(u.year-s.year)*4],["months",(s,u)=>u.month-s.month+(u.year-s.year)*12],["weeks",(s,u)=>{let c=lj(s,u);return(c-c%7)/7}],["days",lj]],o={},a=t,i,l;for(let[s,u]of n)r.indexOf(s)>=0&&(i=s,o[s]=u(t,e),l=a.plus(o),l>e?(o[s]--,t=a.plus(o),t>e&&(l=t,o[s]--,t=a.plus(o))):t=l);return[t,o,l,i]}function uj(t,e,r,n){let[o,a,i,l]=t1e(t,e,r),s=e-o,u=r.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(i<e&&(i=o.plus({[l]:1})),i!==o&&(a[l]=(a[l]||0)+s/(i-o)));let c=fr.fromObject(a,n);return u.length>0?fr.fromMillis(s,n).shiftTo(...u).plus(c):c}var JS={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},cj={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},r1e=JS.hanidec.replace(/[\[|\]]/g,"").split("");function dj(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(JS.hanidec)!==-1)e+=r1e.indexOf(t[r]);else for(let o in cj){let[a,i]=cj[o];n>=a&&n<=i&&(e+=n-a)}}return parseInt(e,10)}else return e}function Jo({numberingSystem:t},e=""){return new RegExp(`${JS[t||"latn"]}${e}`)}var n1e="missing Intl.DateTimeFormat.formatToParts support";function Et(t,e=r=>r){return{regex:t,deser:([r])=>e(dj(r))}}var o1e="\xA0",mj=`[ ${o1e}]`,gj=new RegExp(mj,"g");function a1e(t){return t.replace(/\./g,"\\.?").replace(gj,mj)}function fj(t){return t.replace(/\./g,"").replace(gj," ").toLowerCase()}function Sa(t,e){return t===null?null:{regex:RegExp(t.map(a1e).join("|")),deser:([r])=>t.findIndex(n=>fj(r)===fj(n))+e}}function pj(t,e){return{regex:t,deser:([,r,n])=>ic(r,n),groups:e}}function S2(t){return{regex:t,deser:([e])=>e}}function i1e(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function s1e(t,e){let r=Jo(e),n=Jo(e,"{2}"),o=Jo(e,"{3}"),a=Jo(e,"{4}"),i=Jo(e,"{6}"),l=Jo(e,"{1,2}"),s=Jo(e,"{1,3}"),u=Jo(e,"{1,6}"),c=Jo(e,"{1,9}"),d=Jo(e,"{2,4}"),f=Jo(e,"{4,6}"),p=g=>({regex:RegExp(i1e(g.val)),deser:([v])=>v,literal:!0}),h=(g=>{if(t.literal)return p(g);switch(g.val){case"G":return Sa(e.eras("short"),0);case"GG":return Sa(e.eras("long"),0);case"y":return Et(u);case"yy":return Et(d,Dh);case"yyyy":return Et(a);case"yyyyy":return Et(f);case"yyyyyy":return Et(i);case"M":return Et(l);case"MM":return Et(n);case"MMM":return Sa(e.months("short",!0),1);case"MMMM":return Sa(e.months("long",!0),1);case"L":return Et(l);case"LL":return Et(n);case"LLL":return Sa(e.months("short",!1),1);case"LLLL":return Sa(e.months("long",!1),1);case"d":return Et(l);case"dd":return Et(n);case"o":return Et(s);case"ooo":return Et(o);case"HH":return Et(n);case"H":return Et(l);case"hh":return Et(n);case"h":return Et(l);case"mm":return Et(n);case"m":return Et(l);case"q":return Et(l);case"qq":return Et(n);case"s":return Et(l);case"ss":return Et(n);case"S":return Et(s);case"SSS":return Et(o);case"u":return S2(c);case"uu":return S2(l);case"uuu":return Et(r);case"a":return Sa(e.meridiems(),0);case"kkkk":return Et(a);case"kk":return Et(d,Dh);case"W":return Et(l);case"WW":return Et(n);case"E":case"c":return Et(r);case"EEE":return Sa(e.weekdays("short",!1),1);case"EEEE":return Sa(e.weekdays("long",!1),1);case"ccc":return Sa(e.weekdays("short",!0),1);case"cccc":return Sa(e.weekdays("long",!0),1);case"Z":case"ZZ":return pj(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return pj(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return S2(/[a-z_+-/]{1,256}?/i);case" ":return S2(/[^\S\n\r]/);default:return p(g)}})(t)||{invalidReason:n1e};return h.token=t,h}var l1e={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function u1e(t,e,r){let{type:n,value:o}=t;if(n==="literal"){let s=/^\s+$/.test(o);return{literal:!s,val:s?" ":o}}let a=e[n],i=n;n==="hour"&&(e.hour12!=null?i=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?i="hour12":i="hour24":i=r.hour12?"hour12":"hour24");let l=l1e[i];if(typeof l=="object"&&(l=l[a]),l)return{literal:!1,val:l}}function c1e(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function d1e(t,e,r){let n=t.match(e);if(n){let o={},a=1;for(let i in r)if(yl(r,i)){let l=r[i],s=l.groups?l.groups+1:1;!l.literal&&l.token&&(o[l.token.val[0]]=l.deser(n.slice(a,a+s))),a+=s}return[n,o]}else return[n,{}]}function f1e(t){let e=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return ke(t.z)||(r=hn.create(t.z)),ke(t.Z)||(r||(r=new tn(t.Z)),n=t.Z),ke(t.q)||(t.M=(t.q-1)*3+1),ke(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),ke(t.u)||(t.S=Ih(t.u)),[Object.keys(t).reduce((a,i)=>{let l=e(i);return l&&(a[l]=t[i]),a},{}),r,n]}var qS=null;function p1e(){return qS||(qS=dt.fromMillis(1555555555555)),qS}function m1e(t,e){if(t.literal)return t;let r=nn.macroTokenToFormatOpts(t.val),n=tE(r,e);return n==null||n.includes(void 0)?t:n}function QS(t,e){return Array.prototype.concat(...t.map(r=>m1e(r,e)))}function eE(t,e,r){let n=QS(nn.parseFormat(r),t),o=n.map(i=>s1e(i,t)),a=o.find(i=>i.invalidReason);if(a)return{input:e,tokens:n,invalidReason:a.invalidReason};{let[i,l]=c1e(o),s=RegExp(i,"i"),[u,c]=d1e(e,s,l),[d,f,p]=c?f1e(c):[null,null,void 0];if(yl(c,"a")&&yl(c,"H"))throw new ya("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:s,rawMatches:u,matches:c,result:d,zone:f,specificOffset:p}}}function hj(t,e,r){let{result:n,zone:o,specificOffset:a,invalidReason:i}=eE(t,e,r);return[n,o,a,i]}function tE(t,e){if(!t)return null;let n=nn.create(e,t).dtFormatter(p1e()),o=n.formatToParts(),a=n.resolvedOptions();return o.map(i=>u1e(i,t,a))}var rE="Invalid DateTime",vj=864e13;function E2(t){return new rn("unsupported zone",`the zone "${t.name}" is not supported`)}function nE(t){return t.weekData===null&&(t.weekData=Eh(t.c)),t.weekData}function oE(t){return t.localWeekData===null&&(t.localWeekData=Eh(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function cc(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dt({...r,...e,old:r})}function Ej(t,e,r){let n=t-e*60*1e3,o=r.offset(n);if(e===o)return[n,e];n-=(o-e)*60*1e3;let a=r.offset(n);return o===a?[n,o]:[t-Math.min(o,a)*60*1e3,Math.max(o,a)]}function $2(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function I2(t,e,r){return Ej(yf(t),e,r)}function bj(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,a={...t.c,year:n,month:o,day:Math.min(t.c.day,wf(n,o))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},i=fr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),l=yf(a),[s,u]=Ej(l,r,t.zone);return i!==0&&(s+=i,u=t.zone.offset(s)),{ts:s,o:u}}function _h(t,e,r,n,o,a){let{setZone:i,zone:l}=r;if(t&&Object.keys(t).length!==0||e){let s=e||l,u=dt.fromObject(t,{...r,zone:s,specificOffset:a});return i?u:u.setZone(l)}else return dt.invalid(new rn("unparsable",`the input "${o}" can't be parsed as ${n}`))}function T2(t,e,r=!0){return t.isValid?nn.create(At.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function aE(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=dr(t.c.year,r?6:4),e?(n+="-",n+=dr(t.c.month),n+="-",n+=dr(t.c.day)):(n+=dr(t.c.month),n+=dr(t.c.day)),n}function yj(t,e,r,n,o,a){let i=dr(t.c.hour);return e?(i+=":",i+=dr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(i+=":")):i+=dr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(i+=dr(t.c.second),(t.c.millisecond!==0||!n)&&(i+=".",i+=dr(t.c.millisecond,3))),o&&(t.isOffsetFixed&&t.offset===0&&!a?i+="Z":t.o<0?(i+="-",i+=dr(Math.trunc(-t.o/60)),i+=":",i+=dr(Math.trunc(-t.o%60))):(i+="+",i+=dr(Math.trunc(t.o/60)),i+=":",i+=dr(Math.trunc(t.o%60)))),a&&(i+="["+t.zone.ianaName+"]"),i}var $j={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},g1e={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},h1e={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Tj=["year","month","day","hour","minute","second","millisecond"],v1e=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],b1e=["year","ordinal","hour","minute","second","millisecond"];function y1e(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new bf(t);return e}function xj(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return y1e(t)}}function Cj(t,e){let r=wa(e.zone,St.defaultZone),n=At.fromObject(e),o=St.now(),a,i;if(ke(t.year))a=o;else{for(let u of Tj)ke(t[u])&&(t[u]=$j[u]);let l=jS(t)||zS(t);if(l)return dt.invalid(l);let s=r.offset(o);[a,i]=I2(t,s,r)}return new dt({ts:a,zone:r,loc:n,o:i})}function wj(t,e,r){let n=ke(r.round)?!0:r.round,o=(i,l)=>(i=xf(i,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(i,l)),a=i=>r.calendary?e.hasSame(t,i)?0:e.startOf(i).diff(t.startOf(i),i).get(i):e.diff(t,i).get(i);if(r.unit)return o(a(r.unit),r.unit);for(let i of r.units){let l=a(i);if(Math.abs(l)>=1)return o(l,i)}return o(t>e?-0:0,r.units[r.units.length-1])}function Sj(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var dt=class t{constructor(e){let r=e.zone||St.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new rn("invalid input"):null)||(r.isValid?null:E2(r));this.ts=ke(e.ts)?St.now():e.ts;let o=null,a=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[o,a]=[e.old.c,e.old.o];else{let l=r.offset(this.ts);o=$2(this.ts,l),n=Number.isNaN(o.year)?new rn("invalid input"):null,o=n?null:o,a=n?null:l}this._zone=r,this.loc=e.loc||At.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=o,this.o=a,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=Sj(arguments),[n,o,a,i,l,s,u]=r;return Cj({year:n,month:o,day:a,hour:i,minute:l,second:s,millisecond:u},e)}static utc(){let[e,r]=Sj(arguments),[n,o,a,i,l,s,u]=r;return e.zone=tn.utcInstance,Cj({year:n,month:o,day:a,hour:i,minute:l,second:s,millisecond:u},e)}static fromJSDate(e,r={}){let n=RV(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let o=wa(r.zone,St.defaultZone);return o.isValid?new t({ts:n,zone:o,loc:At.fromObject(r)}):t.invalid(E2(o))}static fromMillis(e,r={}){if(si(e))return e<-vj||e>vj?t.invalid("Timestamp out of range"):new t({ts:e,zone:wa(r.zone,St.defaultZone),loc:At.fromObject(r)});throw new Nr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(si(e))return new t({ts:e*1e3,zone:wa(r.zone,St.defaultZone),loc:At.fromObject(r)});throw new Nr("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=wa(r.zone,St.defaultZone);if(!n.isValid)return t.invalid(E2(n));let o=At.fromObject(r),a=Sf(e,xj),{minDaysInFirstWeek:i,startOfWeek:l}=VS(a,o),s=St.now(),u=ke(r.specificOffset)?n.offset(s):r.specificOffset,c=!ke(a.ordinal),d=!ke(a.year),f=!ke(a.month)||!ke(a.day),p=d||f,m=a.weekYear||a.weekNumber;if((p||c)&&m)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&c)throw new ya("Can't mix ordinal dates with month/day");let h=m||a.weekday&&!p,g,v,y=$2(s,u);h?(g=v1e,v=g1e,y=Eh(y,i,l)):c?(g=b1e,v=h1e,y=w2(y)):(g=Tj,v=$j);let x=!1;for(let D of g){let L=a[D];ke(L)?x?a[D]=v[D]:a[D]=y[D]:x=!0}let C=h?kV(a,i,l):c?PV(a):jS(a),w=C||zS(a);if(w)return t.invalid(w);let S=h?FS(a,i,l):c?BS(a):a,[E,$]=I2(S,u,n),T=new t({ts:E,zone:n,o:$,loc:o});return a.weekday&&p&&e.weekday!==T.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,r={}){let[n,o]=qV(e);return _h(n,o,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,o]=QV(e);return _h(n,o,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,o]=ej(e);return _h(n,o,r,"HTTP",r)}static fromFormat(e,r,n={}){if(ke(e)||ke(r))throw new Nr("fromFormat requires an input string and a format");let{locale:o=null,numberingSystem:a=null}=n,i=At.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),[l,s,u,c]=hj(i,e,r);return c?t.invalid(c):_h(l,s,n,`format ${r}`,e,u)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,o]=nj(e);return _h(n,o,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Nr("need to specify a reason the DateTime is invalid");let n=e instanceof rn?e:new rn(e,r);if(St.throwOnInvalid)throw new c2(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=tE(e,At.fromObject(r));return n?n.map(o=>o?o.val:null).join(""):null}static expandFormat(e,r={}){return QS(nn.parseFormat(e),At.fromObject(r)).map(o=>o.val).join("")}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nE(this).weekYear:NaN}get weekNumber(){return this.isValid?nE(this).weekNumber:NaN}get weekday(){return this.isValid?nE(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?oE(this).weekday:NaN}get localWeekNumber(){return this.isValid?oE(this).weekNumber:NaN}get localWeekYear(){return this.isValid?oE(this).weekYear:NaN}get ordinal(){return this.isValid?w2(this.c).ordinal:NaN}get monthShort(){return this.isValid?ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ss.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=yf(this.c),o=this.zone.offset(n-e),a=this.zone.offset(n+e),i=this.zone.offset(n-o*r),l=this.zone.offset(n-a*r);if(i===l)return[this];let s=n-i*r,u=n-l*r,c=$2(s,i),d=$2(u,l);return c.hour===d.hour&&c.minute===d.minute&&c.second===d.second&&c.millisecond===d.millisecond?[cc(this,{ts:s}),cc(this,{ts:u})]:[this]}get isInLeapYear(){return lc(this.year)}get daysInMonth(){return wf(this.year,this.month)}get daysInYear(){return this.isValid?bl(this.year):NaN}get weeksInWeekYear(){return this.isValid?sc(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?sc(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:o}=nn.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:o}}toUTC(e=0,r={}){return this.setZone(tn.instance(e),r)}toLocal(){return this.setZone(St.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=wa(e,St.defaultZone),e.equals(this.zone))return this;if(e.isValid){let o=this.ts;if(r||n){let a=e.offset(this.ts),i=this.toObject();[o]=I2(i,a,e)}return cc(this,{ts:o,zone:e})}else return t.invalid(E2(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let o=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return cc(this,{loc:o})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Sf(e,xj),{minDaysInFirstWeek:n,startOfWeek:o}=VS(r,this.loc),a=!ke(r.weekYear)||!ke(r.weekNumber)||!ke(r.weekday),i=!ke(r.ordinal),l=!ke(r.year),s=!ke(r.month)||!ke(r.day),u=l||s,c=r.weekYear||r.weekNumber;if((u||i)&&c)throw new ya("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new ya("Can't mix ordinal dates with month/day");let d;a?d=FS({...Eh(this.c,n,o),...r},n,o):ke(r.ordinal)?(d={...this.toObject(),...r},ke(r.day)&&(d.day=Math.min(wf(d.year,d.month),d.day))):d=BS({...w2(this.c),...r});let[f,p]=I2(d,this.o,this.zone);return cc(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let r=fr.fromDurationLike(e);return cc(this,bj(this,r))}minus(e){if(!this.isValid)return this;let r=fr.fromDurationLike(e).negate();return cc(this,bj(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},o=fr.normalizeUnit(e);switch(o){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(o==="weeks")if(r){let a=this.loc.getStartOfWeek(),{weekday:i}=this;i<a&&(n.weekNumber=this.weekNumber-1),n.weekday=a}else n.weekday=1;if(o==="quarters"){let a=Math.ceil(this.month/3);n.month=(a-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?nn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):rE}toLocaleString(e=gl,r={}){return this.isValid?nn.create(this.loc.clone(r),e).formatDateTime(this):rE}toLocaleParts(e={}){return this.isValid?nn.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:o=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;let i=e==="extended",l=aE(this,i);return l+="T",l+=yj(this,i,r,n,o,a),l}toISODate({format:e="extended"}={}){return this.isValid?aE(this,e==="extended"):null}toISOWeekDate(){return T2(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:o=!1,extendedZone:a=!1,format:i="extended"}={}){return this.isValid?(o?"T":"")+yj(this,i==="extended",r,e,n,a):null}toRFC2822(){return T2(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return T2(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?aE(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let o="HH:mm:ss.SSS";return(r||e)&&(n&&(o+=" "),r?o+="z":e&&(o+="ZZ")),T2(this,o,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():rE}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return fr.invalid("created by diffing an invalid DateTime");let o={locale:this.locale,numberingSystem:this.numberingSystem,...n},a=FV(r).map(fr.normalizeUnit),i=e.valueOf()>this.valueOf(),l=i?this:e,s=i?e:this,u=uj(l,s,a,o);return i?u.negate():u}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?is.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let o=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(r,n)<=o&&o<=a.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,o=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(o=e.unit,a=void 0),wj(r,this.plus(n),{...e,numeric:"always",units:o,unit:a})}toRelativeCalendar(e={}){return this.isValid?wj(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Nr("min requires all arguments be DateTimes");return HS(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Nr("max requires all arguments be DateTimes");return HS(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:o=null,numberingSystem:a=null}=n,i=At.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0});return eE(i,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static get DATE_SHORT(){return gl}static get DATE_MED(){return nh}static get DATE_MED_WITH_WEEKDAY(){return wS}static get DATE_FULL(){return oh}static get DATE_HUGE(){return ah}static get TIME_SIMPLE(){return ih}static get TIME_WITH_SECONDS(){return sh}static get TIME_WITH_SHORT_OFFSET(){return lh}static get TIME_WITH_LONG_OFFSET(){return uh}static get TIME_24_SIMPLE(){return ch}static get TIME_24_WITH_SECONDS(){return dh}static get TIME_24_WITH_SHORT_OFFSET(){return fh}static get TIME_24_WITH_LONG_OFFSET(){return ph}static get DATETIME_SHORT(){return mh}static get DATETIME_SHORT_WITH_SECONDS(){return gh}static get DATETIME_MED(){return hh}static get DATETIME_MED_WITH_SECONDS(){return vh}static get DATETIME_MED_WITH_WEEKDAY(){return SS}static get DATETIME_FULL(){return bh}static get DATETIME_FULL_WITH_SECONDS(){return yh}static get DATETIME_HUGE(){return xh}static get DATETIME_HUGE_WITH_SECONDS(){return Ch}};function _f(t){if(dt.isDateTime(t))return t;if(t&&t.valueOf&&si(t.valueOf()))return dt.fromJSDate(t);if(t&&typeof t=="object")return dt.fromObject(t);throw new Nr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function D2(t){return t.reduce((e,{field:r,operator:n,value:o})=>{if(!r||!n)return e;if(r==="updated_at"&&(r="modified"),r==="created_at"&&(r="created"),n==="def")return{...e,[`${r}[def]`]:"true"};if(n==="ndef")return{...e,[`${r}[def]`]:"false"};if(n==="checked")return{...e,[`${r}[eq]`]:"true"};if(n==="nchecked")return{...e,[`${r}[eq]`]:"false"};if(typeof o>"u"||o===null||o===""||Array.isArray(o)&&o.length<1)return e;if(n==="between"||n==="sys-date-between")if(Array.isArray(o)&&o.length===2){if(n==="between")return{...e,[`${r}[gte]`]:o[0],[`${r}[lte]`]:o[1]};{let a=dt.fromISO(o[0],{zone:"system"}).setZone("utc").toISO(),i=dt.fromISO(o[1],{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a&&i?{...e,[`${r}[gte]`]:a,[`${r}[lt]`]:i}:e}}else return e;if(n==="sys-date-eq")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO(),i=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a&&i?{...e,[`${r}[gte]`]:a,[`${r}[lt]`]:i}:e}else return e;if(n==="sys-date-gt")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a?{...e,[`${r}[gte]`]:a}:e}else return e;if(n==="sys-date-gte")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return a?{...e,[`${r}[gte]`]:a}:e}else return e;if(n==="sys-date-lt")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).setZone("utc").toISO();return a?{...e,[`${r}[lt]`]:a}:e}else return e;if(n==="sys-date-lte")if(typeof o=="string"){let a=dt.fromISO(o,{zone:"system"}).plus({day:1}).setZone("utc").toISO();return a?{...e,[`${r}[lt]`]:a}:e}else return e;if(n==="starts"&&typeof o=="string")return{...e,[`${r}[starts]`]:o.replaceAll(/[^a-zA-Z0-9_.\s-]/g,"").toLowerCase()};if(r==="workflowStageId"){let a=t.some(i=>i.field==="workflowId");if(n==="eq"||n==="neq"){let i=[];return Array.isArray(o)?i=o.map(s=>s.split("_")[1]):i=o.split("_"),{...e,...a?{}:{"workflowId[eq]":i[0]},[`${r}[${n}]`]:i[1]}}if(Array.isArray(o)){let i=o.map(u=>{let c=u.split("_")[0],d=u.split("_")[1];return{workflowId:c,workflowStage:d}}),l=i.map(u=>u.workflowId).join(","),s=i.map(u=>u.workflowStage).join(",");return{...e,...a?{}:{[`workflowId[${n}]`]:l},[`${r}[${n}]`]:s}}}return{...e,[`${r}[${n}]`]:Array.isArray(o)?o.join(","):o}},{})}import{CANVAS_DRAFT_STATE as Ij,CanvasClient as Dj}from"@uniformdev/canvas";async function A2({instanceType:t,searchExpressionPrompt:e,username:r,locale:n,getEditUrl:o,env:a}){let i=new Dj(a),l=await u2({searchExpressionPrompt:e,username:r,locale:n},t,a),{limit:s,offset:u,keyword:c,sort:d,filter:f}=l,m=(await i.getCompositionList({patternType:t==="composition"?void 0:t==="componentPattern"?"component":"composition",pattern:t!=="composition",resolveData:!1,withComponentIDs:!0,skipOverridesResolution:!0,limit:s,offset:u,search:c,filters:f?D2(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:n,skipPatternResolution:!0,state:Ij})).compositions.map(h=>({id:h.composition._id,name:h.composition._name,componentType:h.composition.type,editUrl:o(h.composition._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:l},null,2)}]}}async function L2({id:t,env:e}){let n=await new Dj(e).getCompositionById({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,compositionId:t,state:Ij});return{content:[{type:"text",text:JSON.stringify(n,null,2)}]}}var x1e={id:Aj.string()};function Lj(t,e){t.tool("compositionList","Lists available Uniform compositions",ns.shape,async r=>await A2({...r,instanceType:"composition",getEditUrl:n=>l2(n,e),env:e})),t.tool("compositionGet","Gets the full contents of a Uniform composition",x1e,async r=>await L2({...r,env:e}))}import{autoFixParameterGroups as Nj,ContentClient as C1e}from"@uniformdev/canvas";import*as M2 from"zod/v3";import*as wl from"zod/v3";var _j=wl.object({name:wl.string().describe('Title-cased display name of the component. Ex: "Hero"'),id:wl.string().describe("Public ID of the content type, the camelCase version of name, using only alphanumeric characters"),description:wl.string().describe("Describe the purpose of the content type in 1-2 sentences."),fields:wl.array(Rh).describe("The fields of the content type. The key is the publicId of the field.").optional()});function Mj(t){let e=t.fields?.find(n=>n.type==="asset"&&typeof n.typeConfig=="object"&&n.typeConfig!==null&&"allowedTypes"in n.typeConfig&&Array.isArray(n.typeConfig.allowedTypes)&&n.typeConfig.allowedTypes?.includes("image"))?.id,r=t.fields?.find(n=>n.type==="text")?.id;return{...t,thumbnailField:e,entryName:r}}function _2(t,e){return`${e.baseWebUrl}/dashboards/canvas/content-types/${t}`}var w1e={action:M2.enum(["create","update","delete"]).describe("The action to perform"),publicId:M2.string().describe("Public ID of the component, the camelCase version of name, using only alphanumeric characters"),contentType:_j.describe("Full content type definition to create. Omit for update or delete.").optional(),patches:Ph.describe("JSON patch to apply to the existing component definition. Omit for create or delete.").optional()};function kj(t,e){t.tool("contentTypeAction","Creates, updates, or deletes a Uniform Content Type definition",w1e,async({publicId:r,action:n,contentType:o,patches:a})=>{let i=new C1e(e),l=!1;if(n==="create"){if(!o)throw new Error("Content type definition is required for create");let s=Mj(o);s.fields&&(l=Nj(s.fields),fc(s.fields)),await i.upsertContentType({contentType:s})}if(n==="update"){if(!a)throw new Error("Patches are required for update");let u=(await i.getContentTypes()).contentTypes.find(f=>f.id===r);if(!u)throw new Error(`Content Type with public ID ${r} does not exist, try creating it instead`);let c=u.fields?.filter(f=>f.type==="richText").map(f=>f.id),d=kh(u,a);if(d.fields){l=Nj(d.fields);let f=d.fields?.filter(p=>p.type==="richText").map(p=>p.id).filter(p=>!c?.includes(p));fc(d.fields,f)}await i.upsertContentType({contentType:d})}return n==="delete"&&await i.deleteContentType({contentTypeId:r}),{content:[{type:"text",text:JSON.stringify({success:!0,editUrl:_2(r,e),warning:l?"Issues with field group order were fixed. Ensure definition data is re-fetched before any future updates.":void 0},null,2)}]}})}import{ContentClient as Pj}from"@uniformdev/canvas";import*as Oj from"zod/v3";var S1e={id:Oj.string()};function Rj(t,e){t.tool("contentTypeList","Lists all Uniform Content Type definitions",async()=>{let o=(await new Pj(e).getContentTypes()).contentTypes.map(a=>({id:a.id,name:a.name,description:a.description,editUrl:_2(a.id,e)}));return{content:[{type:"text",text:JSON.stringify(o,null,2)}]}}),t.tool("contentTypeGet","Gets a Uniform Content Type definition details (fields, etc.)",S1e,async({id:r})=>{let a=(await new Pj(e).getContentTypes()).contentTypes.find(i=>i.id===r);if(!a)throw new Error(`Content Type with ID ${r} not found`);return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}})}import{v4 as E1e}from"uuid";function Fj(t,e){t.tool("createUuid","Creates a new random UUID",async()=>({content:[{type:"text",text:E1e()}]}))}import*as Mh from"zod/v3";import{CANVAS_DRAFT_STATE as N2,ContentClient as $1e,convertEntryToPutEntry as T1e,getEffectivePropertyValue as I1e}from"@uniformdev/canvas";async function D1e(t,e,r){let o=(await e.fetchDefinitions())[t.entry.type];if(!o)throw new Error("insanity");let a=ZB(o),i;a.entryName&&(i=t.entry._overrides?.[t.entry._id].parameters?.[a.entryName]??t.entry.fields?.[a.entryName]);let l=I1e({conditionIndex:-1,locale:"__any__",greedyLocaleMatching:!0,property:i}),s=TB({value:l,isNew:r,contentType:a});t.entry._name=s}async function k2({action:t,id:e,instructions:r,isPattern:n,patternId:o,getEditUrl:a,env:i}){let l=new $1e(i),s,u,c=t==="update"?e:void 0,d={success:!0,actionsTaken:[]};if(t==="duplicate"){let p=(await l.getEntries({entryIDs:[e],pattern:n,state:N2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0];if(!p)throw new Error("Entry not found");let m=crypto.randomUUID(),h={...p.entry,_id:m,_name:`${p.entry._name} (copy)`};h._slug&&(h._slug=`${h._slug}-copy${h._slug?.endsWith("/")?"/":""}`),delete h._thumbnail;let g=eh({...p,entry:h});s=new ii(g.composition),e=m}else if(t==="create"){if(!r)throw new Error("Instructions are required for create");if(!r.type)throw new Error("Type is required for create");o?(await l.upsertEntry({state:N2,entry:{type:r.type,_id:e,fields:{},_pattern:o}}),c=e):s=new ii({_id:e,_name:"New Entry",type:r.type,_overridability:{hideLockedParameters:!0}})}if(c){if(u=(await l.getEntries({entryIDs:[e],pattern:n,state:N2,skipDataResolution:!0,skipPatternResolution:!1,withComponentIDs:!0,skipOverridesResolution:!0})).entries[0],!u)throw new Error("Entry not found");let p=eh(u);s=new ii(p.composition)}t==="delete"&&await l.deleteEntry({entryId:e});let f=hV(i);if(s){t!=="duplicate"&&(await a2(r?.localeUpdates?.enableLocales,i),d=await Xy({twee:s,descriptionUpdate:void 0,slugUpdate:r&&"slug"in r?r.slug:void 0,nameUpdate:r&&"name"in r?r.name:void 0,propertyUpdates:r?.fieldUpdates??[],dataResourceUpdates:(r&&"dataResourceUpdates"in r?r.dataResourceUpdates:[])??[],slotUpdates:{},localeUpdates:r?.localeUpdates,currentEditorLocale:void 0,referenceData:f,isEditingPattern:n,domParser:o2}));let p=s.exportTree(),m=s.exportMetadata(),h=T1e(YB(p,u??{projectId:i.projectId,pattern:n},m,N2,u?.releaseId,u?.editionId));n||await D1e(h,f,t==="create"),await l.upsertEntry(h)}return{content:[{type:"text",text:JSON.stringify({...d,editUrl:a(e)},null,2)}]}}function P2(t,e){return`${e.baseWebUrl}/dashboards/canvas/entries/${t}`}var A1e={action:Mh.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:Mh.string().uuid().describe("UUID of the entry to create, update, delete, or duplicate"),patternId:Mh.string().uuid().describe("Entry pattern ID to create the entry from. Omit when not creating, or when creating an entry without an entry pattern.").optional(),instructions:xE.describe("Modification instructions for the entry. Omit for delete and duplicate.").optional()};function Bj(t,e){t.tool("entryAction","Creates, updates, or deletes a Uniform Entry",A1e,async r=>await k2({...r,isPattern:!1,getEditUrl:n=>P2(n,e),patternId:r.patternId,env:e}))}import*as zj from"zod/v3";import{CANVAS_DRAFT_STATE as Vj,ContentClient as jj}from"@uniformdev/canvas";async function O2({isPattern:t,searchExpressionPrompt:e,username:r,locale:n,getEditUrl:o,env:a}){let i=new jj(a),l=await u2({searchExpressionPrompt:e,username:r,locale:n},t?"entryPattern":"entry",a),{limit:s,offset:u,keyword:c,sort:d,filter:f}=l,m=(await i.getEntries({limit:s,offset:u,pattern:t,skipDataResolution:!0,withTotalCount:!0,skipPatternResolution:!0,skipOverridesResolution:!0,state:Vj,search:c,filters:f?D2(f):void 0,orderBy:Array.isArray(d)?d:d?[d]:void 0,locale:n})).entries.map(h=>({id:h.entry._id,name:h.entry._name??"",contentType:h.entry.type,editUrl:o(h.entry._id)}));return{content:[{type:"text",text:JSON.stringify({results:m,criteria:l},null,2)}]}}async function R2({id:t,isPattern:e,env:r}){let o=await new jj(r).getEntries({skipDataResolution:!0,withComponentIDs:!0,skipOverridesResolution:!0,skipPatternResolution:!1,pattern:e,entryIDs:[t],state:Vj});if(o.entries.length===0)throw new Error(`Entry with ID ${t} not found`);return{content:[{type:"text",text:JSON.stringify(o.entries[0],null,2)}]}}var L1e={id:zj.string()};function Hj(t,e){t.tool("entryList","Lists available Uniform entries",ns.shape,async r=>await O2({...r,isPattern:!1,getEditUrl:n=>P2(n,e),env:e})),t.tool("entryGet","Gets the full contents of a Uniform entry",L1e,async r=>await R2({...r,isPattern:!1,env:e}))}import*as B2 from"zod/v3";function F2(t,e){return`${e.baseWebUrl}/dashboards/canvas/entry-patterns/${t}`}var _1e={action:B2.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:B2.string().uuid().describe("UUID of the entry pattern to create, update, delete, or duplicate"),instructions:CE.describe("Modification instructions for the entry pattern. Omit for delete and duplicate.").optional()};function Wj(t,e){t.tool("entryPatternAction","Creates, updates, or deletes a Uniform Entry Pattern",_1e,async r=>await k2({...r,isPattern:!0,getEditUrl:n=>F2(n,e),patternId:void 0,env:e}))}import*as Gj from"zod/v3";var M1e={id:Gj.string()};function Uj(t,e){t.tool("entryPatternList","Lists available Uniform entry patterns",ns.shape,async r=>await O2({...r,isPattern:!0,getEditUrl:n=>F2(n,e),env:e})),t.tool("entryPatternGet","Gets the full contents of a Uniform entry pattern",M1e,async r=>await R2({...r,isPattern:!0,env:e}))}import{ProjectClient as N1e}from"@uniformdev/canvas";async function k1e(t){let e=await fetch(`${t.apiHost}/api/v1/member-profile`,{headers:{"x-api-key":t.apiKey,"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to fetch user profile: ${e.status} ${e.statusText}`);return(await e.json()).name}function Zj(t,e){t.tool("getUniformEnvironment","Get the connected Uniform Project name, edit URL, and current user",{},async()=>{try{let r=new N1e(e),[n,o]=await Promise.all([r.get({projectId:e.projectId}),k1e(e)]),a={projectName:n.name,teamName:n.teamName,projectUrl:e.baseWebUrl,currentIdentity:o};return{content:[{type:"text",text:JSON.stringify(a,null,2)}]}}catch(r){return{content:[{type:"text",text:JSON.stringify({error:"Failed to fetch project information",details:r instanceof Error?r.message:"Unknown error"},null,2)}]}}})}import{LocaleClient as P1e}from"@uniformdev/canvas";function Yj(t,e){t.tool("localeList","Lists all registered Uniform locales",async()=>{let n=await new P1e(e).get();return{content:[{type:"text",text:JSON.stringify({locales:n.results,editUrl:`${e.baseWebUrl}/settings/localization`},null,2)}]}})}import*as j2 from"zod/v3";function V2(t,e){return`${e.baseWebUrl}/dashboards/canvas/edit/${t}`}var O1e={action:j2.enum(["create","update","delete","duplicate"]).describe("The action to perform"),id:j2.string().uuid().describe("UUID of the pattern instance to create, update, delete, or duplicate"),instructions:bE.describe("Modification instructions for the pattern. Omit for delete and duplicate.").optional()};function Kj(t,e){t.tool("patternAction","Creates, updates, or deletes a Uniform Component Pattern or Composition Pattern",O1e,async r=>await s2({...r,isPattern:!0,getEditUrl:n=>V2(n,e),patternId:void 0,env:e}))}import*as z2 from"zod/v3";var R1e={instanceType:z2.enum(["componentPattern","compositionPattern"]),...ns.shape},F1e={id:z2.string()};function Xj(t,e){t.tool("patternList","Lists available Uniform component patterns or composition patterns",R1e,async r=>await A2({...r,getEditUrl:n=>V2(n,e),env:e})),t.tool("patternGet","Gets the full contents of a Uniform component pattern or composition pattern",F1e,async r=>await L2({...r,env:e}))}import{ProjectMapClient as B1e}from"@uniformdev/project-map";import*as Jj from"zod/v3";var V1e={query:Jj.string().describe("Keyword to search for in node names and paths.")};function qj(t,e){t.tool("projectMapNodeSearch","Search for project map nodes by keyword. Use this to find the appropriate parent node when you need to create a composition attached to a specific location in the project map hierarchy.",V1e,async({query:r})=>{let n=new B1e({apiKey:e.apiKey,apiHost:e.apiHost,projectId:e.projectId}),a=(await n.getProjectMapDefinition({}))?.projectMaps[0]?.id;if(!a)throw new Error("No project map found for this project");let l=(await n.getNodes({search:r,includeAncestors:!1,expanded:!0,depth:1,projectMapId:a})).nodes?.map(s=>({id:s.id,name:s.name,path:s.path}))??[];return{content:[{type:"text",text:JSON.stringify({matches:l},null,2)}]}})}function lnt(t,e){lE(t,e),mE(t,e),vE(t,e),kj(t,e),Rj(t,e),Bj(t,e),Hj(t,e),Uj(t,e),Wj(t,e),Xj(t,e),Kj(t,e),vV(t,e),Lj(t,e),Fj(t,e),Zj(t,e),Yj(t,e),qj(t,e)}export{lnt as configureServer};
|
|
5785
5793
|
/*! Bundled license information:
|
|
5786
5794
|
|
|
5787
5795
|
prismjs/prism.js:
|