sanity 3.93.1-next.23.7cabaeaf78 → 3.93.1-next.27.be182aaafa
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/lib/_chunks-cjs/version.js +1 -1
- package/lib/_chunks-es/version.mjs +1 -1
- package/package.json +10 -10
- package/dist/1-yrhfgGSy.mjs +0 -5
- package/dist/1-yrhfgGSy.mjs.map +0 -1
- package/dist/BackLink-BjbAxrJO.mjs +0 -2
- package/dist/BackLink-BjbAxrJO.mjs.map +0 -1
- package/dist/BehaviorSubject-lT90ntN-.mjs +0 -2
- package/dist/BehaviorSubject-lT90ntN-.mjs.map +0 -1
- package/dist/BroadcastDisplayedDocument-NLP-sZ3E.mjs +0 -2
- package/dist/BroadcastDisplayedDocument-NLP-sZ3E.mjs.map +0 -1
- package/dist/Delay-BF0O9UCI.mjs +0 -2
- package/dist/Delay-BF0O9UCI.mjs.map +0 -1
- package/dist/DisplayedDocumentBroadcaster-bVq7qjFz.mjs +0 -2
- package/dist/DisplayedDocumentBroadcaster-bVq7qjFz.mjs.map +0 -1
- package/dist/DocumentPane-B9qqshkT.mjs +0 -263
- package/dist/DocumentPane-B9qqshkT.mjs.map +0 -1
- package/dist/EmptyError-BLRYgvfy.mjs +0 -2
- package/dist/EmptyError-BLRYgvfy.mjs.map +0 -1
- package/dist/LiveQueries-D9bwoNKb.mjs +0 -2
- package/dist/LiveQueries-D9bwoNKb.mjs.map +0 -1
- package/dist/LoadingPane-fVJxEQpb.mjs +0 -10
- package/dist/LoadingPane-fVJxEQpb.mjs.map +0 -1
- package/dist/MenuGroup-DZWX1dWR.mjs +0 -2
- package/dist/MenuGroup-DZWX1dWR.mjs.map +0 -1
- package/dist/MenuItem-nwzB8TNk.mjs +0 -8
- package/dist/MenuItem-nwzB8TNk.mjs.map +0 -1
- package/dist/Observable-B8U6mp9h.mjs +0 -4
- package/dist/Observable-B8U6mp9h.mjs.map +0 -1
- package/dist/PaneContainer-BqULSwD0.mjs +0 -109
- package/dist/PaneContainer-BqULSwD0.mjs.map +0 -1
- package/dist/PaneHeaderActions-BwRjxrbU.mjs +0 -2
- package/dist/PaneHeaderActions-BwRjxrbU.mjs.map +0 -1
- package/dist/PaneItem-CXeBMzOt.mjs +0 -2
- package/dist/PaneItem-CXeBMzOt.mjs.map +0 -1
- package/dist/PostMessageDocuments-BV62lQ7C.mjs +0 -2
- package/dist/PostMessageDocuments-BV62lQ7C.mjs.map +0 -1
- package/dist/PostMessagePerspective-CFiQ6IFc.mjs +0 -2
- package/dist/PostMessagePerspective-CFiQ6IFc.mjs.map +0 -1
- package/dist/PostMessagePreviewSnapshots-5oC2mIn1.mjs +0 -2
- package/dist/PostMessagePreviewSnapshots-5oC2mIn1.mjs.map +0 -1
- package/dist/PostMessageRefreshMutations-DdxC6YP_.mjs +0 -2
- package/dist/PostMessageRefreshMutations-DdxC6YP_.mjs.map +0 -1
- package/dist/PostMessageSchema-Bcs4xG5C.mjs +0 -2
- package/dist/PostMessageSchema-Bcs4xG5C.mjs.map +0 -1
- package/dist/PostMessageTelemetry-LUBYudOJ.mjs +0 -2
- package/dist/PostMessageTelemetry-LUBYudOJ.mjs.map +0 -1
- package/dist/PresentationToolGrantsCheck-CgJU8JlK.mjs +0 -100
- package/dist/PresentationToolGrantsCheck-CgJU8JlK.mjs.map +0 -1
- package/dist/QRCodeSVG-CxOJrjO_.mjs +0 -2
- package/dist/QRCodeSVG-CxOJrjO_.mjs.map +0 -1
- package/dist/Refractor-UCi38mb-.mjs +0 -5
- package/dist/Refractor-UCi38mb-.mjs.map +0 -1
- package/dist/ReplaySubject-CHMGH8uo.mjs +0 -2
- package/dist/ReplaySubject-CHMGH8uo.mjs.map +0 -1
- package/dist/SourceContext-D53WuQKs.mjs +0 -2
- package/dist/SourceContext-D53WuQKs.mjs.map +0 -1
- package/dist/StructureToolProvider-C8VLdhP8.mjs +0 -2
- package/dist/StructureToolProvider-C8VLdhP8.mjs.map +0 -1
- package/dist/Subject-BUseddH4.mjs +0 -2
- package/dist/Subject-BUseddH4.mjs.map +0 -1
- package/dist/Tooltip-JnkpPrKf.mjs +0 -4
- package/dist/Tooltip-JnkpPrKf.mjs.map +0 -1
- package/dist/TooltipDelayGroupProvider-DFmNEvMS.mjs +0 -2
- package/dist/TooltipDelayGroupProvider-DFmNEvMS.mjs.map +0 -1
- package/dist/ViteDevServerStopped-XKSHzTxM.mjs +0 -2
- package/dist/ViteDevServerStopped-XKSHzTxM.mjs.map +0 -1
- package/dist/_createContext.mjs +0 -2
- package/dist/_createContext.mjs.map +0 -1
- package/dist/_singletons.mjs +0 -2
- package/dist/_singletons.mjs.map +0 -1
- package/dist/asserters-C8hxedkt.mjs +0 -2
- package/dist/asserters-C8hxedkt.mjs.map +0 -1
- package/dist/async-HS7jgwe2.mjs +0 -2
- package/dist/async-HS7jgwe2.mjs.map +0 -1
- package/dist/browser-Ca2COO1i.mjs +0 -14
- package/dist/browser-Ca2COO1i.mjs.map +0 -1
- package/dist/browser-oKMlC993.mjs +0 -2
- package/dist/browser-oKMlC993.mjs.map +0 -1
- package/dist/chunk-DSR6Ryem.mjs +0 -1
- package/dist/combineLatest-CFPJgUfN.mjs +0 -2
- package/dist/combineLatest-CFPJgUfN.mjs.map +0 -1
- package/dist/concat-BWArfBxD.mjs +0 -2
- package/dist/concat-BWArfBxD.mjs.map +0 -1
- package/dist/concatMap-DZrL7ZKn.mjs +0 -2
- package/dist/concatMap-DZrL7ZKn.mjs.map +0 -1
- package/dist/constants-ChSQUPYh.mjs +0 -5
- package/dist/constants-ChSQUPYh.mjs.map +0 -1
- package/dist/constants-ClLucOHG.mjs +0 -10
- package/dist/constants-ClLucOHG.mjs.map +0 -1
- package/dist/csm-BGmdCiS5.mjs +0 -3
- package/dist/csm-BGmdCiS5.mjs.map +0 -1
- package/dist/dateTimestampProvider-Bu3RH21w.mjs +0 -2
- package/dist/dateTimestampProvider-Bu3RH21w.mjs.map +0 -1
- package/dist/debounceTime-ZjGvEiAc.mjs +0 -2
- package/dist/debounceTime-ZjGvEiAc.mjs.map +0 -1
- package/dist/desk.mjs +0 -2
- package/dist/desk.mjs.map +0 -1
- package/dist/dist-B6kS-Ue1.mjs +0 -2
- package/dist/dist-B6kS-Ue1.mjs.map +0 -1
- package/dist/dist-BBJTJw5c.mjs +0 -2
- package/dist/dist-BBJTJw5c.mjs.map +0 -1
- package/dist/dist-ByxNQHyT.mjs +0 -2
- package/dist/dist-ByxNQHyT.mjs.map +0 -1
- package/dist/dist-CbgPQx6C.mjs +0 -8
- package/dist/dist-CbgPQx6C.mjs.map +0 -1
- package/dist/dist-ClpwwQr8.mjs +0 -15
- package/dist/dist-ClpwwQr8.mjs.map +0 -1
- package/dist/dist-DPyoedQR.mjs +0 -2
- package/dist/dist-DPyoedQR.mjs.map +0 -1
- package/dist/dist-DTr4N9sP.mjs +0 -2
- package/dist/dist-DTr4N9sP.mjs.map +0 -1
- package/dist/dist-DhOlFDfY.mjs +0 -2
- package/dist/dist-DhOlFDfY.mjs.map +0 -1
- package/dist/dist-Du4lGEpF.mjs +0 -2
- package/dist/dist-Du4lGEpF.mjs.map +0 -1
- package/dist/dist-gdCAZyAZ.mjs +0 -1213
- package/dist/dist-gdCAZyAZ.mjs.map +0 -1
- package/dist/dist-p4qSKgLr.mjs +0 -2
- package/dist/dist-p4qSKgLr.mjs.map +0 -1
- package/dist/fast-deep-equal-D2buQJMm.mjs +0 -2
- package/dist/fast-deep-equal-D2buQJMm.mjs.map +0 -1
- package/dist/filter-Dzj28Ftl.mjs +0 -2
- package/dist/filter-Dzj28Ftl.mjs.map +0 -1
- package/dist/first-rmXQWXXU.mjs +0 -2
- package/dist/first-rmXQWXXU.mjs.map +0 -1
- package/dist/from-1e-Bj2Xm.mjs +0 -2
- package/dist/from-1e-Bj2Xm.mjs.map +0 -1
- package/dist/getExtendedProjection-ocJy6w-1.mjs +0 -2
- package/dist/getExtendedProjection-ocJy6w-1.mjs.map +0 -1
- package/dist/getIntentState-BzHK-R2v.mjs +0 -25
- package/dist/getIntentState-BzHK-R2v.mjs.map +0 -1
- package/dist/helpers-DmN6xVrH.mjs +0 -2
- package/dist/helpers-DmN6xVrH.mjs.map +0 -1
- package/dist/i18n-DSW5BxWp.mjs +0 -2
- package/dist/i18n-DSW5BxWp.mjs.map +0 -1
- package/dist/index.browser-CKm2u9SF.mjs +0 -14
- package/dist/index.browser-CKm2u9SF.mjs.map +0 -1
- package/dist/index.browser-m6o-65PH.mjs +0 -2
- package/dist/index.browser-m6o-65PH.mjs.map +0 -1
- package/dist/index.mjs +0 -4364
- package/dist/index.mjs.map +0 -1
- package/dist/inputWrappers-B2JwUo5Q.mjs +0 -6
- package/dist/inputWrappers-B2JwUo5Q.mjs.map +0 -1
- package/dist/isObservable-D3WTlre7.mjs +0 -2
- package/dist/isObservable-D3WTlre7.mjs.map +0 -1
- package/dist/lastValueFrom-DNJfBsuL.mjs +0 -2
- package/dist/lastValueFrom-DNJfBsuL.mjs.map +0 -1
- package/dist/list-CRYGwmUP.mjs +0 -17
- package/dist/list-CRYGwmUP.mjs.map +0 -1
- package/dist/lodash-Bv9uePfP.mjs +0 -21
- package/dist/lodash-Bv9uePfP.mjs.map +0 -1
- package/dist/map-DkDssZnl.mjs +0 -2
- package/dist/map-DkDssZnl.mjs.map +0 -1
- package/dist/mapOneOrManyArgs-nKglr-Z6.mjs +0 -2
- package/dist/mapOneOrManyArgs-nKglr-Z6.mjs.map +0 -1
- package/dist/menuNodes-DfRBkUna.mjs +0 -2
- package/dist/menuNodes-DfRBkUna.mjs.map +0 -1
- package/dist/merge-DLqD1gqk.mjs +0 -2
- package/dist/merge-DLqD1gqk.mjs.map +0 -1
- package/dist/mergeMap-BhPr1e5f.mjs +0 -2
- package/dist/mergeMap-BhPr1e5f.mjs.map +0 -1
- package/dist/never-DgTZVAtg.mjs +0 -2
- package/dist/never-DgTZVAtg.mjs.map +0 -1
- package/dist/of-DHUS5V5R.mjs +0 -2
- package/dist/of-DHUS5V5R.mjs.map +0 -1
- package/dist/pane-BMyHaSp6.mjs +0 -1
- package/dist/pane-CAXJwiOS.mjs +0 -1
- package/dist/paths-Uiaz64OV.mjs +0 -2
- package/dist/paths-Uiaz64OV.mjs.map +0 -1
- package/dist/presentation.mjs +0 -12
- package/dist/presentation.mjs.map +0 -1
- package/dist/proxy-Dqw503dV.mjs +0 -2
- package/dist/proxy-Dqw503dV.mjs.map +0 -1
- package/dist/publishReplay-w0VqSlUG.mjs +0 -2
- package/dist/publishReplay-w0VqSlUG.mjs.map +0 -1
- package/dist/react-CcFWW54u.mjs +0 -2
- package/dist/react-CcFWW54u.mjs.map +0 -1
- package/dist/refractor-BE6oAO2f.mjs +0 -2
- package/dist/refractor-BE6oAO2f.mjs.map +0 -1
- package/dist/resources-B-P7yY4i.mjs +0 -2
- package/dist/resources-B-P7yY4i.mjs.map +0 -1
- package/dist/resources-BMgz3UTF.mjs +0 -2
- package/dist/resources-BMgz3UTF.mjs.map +0 -1
- package/dist/resources-C10e-Tmd.mjs +0 -2
- package/dist/resources-C10e-Tmd.mjs.map +0 -1
- package/dist/resources-C63HMln_.mjs +0 -3
- package/dist/resources-C63HMln_.mjs.map +0 -1
- package/dist/resources-QIglKpCh.mjs +0 -2
- package/dist/resources-QIglKpCh.mjs.map +0 -1
- package/dist/resources-a_EhxFoi.mjs +0 -2
- package/dist/resources-a_EhxFoi.mjs.map +0 -1
- package/dist/resources-wUgycRup.mjs +0 -2
- package/dist/resources-wUgycRup.mjs.map +0 -1
- package/dist/router.mjs +0 -2
- package/dist/router.mjs.map +0 -1
- package/dist/scan-zuMwSL6_.mjs +0 -2
- package/dist/scan-zuMwSL6_.mjs.map +0 -1
- package/dist/share-DudygGnN.mjs +0 -2
- package/dist/share-DudygGnN.mjs.map +0 -1
- package/dist/shareReplay-DNp-xAdu.mjs +0 -2
- package/dist/shareReplay-DNp-xAdu.mjs.map +0 -1
- package/dist/speakingurl-D9zTR1xM.mjs +0 -2
- package/dist/speakingurl-D9zTR1xM.mjs.map +0 -1
- package/dist/stegaClean-CF_wp2AP.mjs +0 -2
- package/dist/stegaClean-CF_wp2AP.mjs.map +0 -1
- package/dist/stegaEncodeSourceMap-sinaqym6.mjs +0 -3
- package/dist/stegaEncodeSourceMap-sinaqym6.mjs.map +0 -1
- package/dist/structure-DeitBGwm.mjs +0 -122
- package/dist/structure-DeitBGwm.mjs.map +0 -1
- package/dist/structure.mjs +0 -1
- package/dist/structureTool-C7WqcvTM.mjs +0 -11
- package/dist/structureTool-C7WqcvTM.mjs.map +0 -1
- package/dist/switchMap-Dkb8wgZy.mjs +0 -2
- package/dist/switchMap-Dkb8wgZy.mjs.map +0 -1
- package/dist/take-CsBFzexj.mjs +0 -2
- package/dist/take-CsBFzexj.mjs.map +0 -1
- package/dist/takeUntil-CFb43n44.mjs +0 -2
- package/dist/takeUntil-CFb43n44.mjs.map +0 -1
- package/dist/throttle-84hk9ct5.mjs +0 -2
- package/dist/throttle-84hk9ct5.mjs.map +0 -1
- package/dist/timer-CudmXrHS.mjs +0 -2
- package/dist/timer-CudmXrHS.mjs.map +0 -1
- package/dist/urlpattern-polyfill-CTSIY__t.mjs +0 -2
- package/dist/urlpattern-polyfill-CTSIY__t.mjs.map +0 -1
- package/dist/usePaneRouter-BnyByWgR.mjs +0 -2
- package/dist/usePaneRouter-BnyByWgR.mjs.map +0 -1
- package/dist/usePresentationNavigate-CIMnjQ3N.mjs +0 -2
- package/dist/usePresentationNavigate-CIMnjQ3N.mjs.map +0 -1
- package/dist/usePresentationParams-CK4TAdiB.mjs +0 -2
- package/dist/usePresentationParams-CK4TAdiB.mjs.map +0 -1
- package/dist/useStructureTool-DJWYs4dK.mjs +0 -86
- package/dist/useStructureTool-DJWYs4dK.mjs.map +0 -1
- package/dist/useStructureToolSetting-BmMWFoFU.mjs +0 -2
- package/dist/useStructureToolSetting-BmMWFoFU.mjs.map +0 -1
- package/dist/userComponent-C7AeZ7LF.mjs +0 -4
- package/dist/userComponent-C7AeZ7LF.mjs.map +0 -1
- package/dist/v4-jDHpYEaJ.mjs +0 -2
- package/dist/v4-jDHpYEaJ.mjs.map +0 -1
- package/dist/version-BzHQOibY.mjs +0 -2
- package/dist/version-BzHQOibY.mjs.map +0 -1
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.browser-CKm2u9SF.mjs","names":["r","a","t","n","s","e","o","n","s","r","a","i","u","e","t","l","o","c","#e","#t","#r","#n","#o","#s","#a","d","p","f","i","document","_","#client","n","#httpRequest","#clientConfig"],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/observable/throwError.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/util/argsOrArgArray.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/operators/combineLatest.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/operators/combineLatestWith.js","https://cdn.jsdelivr.net/npm/get-it@8.6.9/dist/_chunks-es/_commonjsHelpers.js","https://cdn.jsdelivr.net/npm/get-it@8.6.9/dist/index.browser.js","https://cdn.jsdelivr.net/npm/get-it@8.6.9/dist/middleware.browser.js","https://cdn.jsdelivr.net/npm/@sanity/client@7.6.0/dist/index.browser.js"],"sourcesContent":["import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };\n var init = function (subscriber) { return subscriber.error(errorFactory()); };\n return new Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init);\n}\n//# sourceMappingURL=throwError.js.map","var isArray = Array.isArray;\nexport function argsOrArgArray(args) {\n return args.length === 1 && isArray(args[0]) ? args[0] : args;\n}\n//# sourceMappingURL=argsOrArgArray.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { combineLatestInit } from '../observable/combineLatest';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\nexport function combineLatest() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resultSelector = popResultSelector(args);\n return resultSelector\n ? pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector))\n : operate(function (source, subscriber) {\n combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber);\n });\n}\n//# sourceMappingURL=combineLatest.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { combineLatest } from './combineLatest';\nexport function combineLatestWith() {\n var otherSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherSources[_i] = arguments[_i];\n }\n return combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));\n}\n//# sourceMappingURL=combineLatestWith.js.map","const e=!(typeof navigator>\"u\")&&\"ReactNative\"===navigator.product,t={timeout:e?6e4:12e4},r=function(r){const a={...t,...\"string\"==typeof r?{url:r}:r};if(a.timeout=n(a.timeout),a.query){const{url:t,searchParams:r}=function(t){const r=t.indexOf(\"?\");if(-1===r)return{url:t,searchParams:new URLSearchParams};const n=t.slice(0,r),a=t.slice(r+1);if(!e)return{url:n,searchParams:new URLSearchParams(a)};if(\"function\"!=typeof decodeURIComponent)throw new Error(\"Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined\");const s=new URLSearchParams;for(const e of a.split(\"&\")){const[t,r]=e.split(\"=\");t&&s.append(o(t),o(r||\"\"))}return{url:n,searchParams:s}}(a.url);for(const[e,o]of Object.entries(a.query)){if(void 0!==o)if(Array.isArray(o))for(const t of o)r.append(e,t);else r.append(e,o);const n=r.toString();n&&(a.url=`${t}?${n}`)}}return a.method=a.body&&!a.method?\"POST\":(a.method||\"GET\").toUpperCase(),a};function o(e){return decodeURIComponent(e.replace(/\\+/g,\" \"))}function n(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;const r=Number(e);return isNaN(r)?n(t.timeout):{connect:r,socket:r}}const a=/^https?:\\/\\//i,s=function(e){if(!a.test(e.url))throw new Error(`\"${e.url}\" is not a valid URL`)};function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}export{c as g,r as p,s as v};//# sourceMappingURL=_commonjsHelpers.js.map\n","import{v as e,p as t,g as r}from\"./_chunks-es/_commonjsHelpers.js\";const o=[\"request\",\"response\",\"progress\",\"error\",\"abort\"],n=[\"processOptions\",\"validateOptions\",\"interceptRequest\",\"finalizeOptions\",\"onRequest\",\"onResponse\",\"onError\",\"onReturn\",\"onHeaders\"];function s(r,a){const i=[],u=n.reduce(((e,t)=>(e[t]=e[t]||[],e)),{processOptions:[t],validateOptions:[e]});function l(e){const t=o.reduce(((e,t)=>(e[t]=function(){const e=/* @__PURE__ */Object.create(null);let t=0;return{publish:function(t){for(const r in e)e[r](t)},subscribe:function(r){const o=t++;return e[o]=r,function(){delete e[o]}}}}(),e)),{}),r=(e=>function(t,r,...o){const n=\"onError\"===t;let s=r;for(let r=0;r<e[t].length&&(s=(0,e[t][r])(s,...o),!n||s);r++);return s})(u),n=r(\"processOptions\",e);r(\"validateOptions\",n);const s={options:n,channels:t,applyMiddleware:r};let i;const l=t.request.subscribe((e=>{i=a(e,((o,n)=>((e,o,n)=>{let s=e,a=o;if(!s)try{a=r(\"onResponse\",o,n)}catch(e){a=null,s=e}s=s&&r(\"onError\",s,n),s?t.error.publish(s):a&&t.response.publish(a)})(o,n,e)))}));t.abort.subscribe((()=>{l(),i&&i.abort()}));const c=r(\"onReturn\",t,s);return c===t&&t.request.publish(s),c}return l.use=function(e){if(!e)throw new Error(\"Tried to add middleware that resolved to falsey value\");if(\"function\"==typeof e)throw new Error(\"Tried to add middleware that was a function. It probably expects you to pass options to it.\");if(e.onReturn&&u.onReturn.length>0)throw new Error(\"Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event\");return n.forEach((t=>{e[t]&&u[t].push(e[t])})),i.push(e),l},l.clone=()=>s(i,a),r.forEach(l.use),l}var a,i,u=/* @__PURE__ */r(function(){if(i)return a;i=1;var e=function(e){return e.replace(/^\\s+|\\s+$/g,\"\")};return a=function(t){if(!t)return{};for(var r={},o=e(t).split(\"\\n\"),n=0;n<o.length;n++){var s=o[n],a=s.indexOf(\":\"),i=e(s.slice(0,a)).toLowerCase(),u=e(s.slice(a+1));typeof r[i]>\"u\"?r[i]=u:(l=r[i],\"[object Array]\"===Object.prototype.toString.call(l)?r[i].push(u):r[i]=[r[i],u])}var l;return r}}());class l{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText=\"\";responseType=\"\";status;statusText;withCredentials;#e;#t;#r;#o={};#n;#s={};#a;open(e,t,r){this.#e=e,this.#t=t,this.#r=\"\",this.readyState=1,this.onreadystatechange?.(),this.#n=void 0}abort(){this.#n&&this.#n.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#o[e]=t}setInit(e,t=!0){this.#s=e,this.#a=t}send(e){const t=\"arraybuffer\"!==this.responseType,r={...this.#s,method:this.#e,headers:this.#o,body:e};\"function\"==typeof AbortController&&this.#a&&(this.#n=new AbortController,typeof EventTarget<\"u\"&&this.#n.signal instanceof EventTarget&&(r.signal=this.#n.signal)),typeof document<\"u\"&&(r.credentials=this.withCredentials?\"include\":\"omit\"),fetch(this.#t,r).then((e=>(e.headers.forEach(((e,t)=>{this.#r+=`${t}: ${e}\\r\\n`})),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer()))).then((e=>{\"string\"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()})).catch((e=>{\"AbortError\"!==e.name?this.onerror?.(e):this.onabort?.()}))}}const c=\"function\"==typeof XMLHttpRequest?\"xhr\":\"fetch\",h=\"xhr\"===c?XMLHttpRequest:l,d=(e,t)=>{const r=e.options,o=e.applyMiddleware(\"finalizeOptions\",r),n={},s=e.applyMiddleware(\"interceptRequest\",void 0,{adapter:c,context:e});if(s){const e=setTimeout(t,0,null,s);return{abort:()=>clearTimeout(e)}}let a=new h;a instanceof l&&\"object\"==typeof o.fetch&&a.setInit(o.fetch,o.useAbortSignal??!0);const i=o.headers,d=o.timeout;let p=!1,f=!1,b=!1;if(a.onerror=e=>{m(a instanceof l?e instanceof Error?e:new Error(`Request error while attempting to reach is ${o.url}`,{cause:e}):new Error(`Request error while attempting to reach is ${o.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:\"\"}`))},a.ontimeout=e=>{m(new Error(`Request timeout while attempting to reach ${o.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:\"\"}`))},a.onabort=()=>{w(!0),p=!0},a.onreadystatechange=function(){d&&(w(),n.socket=setTimeout((()=>y(\"ESOCKETTIMEDOUT\")),d.socket)),!p&&a&&4===a.readyState&&0!==a.status&&function(){if(!(p||f||b)){if(0===a.status)return void m(new Error(\"Unknown XHR error\"));w(),f=!0,t(null,{body:a.response||(\"\"===a.responseType||\"text\"===a.responseType?a.responseText:\"\"),url:o.url,method:o.method,headers:u(a.getAllResponseHeaders()),statusCode:a.status,statusMessage:a.statusText})}}()},a.open(o.method,o.url,!0),a.withCredentials=!!o.withCredentials,i&&a.setRequestHeader)for(const e in i)i.hasOwnProperty(e)&&a.setRequestHeader(e,i[e]);return o.rawBody&&(a.responseType=\"arraybuffer\"),e.applyMiddleware(\"onRequest\",{options:o,adapter:c,request:a,context:e}),a.send(o.body||null),d&&(n.connect=setTimeout((()=>y(\"ETIMEDOUT\")),d.connect)),{abort:function(){p=!0,a&&a.abort()}};function y(t){b=!0,a.abort();const r=new Error(\"ESOCKETTIMEDOUT\"===t?`Socket timed out on request to ${o.url}`:`Connection timed out on request to ${o.url}`);r.code=t,e.channels.error.publish(r)}function w(e){(e||p||a&&a.readyState>=2&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function m(e){if(f)return;w(!0),f=!0,a=null;const r=e||new Error(`Network error while attempting to reach ${o.url}`);r.isNetworkError=!0,r.request=o,t(r)}},p=(e=[],t=d)=>s(e,t),f=\"browser\";export{c as adapter,f as environment,p as getIt};//# sourceMappingURL=index.browser.js.map\n","import{g as e}from\"./_chunks-es/_commonjsHelpers.js\";import{p as t,v as s}from\"./_chunks-es/_commonjsHelpers.js\";function n(e){return{}}const r=/^\\//,o=/\\/$/;function i(e){const t=e.replace(o,\"\");return{processOptions:e=>{if(/^https?:\\/\\//i.test(e.url))return e;const s=[t,e.url.replace(r,\"\")].join(\"/\");return Object.assign({},e,{url:s})}}}var a,c,u,l,p,d={exports:{}},f=/* @__PURE__ */e((p||(p=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+e.exports.humanize(this.diff),!this.useColors)return;const s=\"color: \"+this.color;t.splice(1,0,s,\"color: inherit\");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{\"%%\"!==e&&(n++,\"%c\"===e&&(r=n))})),t.splice(r,0,s)},t.save=function(e){try{e?t.storage.setItem(\"debug\",e):t.storage.removeItem(\"debug\")}catch{}},t.load=function(){let e;try{e=t.storage.getItem(\"debug\")}catch{}return!e&&typeof process<\"u\"&&\"env\"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if(typeof window<\"u\"&&window.process&&(\"renderer\"===window.process.type||window.process.__nwjs))return!0;if(typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))return!1;let e;return typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=/* @__PURE__ */(()=>{let e=!1;return()=>{e||(e=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})(),t.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"],t.log=console.debug||console.log||(()=>{}),e.exports=(l?u:(l=1,u=function(e){function t(e){let n,r,o,i=null;function a(...e){if(!a.enabled)return;const s=a,r=Number(/* @__PURE__ */new Date),o=r-(n||r);s.diff=o,s.prev=n,s.curr=r,n=r,e[0]=t.coerce(e[0]),\"string\"!=typeof e[0]&&e.unshift(\"%O\");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,r)=>{if(\"%%\"===n)return\"%\";i++;const o=t.formatters[r];if(\"function\"==typeof o){const t=e[i];n=o.call(s,t),e.splice(i,1),i--}return n})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,\"enabled\",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),\"function\"==typeof t.init&&t.init(a),a}function s(e,s){const n=t(this.namespace+(typeof s>\"u\"?\":\":s)+e);return n.log=this.log,n}function n(e,t){let s=0,n=0,r=-1,o=0;for(;s<e.length;)if(n<t.length&&(t[n]===e[s]||\"*\"===t[n]))\"*\"===t[n]?(r=n,o=s,n++):(s++,n++);else{if(-1===r)return!1;n=r+1,o++,s=o}for(;n<t.length&&\"*\"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>\"-\"+e))].join(\",\");return t.enable(\"\"),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const s=(\"string\"==typeof e?e:\"\").trim().replace(\" \",\",\").split(\",\").filter(Boolean);for(const e of s)\"-\"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const s of t.skips)if(n(e,s))return!1;for(const s of t.names)if(n(e,s))return!0;return!1},t.humanize=function(){if(c)return a;c=1;var e=1e3,t=60*e,s=60*t,n=24*s,r=7*n;function o(e,t,s,n){var r=t>=1.5*s;return Math.round(e/s)+\" \"+n+(r?\"s\":\"\")}return a=function(i,a){a=a||{};var c,u,l=typeof i;if(\"string\"===l&&i.length>0)return function(o){if(!((o=String(o)).length>100)){var i=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(i){var a=parseFloat(i[1]);switch((i[2]||\"ms\").toLowerCase()){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return 315576e5*a;case\"weeks\":case\"week\":case\"w\":return a*r;case\"days\":case\"day\":case\"d\":return a*n;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return a*s;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return a*t;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return a*e;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return a;default:return}}}}(i);if(\"number\"===l&&isFinite(i))return a.long?(c=i,(u=Math.abs(c))>=n?o(c,u,n,\"day\"):u>=s?o(c,u,s,\"hour\"):u>=t?o(c,u,t,\"minute\"):u>=e?o(c,u,e,\"second\"):c+\" ms\"):function(r){var o=Math.abs(r);return o>=n?Math.round(r/n)+\"d\":o>=s?Math.round(r/s)+\"h\":o>=t?Math.round(r/t)+\"m\":o>=e?Math.round(r/e)+\"s\":r+\"ms\"}(i);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(i))}}(),t.destroy=function(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")},Object.keys(e).forEach((s=>{t[s]=e[s]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let s=0;for(let t=0;t<e.length;t++)s=(s<<5)-s+e.charCodeAt(t),s|=0;return t.colors[Math.abs(s)%t.colors.length]},t.enable(t.load()),t}))(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}}(d,d.exports)),d.exports));const m=[\"cookie\",\"authorization\"],C=Object.prototype.hasOwnProperty;function h(e={}){const t=e.verbose,s=e.namespace||\"get-it\",n=f(s),r=e.log||n,o=r===n&&!f.enabled(s);let i=0;return{processOptions:e=>(e.debug=r,e.requestId=e.requestId||++i,e),onRequest:s=>{if(o||!s)return s;const n=s.options;if(r(\"[%s] HTTP %s %s\",n.requestId,n.method,n.url),t&&n.body&&\"string\"==typeof n.body&&r(\"[%s] Request body: %s\",n.requestId,n.body),t&&n.headers){const t=!1===e.redactSensitiveHeaders?n.headers:((e,t)=>{const s={};for(const n in e)C.call(e,n)&&(s[n]=t.indexOf(n.toLowerCase())>-1?\"<redacted>\":e[n]);return s})(n.headers,m);r(\"[%s] Request headers: %s\",n.requestId,JSON.stringify(t,null,2))}return s},onResponse:(e,s)=>{if(o||!e)return e;const n=s.options.requestId;return r(\"[%s] Response code: %s %s\",n,e.statusCode,e.statusMessage),t&&e.body&&r(\"[%s] Response body: %s\",n,function(e){return-1!==(e.headers[\"content-type\"]||\"\").toLowerCase().indexOf(\"application/json\")?function(e){try{const t=\"string\"==typeof e?JSON.parse(e):e;return JSON.stringify(t,null,2)}catch{return e}}(e.body):e.body}(e)),e},onError:(e,t)=>{const s=t.options.requestId;return e?(r(\"[%s] ERROR: %s\",s,e.message),e):(r(\"[%s] Error encountered, but handled by an earlier middleware\",s),e)}}}function g(e,t={}){return{processOptions:s=>{const n=s.headers||{};return s.headers=t.override?Object.assign({},n,e):Object.assign({},e,n),s}}}class b extends Error{response;request;constructor(e,t){super();const s=e.url.length>400?`${e.url.slice(0,399)}…`:e.url;let n=`${e.method}-request to ${s} resulted in `;n+=`HTTP ${e.statusCode} ${e.statusMessage}`,this.message=n.trim(),this.response=e,this.request=t.options}}function y(){return{onResponse:(e,t)=>{if(!(e.statusCode>=400))return e;throw new b(e,t)}}}function w(e={}){if(\"function\"!=typeof e.inject)throw new Error(\"`injectResponse` middleware requires a `inject` function\");return{interceptRequest:function(t,s){const n=e.inject(s,t);if(!n)return t;const r=s.context.options;return{body:\"\",url:r.url,method:r.method,headers:{},statusCode:200,statusMessage:\"OK\",...n}}}}const F=typeof Buffer>\"u\"?()=>!1:e=>Buffer.isBuffer(e);function O(e){return\"[object Object]\"===Object.prototype.toString.call(e)}function j(e){if(!1===O(e))return!1;const t=e.constructor;if(void 0===t)return!0;const s=t.prototype;return!(!1===O(s)||!1===s.hasOwnProperty(\"isPrototypeOf\"))}const v=[\"boolean\",\"string\",\"number\"];function x(){return{processOptions:e=>{const t=e.body;return!t||\"function\"==typeof t.pipe||F(t)||-1===v.indexOf(typeof t)&&!Array.isArray(t)&&!j(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{\"Content-Type\":\"application/json\"})})}}}function E(e){return{onResponse:s=>{const n=s.headers[\"content-type\"]||\"\",r=e&&e.force||-1!==n.indexOf(\"application/json\");return s.body&&n&&r?Object.assign({},s,{body:t(s.body)}):s},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:\"application/json\"},e.headers)})};function t(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}}function k(e={}){if(!e.ca)throw new Error('Required mtls option \"ca\" is missing');if(!e.cert)throw new Error('Required mtls option \"cert\" is missing');if(!e.key)throw new Error('Required mtls option \"key\" is missing');return{finalizeOptions:t=>{if(function(e){return\"object\"==typeof e&&null!==e&&!(\"protocol\"in e)}(t))return t;const s={cert:e.cert,key:e.key,ca:e.ca};return Object.assign({},t,s)}}}let R={};typeof globalThis<\"u\"?R=globalThis:typeof window<\"u\"?R=window:typeof global<\"u\"?R=global:typeof self<\"u\"&&(R=self);var q=R;function A(e={}){const t=e.implementation||q.Observable;if(!t)throw new Error(\"`Observable` is not available in global scope, and no implementation was passed\");return{onReturn:(e,s)=>new t((t=>(e.error.subscribe((e=>t.error(e))),e.progress.subscribe((e=>t.next(Object.assign({type:\"progress\"},e)))),e.response.subscribe((e=>{t.next(Object.assign({type:\"response\"},e)),t.complete()})),e.request.publish(s),()=>e.abort.publish())))}}function S(){return{onRequest:e=>{if(\"xhr\"!==e.adapter)return;const t=e.request,s=e.context;function n(e){return t=>{const n=t.lengthComputable?t.loaded/t.total*100:-1;s.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}\"upload\"in t&&\"onprogress\"in t.upload&&(t.upload.onprogress=n(\"upload\")),\"onprogress\"in t&&(t.onprogress=n(\"download\"))}}}const N=(e={})=>{const t=e.implementation||Promise;if(!t)throw new Error(\"`Promise` is not available in global scope, and no implementation was passed\");return{onReturn:(s,n)=>new t(((t,r)=>{const o=n.options.cancelToken;o&&o.promise.then((e=>{s.abort.publish(e),r(e)})),s.error.subscribe(r),s.response.subscribe((s=>{t(e.onlyBody?s.body:s)})),setTimeout((()=>{try{s.request.publish(n)}catch(e){r(e)}}),0)}))}};class T{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return\"Cancel\"+(this.message?`: ${this.message}`:\"\")}}class I{promise;reason;constructor(e){if(\"function\"!=typeof e)throw new TypeError(\"executor must be a function.\");let t=null;this.promise=new Promise((e=>{t=e})),e((e=>{this.reason||(this.reason=new T(e),t(this.reason))}))}static source=()=>{let e;return{token:new I((t=>{e=t})),cancel:e}}}function M(e){if(!(!1===e||e&&e.host))throw new Error(\"Proxy middleware takes an object of host, port and auth properties\");return{processOptions:t=>Object.assign({proxy:e},t)}}N.Cancel=T,N.CancelToken=I,N.isCancel=e=>!(!e||!e?.__CANCEL__);var $=(e,t,s)=>(\"GET\"===s.method||\"HEAD\"===s.method)&&(e.isNetworkError||!1);function _(e){return 100*Math.pow(2,e)+100*Math.random()}const P=(e={})=>(e=>{const t=e.maxRetries||5,s=e.retryDelay||_,n=e.shouldRetry;return{onError:(e,r)=>{const o=r.options,i=o.maxRetries||t,a=o.retryDelay||s,c=o.shouldRetry||n,u=o.attemptNumber||0;if(null!==(l=o.body)&&\"object\"==typeof l&&\"function\"==typeof l.pipe||!c(e,u,o)||u>=i)return e;var l;const p=Object.assign({},r,{options:Object.assign({},o,{attemptNumber:u+1})});return setTimeout((()=>r.channels.request.publish(p)),a(u)),null}}})({shouldRetry:$,...e});function J(e){const t=new URLSearchParams,s=(e,n)=>{const r=n instanceof Set?Array.from(n):n;if(Array.isArray(r))if(r.length)for(const t in r)s(`${e}[${t}]`,r[t]);else t.append(`${e}[]`,\"\");else if(\"object\"==typeof r&&null!==r)for(const[t,n]of Object.entries(r))s(`${e}[${t}]`,n);else t.append(e,r)};for(const[t,n]of Object.entries(e))s(t,n);return t.toString()}function L(){return{processOptions:e=>{const t=e.body;return t&&\"function\"!=typeof t.pipe&&!F(t)&&j(t)?{...e,body:J(e.body),headers:{...e.headers,\"Content-Type\":\"application/x-www-form-urlencoded\"}}:e}}}P.shouldRetry=$;class z extends Error{request;code;constructor(e,t){super(e.message),this.request=t,this.code=e.code}}const B=(H=n,function(e={}){const{maxRetries:t=3,ms:s=1e3,maxFree:n=256}=e,{finalizeOptions:r}=H({keepAlive:!0,keepAliveMsecs:s,maxFreeSockets:n});return{finalizeOptions:r,onError:(e,s)=>{if((\"GET\"===s.options.method||\"POST\"===s.options.method)&&e instanceof z&&\"ECONNRESET\"===e.code&&e.request.reusedSocket){const e=s.options.attemptNumber||0;if(e<t){const t=Object.assign({},s,{options:Object.assign({},s.options,{attemptNumber:e+1})});return setImmediate((()=>s.channels.request.publish(t))),null}}return e}}});var H;export{T as Cancel,I as CancelToken,n as agent,i as base,h as debug,g as headers,y as httpErrors,w as injectResponse,x as jsonRequest,E as jsonResponse,B as keepAlive,k as mtls,A as observable,t as processOptions,S as progress,N as promise,M as proxy,P as retry,L as urlEncoded,s as validateOptions};//# sourceMappingURL=middleware.browser.js.map\n","import { getIt } from \"get-it\";\nimport { adapter, environment } from \"get-it\";\nimport { retry, jsonRequest, jsonResponse, progress, observable } from \"get-it/middleware\";\nimport { Observable, defer, of, isObservable, mergeMap, from, lastValueFrom, shareReplay, catchError, concat, throwError, timer, tap, finalize, share, merge, EMPTY, map as map$1, firstValueFrom } from \"rxjs\";\nimport { isRecord, stegaClean } from \"./_chunks-es/stegaClean.js\";\nimport { combineLatestWith, map, filter, finalize as finalize$1 } from \"rxjs/operators\";\nimport { getVersionFromId, isDraftId, getVersionId, getDraftId, isVersionId, getPublishedId } from \"@sanity/client/csm\";\nimport { customAlphabet } from \"nanoid\";\nconst NEWLINE = /\\r\\n|[\\n\\r\\u2028\\u2029]/;\nfunction codeFrame(query, location2, message) {\n const lines = query.split(NEWLINE), loc = {\n start: columnToLine(location2.start, lines),\n end: location2.end ? columnToLine(location2.end, lines) : void 0\n }, { start, end, markerLines } = getMarkerLines(loc, lines), numberMaxWidth = `${end}`.length;\n return query.split(NEWLINE, end).slice(start, end).map((line, index) => {\n const number = start + 1 + index, gutter = ` ${` ${number}`.slice(-numberMaxWidth)} |`, hasMarker = markerLines[number], lastMarkerLine = !markerLines[number + 1];\n if (!hasMarker)\n return ` ${gutter}${line.length > 0 ? ` ${line}` : \"\"}`;\n let markerLine = \"\";\n if (Array.isArray(hasMarker)) {\n const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\\t]/g, \" \"), numberOfMarkers = hasMarker[1] || 1;\n markerLine = [\n `\n `,\n gutter.replace(/\\d/g, \" \"),\n \" \",\n markerSpacing,\n \"^\".repeat(numberOfMarkers)\n ].join(\"\"), lastMarkerLine && message && (markerLine += \" \" + message);\n }\n return [\">\", gutter, line.length > 0 ? ` ${line}` : \"\", markerLine].join(\"\");\n }).join(`\n`);\n}\nfunction getMarkerLines(loc, source) {\n const startLoc = { ...loc.start }, endLoc = { ...startLoc, ...loc.end }, linesAbove = 2, linesBelow = 3, startLine = startLoc.line ?? -1, startColumn = startLoc.column ?? 0, endLine = endLoc.line, endColumn = endLoc.column;\n let start = Math.max(startLine - (linesAbove + 1), 0), end = Math.min(source.length, endLine + linesBelow);\n startLine === -1 && (start = 0), endLine === -1 && (end = source.length);\n const lineDiff = endLine - startLine, markerLines = {};\n if (lineDiff)\n for (let i = 0; i <= lineDiff; i++) {\n const lineNumber = i + startLine;\n if (!startColumn)\n markerLines[lineNumber] = !0;\n else if (i === 0) {\n const sourceLength = source[lineNumber - 1].length;\n markerLines[lineNumber] = [startColumn, sourceLength - startColumn + 1];\n } else if (i === lineDiff)\n markerLines[lineNumber] = [0, endColumn];\n else {\n const sourceLength = source[lineNumber - i].length;\n markerLines[lineNumber] = [0, sourceLength];\n }\n }\n else\n startColumn === endColumn ? startColumn ? markerLines[startLine] = [startColumn, 0] : markerLines[startLine] = !0 : markerLines[startLine] = [startColumn, endColumn - startColumn];\n return { start, end, markerLines };\n}\nfunction columnToLine(column, lines) {\n let offset = 0;\n for (let i = 0; i < lines.length; i++) {\n const lineLength = lines[i].length + 1;\n if (offset + lineLength > column)\n return {\n line: i + 1,\n // 1-based line\n column: column - offset\n // 0-based column\n };\n offset += lineLength;\n }\n return {\n line: lines.length,\n column: lines[lines.length - 1]?.length ?? 0\n };\n}\nconst MAX_ITEMS_IN_ERROR_MESSAGE = 5;\nclass ClientError extends Error {\n response;\n statusCode = 400;\n responseBody;\n details;\n constructor(res, context) {\n const props = extractErrorProps(res, context);\n super(props.message), Object.assign(this, props);\n }\n}\nclass ServerError extends Error {\n response;\n statusCode = 500;\n responseBody;\n details;\n constructor(res) {\n const props = extractErrorProps(res);\n super(props.message), Object.assign(this, props);\n }\n}\nfunction extractErrorProps(res, context) {\n const body = res.body, props = {\n response: res,\n statusCode: res.statusCode,\n responseBody: stringifyBody(body, res),\n message: \"\",\n details: void 0\n };\n if (!isRecord(body))\n return props.message = httpErrorMessage(res, body), props;\n const error = body.error;\n if (typeof error == \"string\" && typeof body.message == \"string\")\n return props.message = `${error} - ${body.message}`, props;\n if (typeof error != \"object\" || error === null)\n return typeof error == \"string\" ? props.message = error : typeof body.message == \"string\" ? props.message = body.message : props.message = httpErrorMessage(res, body), props;\n if (isMutationError(error) || isActionError(error)) {\n const allItems = error.items || [], items = allItems.slice(0, MAX_ITEMS_IN_ERROR_MESSAGE).map((item) => item.error?.description).filter(Boolean);\n let itemsStr = items.length ? `:\n- ${items.join(`\n- `)}` : \"\";\n return allItems.length > MAX_ITEMS_IN_ERROR_MESSAGE && (itemsStr += `\n...and ${allItems.length - MAX_ITEMS_IN_ERROR_MESSAGE} more`), props.message = `${error.description}${itemsStr}`, props.details = body.error, props;\n }\n if (isQueryParseError(error)) {\n const tag = context?.options?.query?.tag;\n return props.message = formatQueryParseError(error, tag), props.details = body.error, props;\n }\n return \"description\" in error && typeof error.description == \"string\" ? (props.message = error.description, props.details = error, props) : (props.message = httpErrorMessage(res, body), props);\n}\nfunction isMutationError(error) {\n return \"type\" in error && error.type === \"mutationError\" && \"description\" in error && typeof error.description == \"string\";\n}\nfunction isActionError(error) {\n return \"type\" in error && error.type === \"actionError\" && \"description\" in error && typeof error.description == \"string\";\n}\nfunction isQueryParseError(error) {\n return isRecord(error) && error.type === \"queryParseError\" && typeof error.query == \"string\" && typeof error.start == \"number\" && typeof error.end == \"number\";\n}\nfunction formatQueryParseError(error, tag) {\n const { query, start, end, description } = error;\n if (!query || typeof start > \"u\")\n return `GROQ query parse error: ${description}`;\n const withTag = tag ? `\n\nTag: ${tag}` : \"\";\n return `GROQ query parse error:\n${codeFrame(query, { start, end }, description)}${withTag}`;\n}\nfunction httpErrorMessage(res, body) {\n const details = typeof body == \"string\" ? ` (${sliceWithEllipsis(body, 100)})` : \"\", statusMessage = res.statusMessage ? ` ${res.statusMessage}` : \"\";\n return `${res.method}-request to ${res.url} resulted in HTTP ${res.statusCode}${statusMessage}${details}`;\n}\nfunction stringifyBody(body, res) {\n return (res.headers[\"content-type\"] || \"\").toLowerCase().indexOf(\"application/json\") !== -1 ? JSON.stringify(body, null, 2) : body;\n}\nfunction sliceWithEllipsis(str, max) {\n return str.length > max ? `${str.slice(0, max)}\\u2026` : str;\n}\nclass CorsOriginError extends Error {\n projectId;\n addOriginUrl;\n constructor({ projectId: projectId2 }) {\n super(\"CorsOriginError\"), this.name = \"CorsOriginError\", this.projectId = projectId2;\n const url = new URL(`https://sanity.io/manage/project/${projectId2}/api`);\n if (typeof location < \"u\") {\n const { origin } = location;\n url.searchParams.set(\"cors\", \"add\"), url.searchParams.set(\"origin\", origin), this.addOriginUrl = url, this.message = `The current origin is not allowed to connect to the Live Content API. Add it here: ${url}`;\n } else\n this.message = `The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${url}`;\n }\n}\nconst httpError = {\n onResponse: (res, context) => {\n if (res.statusCode >= 500)\n throw new ServerError(res);\n if (res.statusCode >= 400)\n throw new ClientError(res, context);\n return res;\n }\n};\nfunction printWarnings() {\n const seen = {};\n return {\n onResponse: (res) => {\n const warn = res.headers[\"x-sanity-warning\"], warnings = Array.isArray(warn) ? warn : [warn];\n for (const msg of warnings)\n !msg || seen[msg] || (seen[msg] = !0, console.warn(msg));\n return res;\n }\n };\n}\nfunction defineHttpRequest(envMiddleware2) {\n return getIt([\n retry({ shouldRetry }),\n ...envMiddleware2,\n printWarnings(),\n jsonRequest(),\n jsonResponse(),\n progress(),\n httpError,\n observable({ implementation: Observable })\n ]);\n}\nfunction shouldRetry(err, attempt, options) {\n if (options.maxRetries === 0) return !1;\n const isSafe = options.method === \"GET\" || options.method === \"HEAD\", isQuery2 = (options.uri || options.url).startsWith(\"/data/query\"), isRetriableResponse = err.response && (err.response.statusCode === 429 || err.response.statusCode === 502 || err.response.statusCode === 503);\n return (isSafe || isQuery2) && isRetriableResponse ? !0 : retry.shouldRetry(err, attempt, options);\n}\nconst BASE_URL = \"https://www.sanity.io/help/\";\nfunction generateHelpUrl(slug) {\n return BASE_URL + slug;\n}\nconst VALID_ASSET_TYPES = [\"image\", \"file\"], VALID_INSERT_LOCATIONS = [\"before\", \"after\", \"replace\"], dataset = (name) => {\n if (!/^(~[a-z0-9]{1}[-\\w]{0,63}|[a-z0-9]{1}[-\\w]{0,63})$/.test(name))\n throw new Error(\n \"Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters\"\n );\n}, projectId = (id) => {\n if (!/^[-a-z0-9]+$/i.test(id))\n throw new Error(\"`projectId` can only contain only a-z, 0-9 and dashes\");\n}, validateAssetType = (type) => {\n if (VALID_ASSET_TYPES.indexOf(type) === -1)\n throw new Error(`Invalid asset type: ${type}. Must be one of ${VALID_ASSET_TYPES.join(\", \")}`);\n}, validateObject = (op, val) => {\n if (val === null || typeof val != \"object\" || Array.isArray(val))\n throw new Error(`${op}() takes an object of properties`);\n}, validateDocumentId = (op, id) => {\n if (typeof id != \"string\" || !/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(id) || id.includes(\"..\"))\n throw new Error(`${op}(): \"${id}\" is not a valid document ID`);\n}, requireDocumentId = (op, doc) => {\n if (!doc._id)\n throw new Error(`${op}() requires that the document contains an ID (\"_id\" property)`);\n validateDocumentId(op, doc._id);\n}, validateDocumentType = (op, type) => {\n if (typeof type != \"string\")\n throw new Error(`\\`${op}()\\`: \\`${type}\\` is not a valid document type`);\n}, requireDocumentType = (op, doc) => {\n if (!doc._type)\n throw new Error(`\\`${op}()\\` requires that the document contains a type (\\`_type\\` property)`);\n validateDocumentType(op, doc._type);\n}, validateVersionIdMatch = (builtVersionId, document) => {\n if (document._id && document._id !== builtVersionId)\n throw new Error(\n `The provided document ID (\\`${document._id}\\`) does not match the generated version ID (\\`${builtVersionId}\\`)`\n );\n}, validateInsert = (at, selector, items) => {\n const signature = \"insert(at, selector, items)\";\n if (VALID_INSERT_LOCATIONS.indexOf(at) === -1) {\n const valid = VALID_INSERT_LOCATIONS.map((loc) => `\"${loc}\"`).join(\", \");\n throw new Error(`${signature} takes an \"at\"-argument which is one of: ${valid}`);\n }\n if (typeof selector != \"string\")\n throw new Error(`${signature} takes a \"selector\"-argument which must be a string`);\n if (!Array.isArray(items))\n throw new Error(`${signature} takes an \"items\"-argument which must be an array`);\n}, hasDataset = (config) => {\n if (!config.dataset)\n throw new Error(\"`dataset` must be provided to perform queries\");\n return config.dataset || \"\";\n}, requestTag = (tag) => {\n if (typeof tag != \"string\" || !/^[a-z0-9._-]{1,75}$/i.test(tag))\n throw new Error(\n \"Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.\"\n );\n return tag;\n}, resourceConfig = (config) => {\n if (!config[\"~experimental_resource\"])\n throw new Error(\"`resource` must be provided to perform resource queries\");\n const { type, id } = config[\"~experimental_resource\"];\n switch (type) {\n case \"dataset\": {\n if (id.split(\".\").length !== 2)\n throw new Error('Dataset resource ID must be in the format \"project.dataset\"');\n return;\n }\n case \"dashboard\":\n case \"media-library\":\n case \"canvas\":\n return;\n default:\n throw new Error(`Unsupported resource type: ${type.toString()}`);\n }\n}, resourceGuard = (service, config) => {\n if (config[\"~experimental_resource\"])\n throw new Error(`\\`${service}\\` does not support resource-based operations`);\n};\nfunction once(fn) {\n let didCall = !1, returnValue;\n return (...args) => (didCall || (returnValue = fn(...args), didCall = !0), returnValue);\n}\nconst createWarningPrinter = (message) => (\n // eslint-disable-next-line no-console\n once((...args) => console.warn(message.join(\" \"), ...args))\n), printCdnAndWithCredentialsWarning = createWarningPrinter([\n \"Because you set `withCredentials` to true, we will override your `useCdn`\",\n \"setting to be false since (cookie-based) credentials are never set on the CDN\"\n]), printCdnWarning = createWarningPrinter([\n \"Since you haven't set a value for `useCdn`, we will deliver content using our\",\n \"global, edge-cached API-CDN. If you wish to have content delivered faster, set\",\n \"`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API.\"\n]), printCdnPreviewDraftsWarning = createWarningPrinter([\n \"The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.\",\n \"The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning.\"\n]), printPreviewDraftsDeprecationWarning = createWarningPrinter([\n \"The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version\"\n]), printBrowserTokenWarning = createWarningPrinter([\n \"You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.\",\n `See ${generateHelpUrl(\n \"js-client-browser-token\"\n )} for more information and how to hide this warning.`\n]), printCredentialedTokenWarning = createWarningPrinter([\n \"You have configured Sanity client to use a token, but also provided `withCredentials: true`.\",\n \"This is no longer supported - only token will be used - remove `withCredentials: true`.\"\n]), printNoApiVersionSpecifiedWarning = createWarningPrinter([\n \"Using the Sanity client without specifying an API version is deprecated.\",\n `See ${generateHelpUrl(\"js-client-api-version\")}`\n]), printNoDefaultExport = createWarningPrinter([\n \"The default export of @sanity/client has been deprecated. Use the named export `createClient` instead.\"\n]), defaultCdnHost = \"apicdn.sanity.io\", defaultConfig = {\n apiHost: \"https://api.sanity.io\",\n apiVersion: \"1\",\n useProjectHostname: !0,\n stega: { enabled: !1 }\n}, LOCALHOSTS = [\"localhost\", \"127.0.0.1\", \"0.0.0.0\"], isLocal = (host) => LOCALHOSTS.indexOf(host) !== -1;\nfunction validateApiVersion(apiVersion) {\n if (apiVersion === \"1\" || apiVersion === \"X\")\n return;\n const apiDate = new Date(apiVersion);\n if (!(/^\\d{4}-\\d{2}-\\d{2}$/.test(apiVersion) && apiDate instanceof Date && apiDate.getTime() > 0))\n throw new Error(\"Invalid API version string, expected `1` or date in format `YYYY-MM-DD`\");\n}\nfunction validateApiPerspective(perspective) {\n if (Array.isArray(perspective) && perspective.length > 1 && perspective.includes(\"raw\"))\n throw new TypeError(\n 'Invalid API perspective value: \"raw\". The raw-perspective can not be combined with other perspectives'\n );\n}\nconst initConfig = (config, prevConfig) => {\n const specifiedConfig = {\n ...prevConfig,\n ...config,\n stega: {\n ...typeof prevConfig.stega == \"boolean\" ? { enabled: prevConfig.stega } : prevConfig.stega || defaultConfig.stega,\n ...typeof config.stega == \"boolean\" ? { enabled: config.stega } : config.stega || {}\n }\n };\n specifiedConfig.apiVersion || printNoApiVersionSpecifiedWarning();\n const newConfig = {\n ...defaultConfig,\n ...specifiedConfig\n }, projectBased = newConfig.useProjectHostname && !newConfig[\"~experimental_resource\"];\n if (typeof Promise > \"u\") {\n const helpUrl = generateHelpUrl(\"js-client-promise-polyfill\");\n throw new Error(`No native Promise-implementation found, polyfill needed - see ${helpUrl}`);\n }\n if (projectBased && !newConfig.projectId)\n throw new Error(\"Configuration must contain `projectId`\");\n if (newConfig[\"~experimental_resource\"] && resourceConfig(newConfig), typeof newConfig.perspective < \"u\" && validateApiPerspective(newConfig.perspective), \"encodeSourceMap\" in newConfig)\n throw new Error(\n \"It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?\"\n );\n if (\"encodeSourceMapAtPath\" in newConfig)\n throw new Error(\n \"It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?\"\n );\n if (typeof newConfig.stega.enabled != \"boolean\")\n throw new Error(`stega.enabled must be a boolean, received ${newConfig.stega.enabled}`);\n if (newConfig.stega.enabled && newConfig.stega.studioUrl === void 0)\n throw new Error(\"stega.studioUrl must be defined when stega.enabled is true\");\n if (newConfig.stega.enabled && typeof newConfig.stega.studioUrl != \"string\" && typeof newConfig.stega.studioUrl != \"function\")\n throw new Error(\n `stega.studioUrl must be a string or a function, received ${newConfig.stega.studioUrl}`\n );\n const isBrowser = typeof window < \"u\" && window.location && window.location.hostname, isLocalhost = isBrowser && isLocal(window.location.hostname), hasToken = !!newConfig.token;\n newConfig.withCredentials && hasToken && (printCredentialedTokenWarning(), newConfig.withCredentials = !1), isBrowser && isLocalhost && hasToken && newConfig.ignoreBrowserTokenWarning !== !0 ? printBrowserTokenWarning() : typeof newConfig.useCdn > \"u\" && printCdnWarning(), projectBased && projectId(newConfig.projectId), newConfig.dataset && dataset(newConfig.dataset), \"requestTagPrefix\" in newConfig && (newConfig.requestTagPrefix = newConfig.requestTagPrefix ? requestTag(newConfig.requestTagPrefix).replace(/\\.+$/, \"\") : void 0), newConfig.apiVersion = `${newConfig.apiVersion}`.replace(/^v/, \"\"), newConfig.isDefaultApi = newConfig.apiHost === defaultConfig.apiHost, newConfig.useCdn === !0 && newConfig.withCredentials && printCdnAndWithCredentialsWarning(), newConfig.useCdn = newConfig.useCdn !== !1 && !newConfig.withCredentials, validateApiVersion(newConfig.apiVersion);\n const hostParts = newConfig.apiHost.split(\"://\", 2), protocol = hostParts[0], host = hostParts[1], cdnHost = newConfig.isDefaultApi ? defaultCdnHost : host;\n return projectBased ? (newConfig.url = `${protocol}://${newConfig.projectId}.${host}/v${newConfig.apiVersion}`, newConfig.cdnUrl = `${protocol}://${newConfig.projectId}.${cdnHost}/v${newConfig.apiVersion}`) : (newConfig.url = `${newConfig.apiHost}/v${newConfig.apiVersion}`, newConfig.cdnUrl = newConfig.url), newConfig;\n};\nclass ConnectionFailedError extends Error {\n name = \"ConnectionFailedError\";\n}\nclass DisconnectError extends Error {\n name = \"DisconnectError\";\n reason;\n constructor(message, reason, options = {}) {\n super(message, options), this.reason = reason;\n }\n}\nclass ChannelError extends Error {\n name = \"ChannelError\";\n data;\n constructor(message, data) {\n super(message), this.data = data;\n }\n}\nclass MessageError extends Error {\n name = \"MessageError\";\n data;\n constructor(message, data, options = {}) {\n super(message, options), this.data = data;\n }\n}\nclass MessageParseError extends Error {\n name = \"MessageParseError\";\n}\nconst REQUIRED_EVENTS = [\"channelError\", \"disconnect\"];\nfunction connectEventSource(initEventSource, events) {\n return defer(() => {\n const es = initEventSource();\n return isObservable(es) ? es : of(es);\n }).pipe(mergeMap((es) => connectWithESInstance(es, events)));\n}\nfunction connectWithESInstance(es, events) {\n return new Observable((observer) => {\n const emitOpen = events.includes(\"open\"), emitReconnect = events.includes(\"reconnect\");\n function onError(evt) {\n if (\"data\" in evt) {\n const [parseError, event] = parseEvent(evt);\n observer.error(\n parseError ? new MessageParseError(\"Unable to parse EventSource error message\", { cause: event }) : new MessageError((event?.data).message, event)\n );\n return;\n }\n es.readyState === es.CLOSED ? observer.error(new ConnectionFailedError(\"EventSource connection failed\")) : emitReconnect && observer.next({ type: \"reconnect\" });\n }\n function onOpen() {\n observer.next({ type: \"open\" });\n }\n function onMessage(message) {\n const [parseError, event] = parseEvent(message);\n if (parseError) {\n observer.error(\n new MessageParseError(\"Unable to parse EventSource message\", { cause: parseError })\n );\n return;\n }\n if (message.type === \"channelError\") {\n const tag = new URL(es.url).searchParams.get(\"tag\");\n observer.error(new ChannelError(extractErrorMessage(event?.data, tag), event.data));\n return;\n }\n if (message.type === \"disconnect\") {\n observer.error(\n new DisconnectError(\n `Server disconnected client: ${event.data?.reason || \"unknown error\"}`\n )\n );\n return;\n }\n observer.next({\n type: message.type,\n id: message.lastEventId,\n ...event.data ? { data: event.data } : {}\n });\n }\n es.addEventListener(\"error\", onError), emitOpen && es.addEventListener(\"open\", onOpen);\n const cleanedEvents = [.../* @__PURE__ */ new Set([...REQUIRED_EVENTS, ...events])].filter((type) => type !== \"error\" && type !== \"open\" && type !== \"reconnect\");\n return cleanedEvents.forEach((type) => es.addEventListener(type, onMessage)), () => {\n es.removeEventListener(\"error\", onError), emitOpen && es.removeEventListener(\"open\", onOpen), cleanedEvents.forEach((type) => es.removeEventListener(type, onMessage)), es.close();\n };\n });\n}\nfunction parseEvent(message) {\n try {\n const data = typeof message.data == \"string\" && JSON.parse(message.data);\n return [\n null,\n {\n type: message.type,\n id: message.lastEventId,\n ...isEmptyObject(data) ? {} : { data }\n }\n ];\n } catch (err) {\n return [err, null];\n }\n}\nfunction extractErrorMessage(err, tag) {\n const error = err.error;\n return error ? isQueryParseError(error) ? formatQueryParseError(error, tag) : error.description ? error.description : typeof error == \"string\" ? error : JSON.stringify(error, null, 2) : err.message || \"Unknown listener error\";\n}\nfunction isEmptyObject(data) {\n for (const _ in data)\n return !1;\n return !0;\n}\nfunction getSelection(sel) {\n if (typeof sel == \"string\")\n return { id: sel };\n if (Array.isArray(sel))\n return { query: \"*[_id in $ids]\", params: { ids: sel } };\n if (typeof sel == \"object\" && sel !== null && \"query\" in sel && typeof sel.query == \"string\")\n return \"params\" in sel && typeof sel.params == \"object\" && sel.params !== null ? { query: sel.query, params: sel.params } : { query: sel.query };\n const selectionOpts = [\n \"* Document ID (<docId>)\",\n \"* Array of document IDs\",\n \"* Object containing `query`\"\n ].join(`\n`);\n throw new Error(`Unknown selection - must be one of:\n\n${selectionOpts}`);\n}\nclass BasePatch {\n selection;\n operations;\n constructor(selection, operations = {}) {\n this.selection = selection, this.operations = operations;\n }\n /**\n * Sets the given attributes to the document. Does NOT merge objects.\n * The operation is added to the current patch, ready to be commited by `commit()`\n *\n * @param attrs - Attributes to set. To set a deep attribute, use JSONMatch, eg: \\{\"nested.prop\": \"value\"\\}\n */\n set(attrs) {\n return this._assign(\"set\", attrs);\n }\n /**\n * Sets the given attributes to the document if they are not currently set. Does NOT merge objects.\n * The operation is added to the current patch, ready to be commited by `commit()`\n *\n * @param attrs - Attributes to set. To set a deep attribute, use JSONMatch, eg: \\{\"nested.prop\": \"value\"\\}\n */\n setIfMissing(attrs) {\n return this._assign(\"setIfMissing\", attrs);\n }\n /**\n * Performs a \"diff-match-patch\" operation on the string attributes provided.\n * The operation is added to the current patch, ready to be commited by `commit()`\n *\n * @param attrs - Attributes to perform operation on. To set a deep attribute, use JSONMatch, eg: \\{\"nested.prop\": \"dmp\"\\}\n */\n diffMatchPatch(attrs) {\n return validateObject(\"diffMatchPatch\", attrs), this._assign(\"diffMatchPatch\", attrs);\n }\n /**\n * Unsets the attribute paths provided.\n * The operation is added to the current patch, ready to be commited by `commit()`\n *\n * @param attrs - Attribute paths to unset.\n */\n unset(attrs) {\n if (!Array.isArray(attrs))\n throw new Error(\"unset(attrs) takes an array of attributes to unset, non-array given\");\n return this.operations = Object.assign({}, this.operations, { unset: attrs }), this;\n }\n /**\n * Increment a numeric value. Each entry in the argument is either an attribute or a JSON path. The value may be a positive or negative integer or floating-point value. The operation will fail if target value is not a numeric value, or doesn't exist.\n *\n * @param attrs - Object of attribute paths to increment, values representing the number to increment by.\n */\n inc(attrs) {\n return this._assign(\"inc\", attrs);\n }\n /**\n * Decrement a numeric value. Each entry in the argument is either an attribute or a JSON path. The value may be a positive or negative integer or floating-point value. The operation will fail if target value is not a numeric value, or doesn't exist.\n *\n * @param attrs - Object of attribute paths to decrement, values representing the number to decrement by.\n */\n dec(attrs) {\n return this._assign(\"dec\", attrs);\n }\n /**\n * Provides methods for modifying arrays, by inserting, appending and replacing elements via a JSONPath expression.\n *\n * @param at - Location to insert at, relative to the given selector, or 'replace' the matched path\n * @param selector - JSONPath expression, eg `comments[-1]` or `blocks[_key==\"abc123\"]`\n * @param items - Array of items to insert/replace\n */\n insert(at, selector, items) {\n return validateInsert(at, selector, items), this._assign(\"insert\", { [at]: selector, items });\n }\n /**\n * Append the given items to the array at the given JSONPath\n *\n * @param selector - Attribute/path to append to, eg `comments` or `person.hobbies`\n * @param items - Array of items to append to the array\n */\n append(selector, items) {\n return this.insert(\"after\", `${selector}[-1]`, items);\n }\n /**\n * Prepend the given items to the array at the given JSONPath\n *\n * @param selector - Attribute/path to prepend to, eg `comments` or `person.hobbies`\n * @param items - Array of items to prepend to the array\n */\n prepend(selector, items) {\n return this.insert(\"before\", `${selector}[0]`, items);\n }\n /**\n * Change the contents of an array by removing existing elements and/or adding new elements.\n *\n * @param selector - Attribute or JSONPath expression for array\n * @param start - Index at which to start changing the array (with origin 0). If greater than the length of the array, actual starting index will be set to the length of the array. If negative, will begin that many elements from the end of the array (with origin -1) and will be set to 0 if absolute value is greater than the length of the array.x\n * @param deleteCount - An integer indicating the number of old array elements to remove.\n * @param items - The elements to add to the array, beginning at the start index. If you don't specify any elements, splice() will only remove elements from the array.\n */\n splice(selector, start, deleteCount, items) {\n const delAll = typeof deleteCount > \"u\" || deleteCount === -1, startIndex = start < 0 ? start - 1 : start, delCount = delAll ? -1 : Math.max(0, start + deleteCount), delRange = startIndex < 0 && delCount >= 0 ? \"\" : delCount, rangeSelector = `${selector}[${startIndex}:${delRange}]`;\n return this.insert(\"replace\", rangeSelector, items || []);\n }\n /**\n * Adds a revision clause, preventing the document from being patched if the `_rev` property does not match the given value\n *\n * @param rev - Revision to lock the patch to\n */\n ifRevisionId(rev) {\n return this.operations.ifRevisionID = rev, this;\n }\n /**\n * Return a plain JSON representation of the patch\n */\n serialize() {\n return { ...getSelection(this.selection), ...this.operations };\n }\n /**\n * Return a plain JSON representation of the patch\n */\n toJSON() {\n return this.serialize();\n }\n /**\n * Clears the patch of all operations\n */\n reset() {\n return this.operations = {}, this;\n }\n _assign(op, props, merge2 = !0) {\n return validateObject(op, props), this.operations = Object.assign({}, this.operations, {\n [op]: Object.assign({}, merge2 && this.operations[op] || {}, props)\n }), this;\n }\n _set(op, props) {\n return this._assign(op, props, !1);\n }\n}\nclass ObservablePatch extends BasePatch {\n #client;\n constructor(selection, operations, client) {\n super(selection, operations), this.#client = client;\n }\n /**\n * Clones the patch\n */\n clone() {\n return new ObservablePatch(this.selection, { ...this.operations }, this.#client);\n }\n commit(options) {\n if (!this.#client)\n throw new Error(\n \"No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method\"\n );\n const returnFirst = typeof this.selection == \"string\", opts = Object.assign({ returnFirst, returnDocuments: !0 }, options);\n return this.#client.mutate({ patch: this.serialize() }, opts);\n }\n}\nclass Patch extends BasePatch {\n #client;\n constructor(selection, operations, client) {\n super(selection, operations), this.#client = client;\n }\n /**\n * Clones the patch\n */\n clone() {\n return new Patch(this.selection, { ...this.operations }, this.#client);\n }\n commit(options) {\n if (!this.#client)\n throw new Error(\n \"No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method\"\n );\n const returnFirst = typeof this.selection == \"string\", opts = Object.assign({ returnFirst, returnDocuments: !0 }, options);\n return this.#client.mutate({ patch: this.serialize() }, opts);\n }\n}\nconst defaultMutateOptions = { returnDocuments: !1 };\nclass BaseTransaction {\n operations;\n trxId;\n constructor(operations = [], transactionId) {\n this.operations = operations, this.trxId = transactionId;\n }\n /**\n * Creates a new Sanity document. If `_id` is provided and already exists, the mutation will fail. If no `_id` is given, one will automatically be generated by the database.\n * The operation is added to the current transaction, ready to be commited by `commit()`\n *\n * @param doc - Document to create. Requires a `_type` property.\n */\n create(doc) {\n return validateObject(\"create\", doc), this._add({ create: doc });\n }\n /**\n * Creates a new Sanity document. If a document with the same `_id` already exists, the create operation will be ignored.\n * The operation is added to the current transaction, ready to be commited by `commit()`\n *\n * @param doc - Document to create if it does not already exist. Requires `_id` and `_type` properties.\n */\n createIfNotExists(doc) {\n const op = \"createIfNotExists\";\n return validateObject(op, doc), requireDocumentId(op, doc), this._add({ [op]: doc });\n }\n /**\n * Creates a new Sanity document, or replaces an existing one if the same `_id` is already used.\n * The operation is added to the current transaction, ready to be commited by `commit()`\n *\n * @param doc - Document to create or replace. Requires `_id` and `_type` properties.\n */\n createOrReplace(doc) {\n const op = \"createOrReplace\";\n return validateObject(op, doc), requireDocumentId(op, doc), this._add({ [op]: doc });\n }\n /**\n * Deletes the document with the given document ID\n * The operation is added to the current transaction, ready to be commited by `commit()`\n *\n * @param documentId - Document ID to delete\n */\n delete(documentId) {\n return validateDocumentId(\"delete\", documentId), this._add({ delete: { id: documentId } });\n }\n transactionId(id) {\n return id ? (this.trxId = id, this) : this.trxId;\n }\n /**\n * Return a plain JSON representation of the transaction\n */\n serialize() {\n return [...this.operations];\n }\n /**\n * Return a plain JSON representation of the transaction\n */\n toJSON() {\n return this.serialize();\n }\n /**\n * Clears the transaction of all operations\n */\n reset() {\n return this.operations = [], this;\n }\n _add(mut) {\n return this.operations.push(mut), this;\n }\n}\nclass Transaction extends BaseTransaction {\n #client;\n constructor(operations, client, transactionId) {\n super(operations, transactionId), this.#client = client;\n }\n /**\n * Clones the transaction\n */\n clone() {\n return new Transaction([...this.operations], this.#client, this.trxId);\n }\n commit(options) {\n if (!this.#client)\n throw new Error(\n \"No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method\"\n );\n return this.#client.mutate(\n this.serialize(),\n Object.assign({ transactionId: this.trxId }, defaultMutateOptions, options || {})\n );\n }\n patch(patchOrDocumentId, patchOps) {\n const isBuilder = typeof patchOps == \"function\", isPatch = typeof patchOrDocumentId != \"string\" && patchOrDocumentId instanceof Patch, isMutationSelection = typeof patchOrDocumentId == \"object\" && (\"query\" in patchOrDocumentId || \"id\" in patchOrDocumentId);\n if (isPatch)\n return this._add({ patch: patchOrDocumentId.serialize() });\n if (isBuilder) {\n const patch = patchOps(new Patch(patchOrDocumentId, {}, this.#client));\n if (!(patch instanceof Patch))\n throw new Error(\"function passed to `patch()` must return the patch\");\n return this._add({ patch: patch.serialize() });\n }\n if (isMutationSelection) {\n const patch = new Patch(patchOrDocumentId, patchOps || {}, this.#client);\n return this._add({ patch: patch.serialize() });\n }\n return this._add({ patch: { id: patchOrDocumentId, ...patchOps } });\n }\n}\nclass ObservableTransaction extends BaseTransaction {\n #client;\n constructor(operations, client, transactionId) {\n super(operations, transactionId), this.#client = client;\n }\n /**\n * Clones the transaction\n */\n clone() {\n return new ObservableTransaction([...this.operations], this.#client, this.trxId);\n }\n commit(options) {\n if (!this.#client)\n throw new Error(\n \"No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method\"\n );\n return this.#client.mutate(\n this.serialize(),\n Object.assign({ transactionId: this.trxId }, defaultMutateOptions, options || {})\n );\n }\n patch(patchOrDocumentId, patchOps) {\n const isBuilder = typeof patchOps == \"function\";\n if (typeof patchOrDocumentId != \"string\" && patchOrDocumentId instanceof ObservablePatch)\n return this._add({ patch: patchOrDocumentId.serialize() });\n if (isBuilder) {\n const patch = patchOps(new ObservablePatch(patchOrDocumentId, {}, this.#client));\n if (!(patch instanceof ObservablePatch))\n throw new Error(\"function passed to `patch()` must return the patch\");\n return this._add({ patch: patch.serialize() });\n }\n return this._add({ patch: { id: patchOrDocumentId, ...patchOps } });\n }\n}\nconst projectHeader = \"X-Sanity-Project-ID\";\nfunction requestOptions(config, overrides = {}) {\n const headers = {};\n config.headers && Object.assign(headers, config.headers);\n const token = overrides.token || config.token;\n token && (headers.Authorization = `Bearer ${token}`), !overrides.useGlobalApi && !config.useProjectHostname && config.projectId && (headers[projectHeader] = config.projectId);\n const withCredentials = !!(typeof overrides.withCredentials > \"u\" ? config.withCredentials : overrides.withCredentials), timeout = typeof overrides.timeout > \"u\" ? config.timeout : overrides.timeout;\n return Object.assign({}, overrides, {\n headers: Object.assign({}, headers, overrides.headers || {}),\n timeout: typeof timeout > \"u\" ? 5 * 60 * 1e3 : timeout,\n proxy: overrides.proxy || config.proxy,\n json: !0,\n withCredentials,\n fetch: typeof overrides.fetch == \"object\" && typeof config.fetch == \"object\" ? { ...config.fetch, ...overrides.fetch } : overrides.fetch || config.fetch\n });\n}\nconst encodeQueryString = ({\n query,\n params = {},\n options = {}\n}) => {\n const searchParams = new URLSearchParams(), { tag, includeMutations, returnQuery, ...opts } = options;\n tag && searchParams.append(\"tag\", tag), searchParams.append(\"query\", query);\n for (const [key, value] of Object.entries(params))\n value !== void 0 && searchParams.append(`$${key}`, JSON.stringify(value));\n for (const [key, value] of Object.entries(opts))\n value && searchParams.append(key, `${value}`);\n return returnQuery === !1 && searchParams.append(\"returnQuery\", \"false\"), includeMutations === !1 && searchParams.append(\"includeMutations\", \"false\"), `?${searchParams}`;\n}, excludeFalsey = (param, defValue) => param === !1 ? void 0 : typeof param > \"u\" ? defValue : param, getMutationQuery = (options = {}) => ({\n dryRun: options.dryRun,\n returnIds: !0,\n returnDocuments: excludeFalsey(options.returnDocuments, !0),\n visibility: options.visibility || \"sync\",\n autoGenerateArrayKeys: options.autoGenerateArrayKeys,\n skipCrossDatasetReferenceValidation: options.skipCrossDatasetReferenceValidation\n}), isResponse = (event) => event.type === \"response\", getBody = (event) => event.body, indexBy = (docs, attr) => docs.reduce((indexed, doc) => (indexed[attr(doc)] = doc, indexed), /* @__PURE__ */ Object.create(null)), getQuerySizeLimit = 11264;\nfunction _fetch(client, httpRequest, _stega, query, _params = {}, options = {}) {\n const stega = \"stega\" in options ? {\n ..._stega || {},\n ...typeof options.stega == \"boolean\" ? { enabled: options.stega } : options.stega || {}\n } : _stega, params = stega.enabled ? stegaClean(_params) : _params, mapResponse = options.filterResponse === !1 ? (res) => res : (res) => res.result, { cache, next, ...opts } = {\n // Opt out of setting a `signal` on an internal `fetch` if one isn't provided.\n // This is necessary in React Server Components to avoid opting out of Request Memoization.\n useAbortSignal: typeof options.signal < \"u\",\n // Set `resultSourceMap' when stega is enabled, as it's required for encoding.\n resultSourceMap: stega.enabled ? \"withKeyArraySelector\" : options.resultSourceMap,\n ...options,\n // Default to not returning the query, unless `filterResponse` is `false`,\n // or `returnQuery` is explicitly set. `true` is the default in Content Lake, so skip if truthy\n returnQuery: options.filterResponse === !1 && options.returnQuery !== !1\n }, reqOpts = typeof cache < \"u\" || typeof next < \"u\" ? { ...opts, fetch: { cache, next } } : opts, $request = _dataRequest(client, httpRequest, \"query\", { query, params }, reqOpts);\n return stega.enabled ? $request.pipe(\n combineLatestWith(\n from(\n import(\"./_chunks-es/stegaEncodeSourceMap.js\").then(function(n) {\n return n.stegaEncodeSourceMap$1;\n }).then(\n ({ stegaEncodeSourceMap }) => stegaEncodeSourceMap\n )\n )\n ),\n map(\n ([res, stegaEncodeSourceMap]) => {\n const result = stegaEncodeSourceMap(res.result, res.resultSourceMap, stega);\n return mapResponse({ ...res, result });\n }\n )\n ) : $request.pipe(map(mapResponse));\n}\nfunction _getDocument(client, httpRequest, id, opts = {}) {\n const docId = (() => {\n if (!opts.releaseId)\n return id;\n const versionId = getVersionFromId(id);\n if (!versionId) {\n if (isDraftId(id))\n throw new Error(\n `The document ID (\\`${id}\\`) is a draft, but \\`options.releaseId\\` is set as \\`${opts.releaseId}\\``\n );\n return getVersionId(id, opts.releaseId);\n }\n if (versionId !== opts.releaseId)\n throw new Error(\n `The document ID (\\`${id}\\`) is already a version of \\`${versionId}\\` release, but this does not match the provided \\`options.releaseId\\` (\\`${opts.releaseId}\\`)`\n );\n return id;\n })(), options = {\n uri: _getDataUrl(client, \"doc\", docId),\n json: !0,\n tag: opts.tag,\n signal: opts.signal\n };\n return _requestObservable(client, httpRequest, options).pipe(\n filter(isResponse),\n map((event) => event.body.documents && event.body.documents[0])\n );\n}\nfunction _getDocuments(client, httpRequest, ids, opts = {}) {\n const options = {\n uri: _getDataUrl(client, \"doc\", ids.join(\",\")),\n json: !0,\n tag: opts.tag,\n signal: opts.signal\n };\n return _requestObservable(client, httpRequest, options).pipe(\n filter(isResponse),\n map((event) => {\n const indexed = indexBy(event.body.documents || [], (doc) => doc._id);\n return ids.map((id) => indexed[id] || null);\n })\n );\n}\nfunction _getReleaseDocuments(client, httpRequest, releaseId, opts = {}) {\n return _dataRequest(\n client,\n httpRequest,\n \"query\",\n {\n query: \"*[sanity::partOfRelease($releaseId)]\",\n params: {\n releaseId\n }\n },\n opts\n );\n}\nfunction _createIfNotExists(client, httpRequest, doc, options) {\n return requireDocumentId(\"createIfNotExists\", doc), _create(client, httpRequest, doc, \"createIfNotExists\", options);\n}\nfunction _createOrReplace(client, httpRequest, doc, options) {\n return requireDocumentId(\"createOrReplace\", doc), _create(client, httpRequest, doc, \"createOrReplace\", options);\n}\nfunction _createVersion(client, httpRequest, doc, publishedId, options) {\n return requireDocumentId(\"createVersion\", doc), requireDocumentType(\"createVersion\", doc), _action(client, httpRequest, {\n actionType: \"sanity.action.document.version.create\",\n publishedId,\n document: doc\n }, options);\n}\nfunction _delete(client, httpRequest, selection, options) {\n return _dataRequest(\n client,\n httpRequest,\n \"mutate\",\n { mutations: [{ delete: getSelection(selection) }] },\n options\n );\n}\nfunction _discardVersion(client, httpRequest, versionId, purge = !1, options) {\n return _action(client, httpRequest, {\n actionType: \"sanity.action.document.version.discard\",\n versionId,\n purge\n }, options);\n}\nfunction _replaceVersion(client, httpRequest, doc, options) {\n return requireDocumentId(\"replaceVersion\", doc), requireDocumentType(\"replaceVersion\", doc), _action(client, httpRequest, {\n actionType: \"sanity.action.document.version.replace\",\n document: doc\n }, options);\n}\nfunction _unpublishVersion(client, httpRequest, versionId, publishedId, options) {\n return _action(client, httpRequest, {\n actionType: \"sanity.action.document.version.unpublish\",\n versionId,\n publishedId\n }, options);\n}\nfunction _mutate(client, httpRequest, mutations, options) {\n let mut;\n mutations instanceof Patch || mutations instanceof ObservablePatch ? mut = { patch: mutations.serialize() } : mutations instanceof Transaction || mutations instanceof ObservableTransaction ? mut = mutations.serialize() : mut = mutations;\n const muts = Array.isArray(mut) ? mut : [mut], transactionId = options && options.transactionId || void 0;\n return _dataRequest(client, httpRequest, \"mutate\", { mutations: muts, transactionId }, options);\n}\nfunction _action(client, httpRequest, actions, options) {\n const acts = Array.isArray(actions) ? actions : [actions], transactionId = options && options.transactionId || void 0, skipCrossDatasetReferenceValidation = options && options.skipCrossDatasetReferenceValidation || void 0, dryRun = options && options.dryRun || void 0;\n return _dataRequest(\n client,\n httpRequest,\n \"actions\",\n { actions: acts, transactionId, skipCrossDatasetReferenceValidation, dryRun },\n options\n );\n}\nfunction _dataRequest(client, httpRequest, endpoint, body, options = {}) {\n const isMutation = endpoint === \"mutate\", isAction = endpoint === \"actions\", isQuery2 = endpoint === \"query\", strQuery = isMutation || isAction ? \"\" : encodeQueryString(body), useGet = !isMutation && !isAction && strQuery.length < getQuerySizeLimit, stringQuery = useGet ? strQuery : \"\", returnFirst = options.returnFirst, { timeout, token, tag, headers, returnQuery, lastLiveEventId, cacheMode } = options, uri = _getDataUrl(client, endpoint, stringQuery), reqOptions = {\n method: useGet ? \"GET\" : \"POST\",\n uri,\n json: !0,\n body: useGet ? void 0 : body,\n query: isMutation && getMutationQuery(options),\n timeout,\n headers,\n token,\n tag,\n returnQuery,\n perspective: options.perspective,\n resultSourceMap: options.resultSourceMap,\n lastLiveEventId: Array.isArray(lastLiveEventId) ? lastLiveEventId[0] : lastLiveEventId,\n cacheMode,\n canUseCdn: isQuery2,\n signal: options.signal,\n fetch: options.fetch,\n useAbortSignal: options.useAbortSignal,\n useCdn: options.useCdn\n };\n return _requestObservable(client, httpRequest, reqOptions).pipe(\n filter(isResponse),\n map(getBody),\n map((res) => {\n if (!isMutation)\n return res;\n const results = res.results || [];\n if (options.returnDocuments)\n return returnFirst ? results[0] && results[0].document : results.map((mut) => mut.document);\n const key = returnFirst ? \"documentId\" : \"documentIds\", ids = returnFirst ? results[0] && results[0].id : results.map((mut) => mut.id);\n return {\n transactionId: res.transactionId,\n results,\n [key]: ids\n };\n })\n );\n}\nfunction _create(client, httpRequest, doc, op, options = {}) {\n const mutation = { [op]: doc }, opts = Object.assign({ returnFirst: !0, returnDocuments: !0 }, options);\n return _dataRequest(client, httpRequest, \"mutate\", { mutations: [mutation] }, opts);\n}\nconst hasDataConfig = (client) => client.config().dataset !== void 0 && client.config().projectId !== void 0 || client.config()[\"~experimental_resource\"] !== void 0, isQuery = (client, uri) => hasDataConfig(client) && uri.startsWith(_getDataUrl(client, \"query\")), isMutate = (client, uri) => hasDataConfig(client) && uri.startsWith(_getDataUrl(client, \"mutate\")), isDoc = (client, uri) => hasDataConfig(client) && uri.startsWith(_getDataUrl(client, \"doc\", \"\")), isListener = (client, uri) => hasDataConfig(client) && uri.startsWith(_getDataUrl(client, \"listen\")), isHistory = (client, uri) => hasDataConfig(client) && uri.startsWith(_getDataUrl(client, \"history\", \"\")), isData = (client, uri) => uri.startsWith(\"/data/\") || isQuery(client, uri) || isMutate(client, uri) || isDoc(client, uri) || isListener(client, uri) || isHistory(client, uri);\nfunction _requestObservable(client, httpRequest, options) {\n const uri = options.url || options.uri, config = client.config(), canUseCdn = typeof options.canUseCdn > \"u\" ? [\"GET\", \"HEAD\"].indexOf(options.method || \"GET\") >= 0 && isData(client, uri) : options.canUseCdn;\n let useCdn = (options.useCdn ?? config.useCdn) && canUseCdn;\n const tag = options.tag && config.requestTagPrefix ? [config.requestTagPrefix, options.tag].join(\".\") : options.tag || config.requestTagPrefix;\n if (tag && options.tag !== null && (options.query = { tag: requestTag(tag), ...options.query }), [\"GET\", \"HEAD\", \"POST\"].indexOf(options.method || \"GET\") >= 0 && isQuery(client, uri)) {\n const resultSourceMap = options.resultSourceMap ?? config.resultSourceMap;\n resultSourceMap !== void 0 && resultSourceMap !== !1 && (options.query = { resultSourceMap, ...options.query });\n const perspectiveOption = options.perspective || config.perspective;\n typeof perspectiveOption < \"u\" && (perspectiveOption === \"previewDrafts\" && printPreviewDraftsDeprecationWarning(), validateApiPerspective(perspectiveOption), options.query = {\n perspective: Array.isArray(perspectiveOption) ? perspectiveOption.join(\",\") : perspectiveOption,\n ...options.query\n }, (Array.isArray(perspectiveOption) && perspectiveOption.length > 0 || // previewDrafts was renamed to drafts, but keep for backwards compat\n perspectiveOption === \"previewDrafts\" || perspectiveOption === \"drafts\") && useCdn && (useCdn = !1, printCdnPreviewDraftsWarning())), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: \"false\", ...options.query }), useCdn && options.cacheMode == \"noStale\" && (options.query = { cacheMode: \"noStale\", ...options.query });\n }\n const reqOptions = requestOptions(\n config,\n Object.assign({}, options, {\n url: _getUrl(client, uri, useCdn)\n })\n ), request = new Observable(\n (subscriber) => httpRequest(reqOptions, config.requester).subscribe(subscriber)\n );\n return options.signal ? request.pipe(_withAbortSignal(options.signal)) : request;\n}\nfunction _request(client, httpRequest, options) {\n return _requestObservable(client, httpRequest, options).pipe(\n filter((event) => event.type === \"response\"),\n map((event) => event.body)\n );\n}\nfunction _getDataUrl(client, operation, path) {\n const config = client.config();\n if (config[\"~experimental_resource\"]) {\n resourceConfig(config);\n const resourceBase = resourceDataBase(config), uri2 = path !== void 0 ? `${operation}/${path}` : operation;\n return `${resourceBase}/${uri2}`.replace(/\\/($|\\?)/, \"$1\");\n }\n const catalog = hasDataset(config), baseUri = `/${operation}/${catalog}`;\n return `/data${path !== void 0 ? `${baseUri}/${path}` : baseUri}`.replace(/\\/($|\\?)/, \"$1\");\n}\nfunction _getUrl(client, uri, canUseCdn = !1) {\n const { url, cdnUrl } = client.config();\n return `${canUseCdn ? cdnUrl : url}/${uri.replace(/^\\//, \"\")}`;\n}\nfunction _withAbortSignal(signal) {\n return (input) => new Observable((observer) => {\n const abort = () => observer.error(_createAbortError(signal));\n if (signal && signal.aborted) {\n abort();\n return;\n }\n const subscription = input.subscribe(observer);\n return signal.addEventListener(\"abort\", abort), () => {\n signal.removeEventListener(\"abort\", abort), subscription.unsubscribe();\n };\n });\n}\nconst isDomExceptionSupported = !!globalThis.DOMException;\nfunction _createAbortError(signal) {\n if (isDomExceptionSupported)\n return new DOMException(signal?.reason ?? \"The operation was aborted.\", \"AbortError\");\n const error = new Error(signal?.reason ?? \"The operation was aborted.\");\n return error.name = \"AbortError\", error;\n}\nconst resourceDataBase = (config) => {\n if (!config[\"~experimental_resource\"])\n throw new Error(\"`resource` must be provided to perform resource queries\");\n const { type, id } = config[\"~experimental_resource\"];\n switch (type) {\n case \"dataset\": {\n const segments = id.split(\".\");\n if (segments.length !== 2)\n throw new Error('Dataset ID must be in the format \"project.dataset\"');\n return `/projects/${segments[0]}/datasets/${segments[1]}`;\n }\n case \"canvas\":\n return `/canvases/${id}`;\n case \"media-library\":\n return `/media-libraries/${id}`;\n case \"dashboard\":\n return `/dashboards/${id}`;\n default:\n throw new Error(`Unsupported resource type: ${type.toString()}`);\n }\n};\nfunction _generate(client, httpRequest, request) {\n const dataset2 = hasDataset(client.config());\n return _request(client, httpRequest, {\n method: \"POST\",\n uri: `/agent/action/generate/${dataset2}`,\n body: request\n });\n}\nfunction _patch(client, httpRequest, request) {\n const dataset2 = hasDataset(client.config());\n return _request(client, httpRequest, {\n method: \"POST\",\n uri: `/agent/action/patch/${dataset2}`,\n body: request\n });\n}\nfunction _prompt(client, httpRequest, request) {\n const dataset2 = hasDataset(client.config());\n return _request(client, httpRequest, {\n method: \"POST\",\n uri: `/agent/action/prompt/${dataset2}`,\n body: request\n });\n}\nfunction _transform(client, httpRequest, request) {\n const dataset2 = hasDataset(client.config());\n return _request(client, httpRequest, {\n method: \"POST\",\n uri: `/agent/action/transform/${dataset2}`,\n body: request\n });\n}\nfunction _translate(client, httpRequest, request) {\n const dataset2 = hasDataset(client.config());\n return _request(client, httpRequest, {\n method: \"POST\",\n uri: `/agent/action/translate/${dataset2}`,\n body: request\n });\n}\nclass ObservableAgentsActionClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Run an instruction to generate content in a target document.\n * @param request - instruction request\n */\n generate(request) {\n return _generate(this.#client, this.#httpRequest, request);\n }\n /**\n * Transform a target document based on a source.\n * @param request - translation request\n */\n transform(request) {\n return _transform(this.#client, this.#httpRequest, request);\n }\n /**\n * Translate a target document based on a source.\n * @param request - translation request\n */\n translate(request) {\n return _translate(this.#client, this.#httpRequest, request);\n }\n}\nclass AgentActionsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Run an instruction to generate content in a target document.\n * @param request - instruction request\n */\n generate(request) {\n return lastValueFrom(_generate(this.#client, this.#httpRequest, request));\n }\n /**\n * Transform a target document based on a source.\n * @param request - translation request\n */\n transform(request) {\n return lastValueFrom(_transform(this.#client, this.#httpRequest, request));\n }\n /**\n * Translate a target document based on a source.\n * @param request - translation request\n */\n translate(request) {\n return lastValueFrom(_translate(this.#client, this.#httpRequest, request));\n }\n /**\n * Run a raw instruction and return the result either as text or json\n * @param request - prompt request\n */\n prompt(request) {\n return lastValueFrom(_prompt(this.#client, this.#httpRequest, request));\n }\n /**\n * Patch a document using a schema aware API.\n * Does not use an LLM, but uses the schema to ensure paths and values matches the schema.\n * @param request - instruction request\n */\n patch(request) {\n return lastValueFrom(_patch(this.#client, this.#httpRequest, request));\n }\n}\nclass ObservableAssetsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n upload(assetType, body, options) {\n return _upload(this.#client, this.#httpRequest, assetType, body, options);\n }\n}\nclass AssetsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n upload(assetType, body, options) {\n const observable2 = _upload(this.#client, this.#httpRequest, assetType, body, options);\n return lastValueFrom(\n observable2.pipe(\n filter((event) => event.type === \"response\"),\n map(\n (event) => event.body.document\n )\n )\n );\n }\n}\nfunction _upload(client, httpRequest, assetType, body, opts = {}) {\n validateAssetType(assetType);\n let meta = opts.extract || void 0;\n meta && !meta.length && (meta = [\"none\"]);\n const config = client.config(), options = optionsFromFile(opts, body), { tag, label, title, description, creditLine, filename, source } = options, query = {\n label,\n title,\n description,\n filename,\n meta,\n creditLine\n };\n return source && (query.sourceId = source.id, query.sourceName = source.name, query.sourceUrl = source.url), _requestObservable(client, httpRequest, {\n tag,\n method: \"POST\",\n timeout: options.timeout || 0,\n uri: buildAssetUploadUrl(config, assetType),\n headers: options.contentType ? { \"Content-Type\": options.contentType } : {},\n query,\n body\n });\n}\nfunction buildAssetUploadUrl(config, assetType) {\n const assetTypeEndpoint = assetType === \"image\" ? \"images\" : \"files\";\n if (config[\"~experimental_resource\"]) {\n const { type, id } = config[\"~experimental_resource\"];\n switch (type) {\n case \"dataset\":\n throw new Error(\n \"Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.\"\n );\n case \"canvas\":\n return `/canvases/${id}/assets/${assetTypeEndpoint}`;\n case \"media-library\":\n return `/media-libraries/${id}/upload`;\n case \"dashboard\":\n return `/dashboards/${id}/assets/${assetTypeEndpoint}`;\n default:\n throw new Error(`Unsupported resource type: ${type.toString()}`);\n }\n }\n const dataset2 = hasDataset(config);\n return `assets/${assetTypeEndpoint}/${dataset2}`;\n}\nfunction optionsFromFile(opts, file) {\n return typeof File > \"u\" || !(file instanceof File) ? opts : Object.assign(\n {\n filename: opts.preserveFilename === !1 ? void 0 : file.name,\n contentType: file.type\n },\n opts\n );\n}\nvar defaults = (obj, defaults2) => Object.keys(defaults2).concat(Object.keys(obj)).reduce((target, prop) => (target[prop] = typeof obj[prop] > \"u\" ? defaults2[prop] : obj[prop], target), {});\nconst pick = (obj, props) => props.reduce((selection, prop) => (typeof obj[prop] > \"u\" || (selection[prop] = obj[prop]), selection), {}), eventSourcePolyfill = defer(() => import(\"@sanity/eventsource\")).pipe(\n map(({ default: EventSource2 }) => EventSource2),\n shareReplay(1)\n);\nfunction reconnectOnConnectionFailure() {\n return function(source) {\n return source.pipe(\n catchError((err, caught) => err instanceof ConnectionFailedError ? concat(of({ type: \"reconnect\" }), timer(1e3).pipe(mergeMap(() => caught))) : throwError(() => err))\n );\n };\n}\nconst MAX_URL_LENGTH = 14800, possibleOptions = [\n \"includePreviousRevision\",\n \"includeResult\",\n \"includeMutations\",\n \"includeAllVersions\",\n \"visibility\",\n \"effectFormat\",\n \"tag\"\n], defaultOptions = {\n includeResult: !0\n};\nfunction _listen(query, params, opts = {}) {\n const { url, token, withCredentials, requestTagPrefix, headers: configHeaders } = this.config(), tag = opts.tag && requestTagPrefix ? [requestTagPrefix, opts.tag].join(\".\") : opts.tag, options = { ...defaults(opts, defaultOptions), tag }, listenOpts = pick(options, possibleOptions), qs = encodeQueryString({ query, params, options: { tag, ...listenOpts } }), uri = `${url}${_getDataUrl(this, \"listen\", qs)}`;\n if (uri.length > MAX_URL_LENGTH)\n return throwError(() => new Error(\"Query too large for listener\"));\n const listenFor = options.events ? options.events : [\"mutation\"], esOptions = {};\n return withCredentials && (esOptions.withCredentials = !0), (token || configHeaders) && (esOptions.headers = {}, token && (esOptions.headers.Authorization = `Bearer ${token}`), configHeaders && Object.assign(esOptions.headers, configHeaders)), connectEventSource(() => (\n // use polyfill if there is no global EventSource or if we need to set headers\n (typeof EventSource > \"u\" || esOptions.headers ? eventSourcePolyfill : of(EventSource)).pipe(map((EventSource2) => new EventSource2(uri, esOptions)))\n ), listenFor).pipe(\n reconnectOnConnectionFailure(),\n filter((event) => listenFor.includes(event.type)),\n map(\n (event) => ({\n type: event.type,\n ...\"data\" in event ? event.data : {}\n })\n )\n );\n}\nfunction shareReplayLatest(configOrPredicate, config) {\n return _shareReplayLatest(\n typeof configOrPredicate == \"function\" ? { predicate: configOrPredicate, ...config } : configOrPredicate\n );\n}\nfunction _shareReplayLatest(config) {\n return (source) => {\n let latest, emitted = !1;\n const { predicate, ...shareConfig } = config, wrapped = source.pipe(\n tap((value) => {\n config.predicate(value) && (emitted = !0, latest = value);\n }),\n finalize(() => {\n emitted = !1, latest = void 0;\n }),\n share(shareConfig)\n ), emitLatest = new Observable((subscriber) => {\n emitted && subscriber.next(\n // this cast is safe because of the emitted check which asserts that we got T from the source\n latest\n ), subscriber.complete();\n });\n return merge(wrapped, emitLatest);\n };\n}\nconst requiredApiVersion = \"2021-03-25\";\nclass LiveClient {\n #client;\n constructor(client) {\n this.#client = client;\n }\n /**\n * Requires `apiVersion` to be `2021-03-25` or later.\n */\n events({\n includeDrafts = !1,\n tag: _tag\n } = {}) {\n resourceGuard(\"live\", this.#client.config());\n const {\n projectId: projectId2,\n apiVersion: _apiVersion,\n token,\n withCredentials,\n requestTagPrefix,\n headers: configHeaders\n } = this.#client.config(), apiVersion = _apiVersion.replace(/^v/, \"\");\n if (apiVersion !== \"X\" && apiVersion < requiredApiVersion)\n throw new Error(\n `The live events API requires API version ${requiredApiVersion} or later. The current API version is ${apiVersion}. Please update your API version to use this feature.`\n );\n if (includeDrafts && !token && !withCredentials)\n throw new Error(\n \"The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.\"\n );\n const path = _getDataUrl(this.#client, \"live/events\"), url = new URL(this.#client.getUrl(path, !1)), tag = _tag && requestTagPrefix ? [requestTagPrefix, _tag].join(\".\") : _tag;\n tag && url.searchParams.set(\"tag\", tag), includeDrafts && url.searchParams.set(\"includeDrafts\", \"true\");\n const esOptions = {};\n includeDrafts && withCredentials && (esOptions.withCredentials = !0), (includeDrafts && token || configHeaders) && (esOptions.headers = {}, includeDrafts && token && (esOptions.headers.Authorization = `Bearer ${token}`), configHeaders && Object.assign(esOptions.headers, configHeaders));\n const key = `${url.href}::${JSON.stringify(esOptions)}`, existing = eventsCache.get(key);\n if (existing)\n return existing;\n const events = connectEventSource(() => (\n // use polyfill if there is no global EventSource or if we need to set headers\n (typeof EventSource > \"u\" || esOptions.headers ? eventSourcePolyfill : of(EventSource)).pipe(map((EventSource2) => new EventSource2(url.href, esOptions)))\n ), [\n \"message\",\n \"restart\",\n \"welcome\",\n \"reconnect\",\n \"goaway\"\n ]).pipe(\n reconnectOnConnectionFailure(),\n map((event) => {\n if (event.type === \"message\") {\n const { data, ...rest } = event;\n return { ...rest, tags: data.tags };\n }\n return event;\n })\n ), checkCors = fetchObservable(url, {\n method: \"OPTIONS\",\n mode: \"cors\",\n credentials: esOptions.withCredentials ? \"include\" : \"omit\",\n headers: esOptions.headers\n }).pipe(\n mergeMap(() => EMPTY),\n catchError(() => {\n throw new CorsOriginError({ projectId: projectId2 });\n })\n ), observable2 = concat(checkCors, events).pipe(\n finalize$1(() => eventsCache.delete(key)),\n shareReplayLatest({\n predicate: (event) => event.type === \"welcome\"\n })\n );\n return eventsCache.set(key, observable2), observable2;\n }\n}\nfunction fetchObservable(url, init) {\n return new Observable((observer) => {\n const controller = new AbortController(), signal = controller.signal;\n return fetch(url, { ...init, signal: controller.signal }).then(\n (response) => {\n observer.next(response), observer.complete();\n },\n (err) => {\n signal.aborted || observer.error(err);\n }\n ), () => controller.abort();\n });\n}\nconst eventsCache = /* @__PURE__ */ new Map();\nclass ObservableDatasetsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Create a new dataset with the given name\n *\n * @param name - Name of the dataset to create\n * @param options - Options for the dataset\n */\n create(name, options) {\n return _modify(this.#client, this.#httpRequest, \"PUT\", name, options);\n }\n /**\n * Edit a dataset with the given name\n *\n * @param name - Name of the dataset to edit\n * @param options - New options for the dataset\n */\n edit(name, options) {\n return _modify(this.#client, this.#httpRequest, \"PATCH\", name, options);\n }\n /**\n * Delete a dataset with the given name\n *\n * @param name - Name of the dataset to delete\n */\n delete(name) {\n return _modify(this.#client, this.#httpRequest, \"DELETE\", name);\n }\n /**\n * Fetch a list of datasets for the configured project\n */\n list() {\n return _request(this.#client, this.#httpRequest, {\n uri: \"/datasets\",\n tag: null\n });\n }\n}\nclass DatasetsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Create a new dataset with the given name\n *\n * @param name - Name of the dataset to create\n * @param options - Options for the dataset\n */\n create(name, options) {\n return resourceGuard(\"dataset\", this.#client.config()), lastValueFrom(\n _modify(this.#client, this.#httpRequest, \"PUT\", name, options)\n );\n }\n /**\n * Edit a dataset with the given name\n *\n * @param name - Name of the dataset to edit\n * @param options - New options for the dataset\n */\n edit(name, options) {\n return resourceGuard(\"dataset\", this.#client.config()), lastValueFrom(\n _modify(this.#client, this.#httpRequest, \"PATCH\", name, options)\n );\n }\n /**\n * Delete a dataset with the given name\n *\n * @param name - Name of the dataset to delete\n */\n delete(name) {\n return resourceGuard(\"dataset\", this.#client.config()), lastValueFrom(_modify(this.#client, this.#httpRequest, \"DELETE\", name));\n }\n /**\n * Fetch a list of datasets for the configured project\n */\n list() {\n return resourceGuard(\"dataset\", this.#client.config()), lastValueFrom(\n _request(this.#client, this.#httpRequest, { uri: \"/datasets\", tag: null })\n );\n }\n}\nfunction _modify(client, httpRequest, method, name, options) {\n return resourceGuard(\"dataset\", client.config()), dataset(name), _request(client, httpRequest, {\n method,\n uri: `/datasets/${name}`,\n body: options,\n tag: null\n });\n}\nclass ObservableProjectsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n list(options) {\n resourceGuard(\"projects\", this.#client.config());\n const uri = options?.includeMembers === !1 ? \"/projects?includeMembers=false\" : \"/projects\";\n return _request(this.#client, this.#httpRequest, { uri });\n }\n /**\n * Fetch a project by project ID\n *\n * @param projectId - ID of the project to fetch\n */\n getById(projectId2) {\n return resourceGuard(\"projects\", this.#client.config()), _request(this.#client, this.#httpRequest, { uri: `/projects/${projectId2}` });\n }\n}\nclass ProjectsClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n list(options) {\n resourceGuard(\"projects\", this.#client.config());\n const uri = options?.includeMembers === !1 ? \"/projects?includeMembers=false\" : \"/projects\";\n return lastValueFrom(_request(this.#client, this.#httpRequest, { uri }));\n }\n /**\n * Fetch a project by project ID\n *\n * @param projectId - ID of the project to fetch\n */\n getById(projectId2) {\n return resourceGuard(\"projects\", this.#client.config()), lastValueFrom(\n _request(this.#client, this.#httpRequest, { uri: `/projects/${projectId2}` })\n );\n }\n}\nconst generateReleaseId = customAlphabet(\n \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\",\n 8\n), getDocumentVersionId = (publishedId, releaseId) => releaseId ? getVersionId(publishedId, releaseId) : getDraftId(publishedId);\nfunction deriveDocumentVersionId(op, {\n releaseId,\n publishedId,\n document\n}) {\n if (publishedId && document._id) {\n const versionId = getDocumentVersionId(publishedId, releaseId);\n return validateVersionIdMatch(versionId, document), versionId;\n }\n if (document._id) {\n const isDraft = isDraftId(document._id), isVersion = isVersionId(document._id);\n if (!isDraft && !isVersion)\n throw new Error(\n `\\`${op}()\\` requires a document with an \\`_id\\` that is a version or draft ID`\n );\n if (releaseId) {\n if (isDraft)\n throw new Error(\n `\\`${op}()\\` was called with a document ID (\\`${document._id}\\`) that is a draft ID, but a release ID (\\`${releaseId}\\`) was also provided.`\n );\n const builtVersionId = getVersionFromId(document._id);\n if (builtVersionId !== releaseId)\n throw new Error(\n `\\`${op}()\\` was called with a document ID (\\`${document._id}\\`) that is a version ID, but the release ID (\\`${releaseId}\\`) does not match the document's version ID (\\`${builtVersionId}\\`).`\n );\n }\n return document._id;\n }\n if (publishedId)\n return getDocumentVersionId(publishedId, releaseId);\n throw new Error(`\\`${op}()\\` requires either a publishedId or a document with an \\`_id\\``);\n}\nconst getArgs = (releaseOrOptions, maybeOptions) => {\n if (typeof releaseOrOptions == \"object\" && releaseOrOptions !== null && (\"releaseId\" in releaseOrOptions || \"metadata\" in releaseOrOptions)) {\n const { releaseId = generateReleaseId(), metadata = {} } = releaseOrOptions;\n return [releaseId, metadata, maybeOptions];\n }\n return [generateReleaseId(), {}, releaseOrOptions];\n}, createRelease = (releaseOrOptions, maybeOptions) => {\n const [releaseId, metadata, options] = getArgs(releaseOrOptions, maybeOptions), finalMetadata = {\n ...metadata,\n releaseType: metadata.releaseType || \"undecided\"\n };\n return { action: {\n actionType: \"sanity.action.release.create\",\n releaseId,\n metadata: finalMetadata\n }, options };\n};\nclass ObservableReleasesClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * @public\n *\n * Retrieve a release by id.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to retrieve.\n * @param options - Additional query options including abort signal and query tag.\n * @returns An observable that resolves to the release document {@link ReleaseDocument}.\n *\n * @example Retrieving a release by id\n * ```ts\n * client.observable.releases.get({releaseId: 'my-release'}).pipe(\n * tap((release) => console.log(release)),\n * // {\n * // _id: '_.releases.my-release',\n * // name: 'my-release'\n * // _type: 'system.release',\n * // metadata: {releaseType: 'asap'},\n * // _createdAt: '2021-01-01T00:00:00.000Z',\n * // ...\n * // }\n * ).subscribe()\n * ```\n */\n get({ releaseId }, options) {\n return _getDocument(\n this.#client,\n this.#httpRequest,\n `_.releases.${releaseId}`,\n options\n );\n }\n create(releaseOrOptions, maybeOptions) {\n const { action, options } = createRelease(releaseOrOptions, maybeOptions), { releaseId, metadata } = action;\n return _action(this.#client, this.#httpRequest, action, options).pipe(\n map$1((actionResult) => ({\n ...actionResult,\n releaseId,\n metadata\n }))\n );\n }\n /**\n * @public\n *\n * Edits an existing release, updating the metadata.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to edit.\n * - `patch` - The patch operation to apply on the release metadata {@link PatchMutationOperation}.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n edit({ releaseId, patch }, options) {\n const editAction = {\n actionType: \"sanity.action.release.edit\",\n releaseId,\n patch\n };\n return _action(this.#client, this.#httpRequest, editAction, options);\n }\n /**\n * @public\n *\n * Publishes all documents in a release at once. For larger releases the effect of the publish\n * will be visible immediately when querying but the removal of the `versions.<releasesId>.*`\n * documents and creation of the corresponding published documents with the new content may\n * take some time.\n *\n * During this period both the source and target documents are locked and cannot be\n * modified through any other means.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to publish.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n publish({ releaseId }, options) {\n const publishAction = {\n actionType: \"sanity.action.release.publish\",\n releaseId\n };\n return _action(this.#client, this.#httpRequest, publishAction, options);\n }\n /**\n * @public\n *\n * An archive action removes an active release. The documents that comprise the release\n * are deleted and therefore no longer queryable.\n *\n * While the documents remain in retention the last version can still be accessed using document history endpoint.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to archive.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n archive({ releaseId }, options) {\n const archiveAction = {\n actionType: \"sanity.action.release.archive\",\n releaseId\n };\n return _action(this.#client, this.#httpRequest, archiveAction, options);\n }\n /**\n * @public\n *\n * An unarchive action restores an archived release and all documents\n * with the content they had just prior to archiving.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to unarchive.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n unarchive({ releaseId }, options) {\n const unarchiveAction = {\n actionType: \"sanity.action.release.unarchive\",\n releaseId\n };\n return _action(this.#client, this.#httpRequest, unarchiveAction, options);\n }\n /**\n * @public\n *\n * A schedule action queues a release for publishing at the given future time.\n * The release is locked such that no documents in the release can be modified and\n * no documents that it references can be deleted as this would make the publish fail.\n * At the given time, the same logic as for the publish action is triggered.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to schedule.\n * - `publishAt` - The serialised date and time to publish the release. If the `publishAt` is in the past, the release will be published immediately.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n schedule({ releaseId, publishAt }, options) {\n const scheduleAction = {\n actionType: \"sanity.action.release.schedule\",\n releaseId,\n publishAt\n };\n return _action(this.#client, this.#httpRequest, scheduleAction, options);\n }\n /**\n * @public\n *\n * An unschedule action stops a release from being published.\n * The documents in the release are considered unlocked and can be edited again.\n * This may fail if another release is scheduled to be published after this one and\n * has a reference to a document created by this one.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to unschedule.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n unschedule({ releaseId }, options) {\n const unscheduleAction = {\n actionType: \"sanity.action.release.unschedule\",\n releaseId\n };\n return _action(this.#client, this.#httpRequest, unscheduleAction, options);\n }\n /**\n * @public\n *\n * A delete action removes a published or archived release.\n * The backing system document will be removed from the dataset.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to delete.\n * @param options - Additional action options.\n * @returns An observable that resolves to the `transactionId`.\n */\n delete({ releaseId }, options) {\n const deleteAction = {\n actionType: \"sanity.action.release.delete\",\n releaseId\n };\n return _action(this.#client, this.#httpRequest, deleteAction, options);\n }\n /**\n * @public\n *\n * Fetch the documents in a release by release id.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to fetch documents for.\n * @param options - Additional mutation options {@link BaseMutationOptions}.\n * @returns An observable that resolves to the documents in the release.\n */\n fetchDocuments({ releaseId }, options) {\n return _getReleaseDocuments(this.#client, this.#httpRequest, releaseId, options);\n }\n}\nclass ReleasesClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * @public\n *\n * Retrieve a release by id.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to retrieve.\n * @param options - Additional query options including abort signal and query tag.\n * @returns A promise that resolves to the release document {@link ReleaseDocument}.\n *\n * @example Retrieving a release by id\n * ```ts\n * const release = await client.releases.get({releaseId: 'my-release'})\n * console.log(release)\n * // {\n * // _id: '_.releases.my-release',\n * // name: 'my-release'\n * // _type: 'system.release',\n * // metadata: {releaseType: 'asap'},\n * // _createdAt: '2021-01-01T00:00:00.000Z',\n * // ...\n * // }\n * ```\n */\n get({ releaseId }, options) {\n return lastValueFrom(\n _getDocument(\n this.#client,\n this.#httpRequest,\n `_.releases.${releaseId}`,\n options\n )\n );\n }\n async create(releaseOrOptions, maybeOptions) {\n const { action, options } = createRelease(releaseOrOptions, maybeOptions), { releaseId, metadata } = action;\n return { ...await lastValueFrom(\n _action(this.#client, this.#httpRequest, action, options)\n ), releaseId, metadata };\n }\n /**\n * @public\n *\n * Edits an existing release, updating the metadata.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to edit.\n * - `patch` - The patch operation to apply on the release metadata {@link PatchMutationOperation}.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n edit({ releaseId, patch }, options) {\n const editAction = {\n actionType: \"sanity.action.release.edit\",\n releaseId,\n patch\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, editAction, options));\n }\n /**\n * @public\n *\n * Publishes all documents in a release at once. For larger releases the effect of the publish\n * will be visible immediately when querying but the removal of the `versions.<releasesId>.*`\n * documents and creation of the corresponding published documents with the new content may\n * take some time.\n *\n * During this period both the source and target documents are locked and cannot be\n * modified through any other means.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to publish.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n publish({ releaseId }, options) {\n const publishAction = {\n actionType: \"sanity.action.release.publish\",\n releaseId\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, publishAction, options));\n }\n /**\n * @public\n *\n * An archive action removes an active release. The documents that comprise the release\n * are deleted and therefore no longer queryable.\n *\n * While the documents remain in retention the last version can still be accessed using document history endpoint.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to archive.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n archive({ releaseId }, options) {\n const archiveAction = {\n actionType: \"sanity.action.release.archive\",\n releaseId\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, archiveAction, options));\n }\n /**\n * @public\n *\n * An unarchive action restores an archived release and all documents\n * with the content they had just prior to archiving.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to unarchive.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n unarchive({ releaseId }, options) {\n const unarchiveAction = {\n actionType: \"sanity.action.release.unarchive\",\n releaseId\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, unarchiveAction, options));\n }\n /**\n * @public\n *\n * A schedule action queues a release for publishing at the given future time.\n * The release is locked such that no documents in the release can be modified and\n * no documents that it references can be deleted as this would make the publish fail.\n * At the given time, the same logic as for the publish action is triggered.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to schedule.\n * - `publishAt` - The serialised date and time to publish the release. If the `publishAt` is in the past, the release will be published immediately.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n schedule({ releaseId, publishAt }, options) {\n const scheduleAction = {\n actionType: \"sanity.action.release.schedule\",\n releaseId,\n publishAt\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, scheduleAction, options));\n }\n /**\n * @public\n *\n * An unschedule action stops a release from being published.\n * The documents in the release are considered unlocked and can be edited again.\n * This may fail if another release is scheduled to be published after this one and\n * has a reference to a document created by this one.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to unschedule.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n unschedule({ releaseId }, options) {\n const unscheduleAction = {\n actionType: \"sanity.action.release.unschedule\",\n releaseId\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, unscheduleAction, options));\n }\n /**\n * @public\n *\n * A delete action removes a published or archived release.\n * The backing system document will be removed from the dataset.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to delete.\n * @param options - Additional action options.\n * @returns A promise that resolves to the `transactionId`.\n */\n delete({ releaseId }, options) {\n const deleteAction = {\n actionType: \"sanity.action.release.delete\",\n releaseId\n };\n return lastValueFrom(_action(this.#client, this.#httpRequest, deleteAction, options));\n }\n /**\n * @public\n *\n * Fetch the documents in a release by release id.\n *\n * @category Releases\n *\n * @param params - Release action parameters:\n * - `releaseId` - The id of the release to fetch documents for.\n * @param options - Additional mutation options {@link BaseMutationOptions}.\n * @returns A promise that resolves to the documents in the release.\n */\n fetchDocuments({ releaseId }, options) {\n return lastValueFrom(_getReleaseDocuments(this.#client, this.#httpRequest, releaseId, options));\n }\n}\nclass ObservableUsersClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Fetch a user by user ID\n *\n * @param id - User ID of the user to fetch. If `me` is provided, a minimal response including the users role is returned.\n */\n getById(id) {\n return _request(\n this.#client,\n this.#httpRequest,\n { uri: `/users/${id}` }\n );\n }\n}\nclass UsersClient {\n #client;\n #httpRequest;\n constructor(client, httpRequest) {\n this.#client = client, this.#httpRequest = httpRequest;\n }\n /**\n * Fetch a user by user ID\n *\n * @param id - User ID of the user to fetch. If `me` is provided, a minimal response including the users role is returned.\n */\n getById(id) {\n return lastValueFrom(\n _request(this.#client, this.#httpRequest, {\n uri: `/users/${id}`\n })\n );\n }\n}\nclass ObservableSanityClient {\n assets;\n datasets;\n live;\n projects;\n users;\n agent;\n releases;\n /**\n * Private properties\n */\n #clientConfig;\n #httpRequest;\n /**\n * Instance properties\n */\n listen = _listen;\n constructor(httpRequest, config = defaultConfig) {\n this.config(config), this.#httpRequest = httpRequest, this.assets = new ObservableAssetsClient(this, this.#httpRequest), this.datasets = new ObservableDatasetsClient(this, this.#httpRequest), this.live = new LiveClient(this), this.projects = new ObservableProjectsClient(this, this.#httpRequest), this.users = new ObservableUsersClient(this, this.#httpRequest), this.agent = {\n action: new ObservableAgentsActionClient(this, this.#httpRequest)\n }, this.releases = new ObservableReleasesClient(this, this.#httpRequest);\n }\n /**\n * Clone the client - returns a new instance\n */\n clone() {\n return new ObservableSanityClient(this.#httpRequest, this.config());\n }\n config(newConfig) {\n if (newConfig === void 0)\n return { ...this.#clientConfig };\n if (this.#clientConfig && this.#clientConfig.allowReconfigure === !1)\n throw new Error(\n \"Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client\"\n );\n return this.#clientConfig = initConfig(newConfig, this.#clientConfig || {}), this;\n }\n /**\n * Clone the client with a new (partial) configuration.\n *\n * @param newConfig - New client configuration properties, shallowly merged with existing configuration\n */\n withConfig(newConfig) {\n const thisConfig = this.config();\n return new ObservableSanityClient(this.#httpRequest, {\n ...thisConfig,\n ...newConfig,\n stega: {\n ...thisConfig.stega || {},\n ...typeof newConfig?.stega == \"boolean\" ? { enabled: newConfig.stega } : newConfig?.stega || {}\n }\n });\n }\n fetch(query, params, options) {\n return _fetch(\n this,\n this.#httpRequest,\n this.#clientConfig.stega,\n query,\n params,\n options\n );\n }\n /**\n * Fetch a single document with the given ID.\n *\n * @param id - Document ID to fetch\n * @param options - Request options\n */\n getDocument(id, options) {\n return _getDocument(this, this.#httpRequest, id, options);\n }\n /**\n * Fetch multiple documents in one request.\n * Should be used sparingly - performing a query is usually a better option.\n * The order/position of documents is preserved based on the original array of IDs.\n * If any of the documents are missing, they will be replaced by a `null` entry in the returned array\n *\n * @param ids - Document IDs to fetch\n * @param options - Request options\n */\n getDocuments(ids, options) {\n return _getDocuments(this, this.#httpRequest, ids, options);\n }\n create(document, options) {\n return _create(this, this.#httpRequest, document, \"create\", options);\n }\n createIfNotExists(document, options) {\n return _createIfNotExists(this, this.#httpRequest, document, options);\n }\n createOrReplace(document, options) {\n return _createOrReplace(this, this.#httpRequest, document, options);\n }\n createVersion({\n document,\n publishedId,\n releaseId\n }, options) {\n const documentVersionId = deriveDocumentVersionId(\"createVersion\", {\n document,\n publishedId,\n releaseId\n }), documentVersion = { ...document, _id: documentVersionId }, versionPublishedId = publishedId || getPublishedId(document._id);\n return _createVersion(\n this,\n this.#httpRequest,\n documentVersion,\n versionPublishedId,\n options\n );\n }\n delete(selection, options) {\n return _delete(this, this.#httpRequest, selection, options);\n }\n /**\n * @public\n *\n * Deletes the draft or release version of a document.\n *\n * @remarks\n * * Discarding a version with no `releaseId` will discard the draft version of the published document.\n * * If the draft or release version does not exist, any error will throw.\n *\n * @param params - Version action parameters:\n * - `releaseId` - The ID of the release to discard the document from.\n * - `publishedId` - The published ID of the document to discard.\n * @param purge - if `true` the document history is also discarded.\n * @param options - Additional action options.\n * @returns an observable that resolves to the `transactionId`.\n *\n * @example Discarding a release version of a document\n * ```ts\n * client.observable.discardVersion({publishedId: 'myDocument', releaseId: 'myRelease'})\n * // The document with the ID `versions.myRelease.myDocument` will be discarded.\n * ```\n *\n * @example Discarding a draft version of a document\n * ```ts\n * client.observable.discardVersion({publishedId: 'myDocument'})\n * // The document with the ID `drafts.myDocument` will be discarded.\n * ```\n */\n discardVersion({ releaseId, publishedId }, purge, options) {\n const documentVersionId = getDocumentVersionId(publishedId, releaseId);\n return _discardVersion(this, this.#httpRequest, documentVersionId, purge, options);\n }\n replaceVersion({\n document,\n publishedId,\n releaseId\n }, options) {\n const documentVersionId = deriveDocumentVersionId(\"replaceVersion\", {\n document,\n publishedId,\n releaseId\n }), documentVersion = { ...document, _id: documentVersionId };\n return _replaceVersion(this, this.#httpRequest, documentVersion, options);\n }\n /**\n * @public\n *\n * Used to indicate when a document within a release should be unpublished when\n * the release is run.\n *\n * @remarks\n * * If the published document does not exist, an error will be thrown.\n *\n * @param params - Version action parameters:\n * - `releaseId` - The ID of the release to unpublish the document from.\n * - `publishedId` - The published ID of the document to unpublish.\n * @param options - Additional action options.\n * @returns an observable that resolves to the `transactionId`.\n *\n * @example Unpublishing a release version of a published document\n * ```ts\n * client.observable.unpublishVersion({publishedId: 'myDocument', releaseId: 'myRelease'})\n * // The document with the ID `versions.myRelease.myDocument` will be unpublished. when `myRelease` is run.\n * ```\n */\n unpublishVersion({ releaseId, publishedId }, options) {\n const versionId = getVersionId(publishedId, releaseId);\n return _unpublishVersion(this, this.#httpRequest, versionId, publishedId, options);\n }\n mutate(operations, options) {\n return _mutate(this, this.#httpRequest, operations, options);\n }\n /**\n * Create a new buildable patch of operations to perform\n *\n * @param selection - Document ID, an array of document IDs, or an object with `query` and optional `params`, defining which document(s) to patch\n * @param operations - Optional object of patch operations to initialize the patch instance with\n * @returns Patch instance - call `.commit()` to perform the operations defined\n */\n patch(selection, operations) {\n return new ObservablePatch(selection, operations, this);\n }\n /**\n * Create a new transaction of mutations\n *\n * @param operations - Optional array of mutation operations to initialize the transaction instance with\n */\n transaction(operations) {\n return new ObservableTransaction(operations, this);\n }\n /**\n * Perform action operations against the configured dataset\n *\n * @param operations - Action operation(s) to execute\n * @param options - Action options\n */\n action(operations, options) {\n return _action(this, this.#httpRequest, operations, options);\n }\n /**\n * Perform an HTTP request against the Sanity API\n *\n * @param options - Request options\n */\n request(options) {\n return _request(this, this.#httpRequest, options);\n }\n /**\n * Get a Sanity API URL for the URI provided\n *\n * @param uri - URI/path to build URL for\n * @param canUseCdn - Whether or not to allow using the API CDN for this route\n */\n getUrl(uri, canUseCdn) {\n return _getUrl(this, uri, canUseCdn);\n }\n /**\n * Get a Sanity API URL for the data operation and path provided\n *\n * @param operation - Data operation (eg `query`, `mutate`, `listen` or similar)\n * @param path - Path to append after the operation\n */\n getDataUrl(operation, path) {\n return _getDataUrl(this, operation, path);\n }\n}\nclass SanityClient {\n assets;\n datasets;\n live;\n projects;\n users;\n agent;\n releases;\n /**\n * Observable version of the Sanity client, with the same configuration as the promise-based one\n */\n observable;\n /**\n * Private properties\n */\n #clientConfig;\n #httpRequest;\n /**\n * Instance properties\n */\n listen = _listen;\n constructor(httpRequest, config = defaultConfig) {\n this.config(config), this.#httpRequest = httpRequest, this.assets = new AssetsClient(this, this.#httpRequest), this.datasets = new DatasetsClient(this, this.#httpRequest), this.live = new LiveClient(this), this.projects = new ProjectsClient(this, this.#httpRequest), this.users = new UsersClient(this, this.#httpRequest), this.agent = {\n action: new AgentActionsClient(this, this.#httpRequest)\n }, this.releases = new ReleasesClient(this, this.#httpRequest), this.observable = new ObservableSanityClient(httpRequest, config);\n }\n /**\n * Clone the client - returns a new instance\n */\n clone() {\n return new SanityClient(this.#httpRequest, this.config());\n }\n config(newConfig) {\n if (newConfig === void 0)\n return { ...this.#clientConfig };\n if (this.#clientConfig && this.#clientConfig.allowReconfigure === !1)\n throw new Error(\n \"Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client\"\n );\n return this.observable && this.observable.config(newConfig), this.#clientConfig = initConfig(newConfig, this.#clientConfig || {}), this;\n }\n /**\n * Clone the client with a new (partial) configuration.\n *\n * @param newConfig - New client configuration properties, shallowly merged with existing configuration\n */\n withConfig(newConfig) {\n const thisConfig = this.config();\n return new SanityClient(this.#httpRequest, {\n ...thisConfig,\n ...newConfig,\n stega: {\n ...thisConfig.stega || {},\n ...typeof newConfig?.stega == \"boolean\" ? { enabled: newConfig.stega } : newConfig?.stega || {}\n }\n });\n }\n fetch(query, params, options) {\n return lastValueFrom(\n _fetch(\n this,\n this.#httpRequest,\n this.#clientConfig.stega,\n query,\n params,\n options\n )\n );\n }\n /**\n * Fetch a single document with the given ID.\n *\n * @param id - Document ID to fetch\n * @param options - Request options\n */\n getDocument(id, options) {\n return lastValueFrom(_getDocument(this, this.#httpRequest, id, options));\n }\n /**\n * Fetch multiple documents in one request.\n * Should be used sparingly - performing a query is usually a better option.\n * The order/position of documents is preserved based on the original array of IDs.\n * If any of the documents are missing, they will be replaced by a `null` entry in the returned array\n *\n * @param ids - Document IDs to fetch\n * @param options - Request options\n */\n getDocuments(ids, options) {\n return lastValueFrom(_getDocuments(this, this.#httpRequest, ids, options));\n }\n create(document, options) {\n return lastValueFrom(\n _create(this, this.#httpRequest, document, \"create\", options)\n );\n }\n createIfNotExists(document, options) {\n return lastValueFrom(\n _createIfNotExists(this, this.#httpRequest, document, options)\n );\n }\n createOrReplace(document, options) {\n return lastValueFrom(\n _createOrReplace(this, this.#httpRequest, document, options)\n );\n }\n createVersion({\n document,\n publishedId,\n releaseId\n }, options) {\n const documentVersionId = deriveDocumentVersionId(\"createVersion\", {\n document,\n publishedId,\n releaseId\n }), documentVersion = { ...document, _id: documentVersionId }, versionPublishedId = publishedId || getPublishedId(document._id);\n return firstValueFrom(\n _createVersion(\n this,\n this.#httpRequest,\n documentVersion,\n versionPublishedId,\n options\n )\n );\n }\n delete(selection, options) {\n return lastValueFrom(_delete(this, this.#httpRequest, selection, options));\n }\n /**\n * @public\n *\n * Deletes the draft or release version of a document.\n *\n * @remarks\n * * Discarding a version with no `releaseId` will discard the draft version of the published document.\n * * If the draft or release version does not exist, any error will throw.\n *\n * @param params - Version action parameters:\n * - `releaseId` - The ID of the release to discard the document from.\n * - `publishedId` - The published ID of the document to discard.\n * @param purge - if `true` the document history is also discarded.\n * @param options - Additional action options.\n * @returns a promise that resolves to the `transactionId`.\n *\n * @example Discarding a release version of a document\n * ```ts\n * client.discardVersion({publishedId: 'myDocument', releaseId: 'myRelease'})\n * // The document with the ID `versions.myRelease.myDocument` will be discarded.\n * ```\n *\n * @example Discarding a draft version of a document\n * ```ts\n * client.discardVersion({publishedId: 'myDocument'})\n * // The document with the ID `drafts.myDocument` will be discarded.\n * ```\n */\n discardVersion({ releaseId, publishedId }, purge, options) {\n const documentVersionId = getDocumentVersionId(publishedId, releaseId);\n return lastValueFrom(\n _discardVersion(this, this.#httpRequest, documentVersionId, purge, options)\n );\n }\n replaceVersion({\n document,\n publishedId,\n releaseId\n }, options) {\n const documentVersionId = deriveDocumentVersionId(\"replaceVersion\", {\n document,\n publishedId,\n releaseId\n }), documentVersion = { ...document, _id: documentVersionId };\n return firstValueFrom(\n _replaceVersion(this, this.#httpRequest, documentVersion, options)\n );\n }\n /**\n * @public\n *\n * Used to indicate when a document within a release should be unpublished when\n * the release is run.\n *\n * @remarks\n * * If the published document does not exist, an error will be thrown.\n *\n * @param params - Version action parameters:\n * - `releaseId` - The ID of the release to unpublish the document from.\n * - `publishedId` - The published ID of the document to unpublish.\n * @param options - Additional action options.\n * @returns a promise that resolves to the `transactionId`.\n *\n * @example Unpublishing a release version of a published document\n * ```ts\n * await client.unpublishVersion({publishedId: 'myDocument', releaseId: 'myRelease'})\n * // The document with the ID `versions.myRelease.myDocument` will be unpublished. when `myRelease` is run.\n * ```\n */\n unpublishVersion({ releaseId, publishedId }, options) {\n const versionId = getVersionId(publishedId, releaseId);\n return lastValueFrom(\n _unpublishVersion(this, this.#httpRequest, versionId, publishedId, options)\n );\n }\n mutate(operations, options) {\n return lastValueFrom(_mutate(this, this.#httpRequest, operations, options));\n }\n /**\n * Create a new buildable patch of operations to perform\n *\n * @param selection - Document ID, an array of document IDs, or an object with `query` and optional `params`, defining which document(s) to patch\n * @param operations - Optional object of patch operations to initialize the patch instance with\n * @returns Patch instance - call `.commit()` to perform the operations defined\n */\n patch(documentId, operations) {\n return new Patch(documentId, operations, this);\n }\n /**\n * Create a new transaction of mutations\n *\n * @param operations - Optional array of mutation operations to initialize the transaction instance with\n */\n transaction(operations) {\n return new Transaction(operations, this);\n }\n /**\n * Perform action operations against the configured dataset\n * Returns a promise that resolves to the transaction result\n *\n * @param operations - Action operation(s) to execute\n * @param options - Action options\n */\n action(operations, options) {\n return lastValueFrom(_action(this, this.#httpRequest, operations, options));\n }\n /**\n * Perform a request against the Sanity API\n * NOTE: Only use this for Sanity API endpoints, not for your own APIs!\n *\n * @param options - Request options\n * @returns Promise resolving to the response body\n */\n request(options) {\n return lastValueFrom(_request(this, this.#httpRequest, options));\n }\n /**\n * Perform an HTTP request a `/data` sub-endpoint\n * NOTE: Considered internal, thus marked as deprecated. Use `request` instead.\n *\n * @deprecated - Use `request()` or your own HTTP library instead\n * @param endpoint - Endpoint to hit (mutate, query etc)\n * @param body - Request body\n * @param options - Request options\n * @internal\n */\n dataRequest(endpoint, body, options) {\n return lastValueFrom(_dataRequest(this, this.#httpRequest, endpoint, body, options));\n }\n /**\n * Get a Sanity API URL for the URI provided\n *\n * @param uri - URI/path to build URL for\n * @param canUseCdn - Whether or not to allow using the API CDN for this route\n */\n getUrl(uri, canUseCdn) {\n return _getUrl(this, uri, canUseCdn);\n }\n /**\n * Get a Sanity API URL for the data operation and path provided\n *\n * @param operation - Data operation (eg `query`, `mutate`, `listen` or similar)\n * @param path - Path to append after the operation\n */\n getDataUrl(operation, path) {\n return _getDataUrl(this, operation, path);\n }\n}\nfunction defineCreateClientExports(envMiddleware2, ClassConstructor) {\n return { requester: defineHttpRequest(envMiddleware2), createClient: (config) => {\n const clientRequester = defineHttpRequest(envMiddleware2);\n return new ClassConstructor(\n (options, requester2) => (requester2 || clientRequester)({\n maxRedirects: 0,\n maxRetries: config.maxRetries,\n retryDelay: config.retryDelay,\n ...options\n }),\n config\n );\n } };\n}\nfunction defineDeprecatedCreateClient(createClient2) {\n return function(config) {\n return printNoDefaultExport(), createClient2(config);\n };\n}\nvar envMiddleware = [];\nconst exp = defineCreateClientExports(envMiddleware, SanityClient), requester = exp.requester, createClient = exp.createClient, deprecatedCreateClient = defineDeprecatedCreateClient(createClient);\nexport {\n BasePatch,\n BaseTransaction,\n ChannelError,\n ClientError,\n ConnectionFailedError,\n CorsOriginError,\n DisconnectError,\n MessageError,\n MessageParseError,\n ObservablePatch,\n ObservableSanityClient,\n ObservableTransaction,\n Patch,\n SanityClient,\n ServerError,\n Transaction,\n connectEventSource,\n createClient,\n deprecatedCreateClient as default,\n formatQueryParseError,\n isQueryParseError,\n requester,\n adapter as unstable__adapter,\n environment as unstable__environment,\n validateApiPerspective\n};\n//# sourceMappingURL=index.browser.js.map\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7],"mappings":"+oFAEA,IAAA,EAA2B,EAAA,E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,CACD,OAAA,SAAS,EAAA,CACP,MAAO,KAAiB,CAAA,EAAA,EAAA,AACtB,CACD,CACF,IAAA,GAAA,CAAA,EACD,MAAI,GAAA,GAAkB,GAAA,GAAA,CAAA,GAAA,GAAA,UAAA,GAAA,GAAA,aAAA,GAAA,GAAA,GAAA"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{SafeSubscriber as e}from"./Observable-B8U6mp9h.mjs";import{EmptyError as t}from"./EmptyError-BLRYgvfy.mjs";function n(n,r){var i=typeof r==`object`;return new Promise(function(a,o){var s=new e({next:function(e){a(e),s.unsubscribe()},error:o,complete:function(){i?a(r.defaultValue):o(new t)}});n.subscribe(s)})}let r=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return(a=t)=>{let o=``;for(;;){let t=n(i),s=i|0;for(;s--;)if(o+=e[t[s]&r]||``,o.length===a)return o}}},a=(e,t=21)=>i(e,t,r),o=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+=`-`:e+=`_`,e),``);export{a as customAlphabet,n as firstValueFrom,o as nanoid};
|
2
|
-
//# sourceMappingURL=index.browser-m6o-65PH.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.browser-m6o-65PH.mjs","names":[],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/firstValueFrom.js","https://cdn.jsdelivr.net/npm/nanoid@3.3.11/index.browser.js"],"sourcesContent":["import { EmptyError } from './util/EmptyError';\nimport { SafeSubscriber } from './Subscriber';\nexport function firstValueFrom(source, config) {\n var hasConfig = typeof config === 'object';\n return new Promise(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n resolve(value);\n subscriber.unsubscribe();\n },\n error: reject,\n complete: function () {\n if (hasConfig) {\n resolve(config.defaultValue);\n }\n else {\n reject(new EmptyError());\n }\n },\n });\n source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=firstValueFrom.js.map","import { urlAlphabet } from './url-alphabet/index.js'\nlet random = bytes => crypto.getRandomValues(new Uint8Array(bytes))\nlet customRandom = (alphabet, defaultSize, getRandom) => {\n let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1\n let step = -~((1.6 * mask * defaultSize) / alphabet.length)\n return (size = defaultSize) => {\n let id = ''\n while (true) {\n let bytes = getRandom(step)\n let j = step | 0\n while (j--) {\n id += alphabet[bytes[j] & mask] || ''\n if (id.length === size) return id\n }\n }\n }\n}\nlet customAlphabet = (alphabet, size = 21) =>\n customRandom(alphabet, size, random)\nlet nanoid = (size = 21) =>\n crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {\n byte &= 63\n if (byte < 36) {\n id += byte.toString(36)\n } else if (byte < 62) {\n id += (byte - 26).toString(36).toUpperCase()\n } else if (byte > 62) {\n id += '-'\n } else {\n id += '_'\n }\n return id\n }, '')\nexport { nanoid, customAlphabet, customRandom, urlAlphabet, random }\n"],"x_google_ignoreList":[0,1],"mappings":"kHAEA,SAAgB,EAAe,EAAQ,EAAQ,CAC3C,IAAI,SAAmB,GAAW,SAClC,OAAO,IAAI,QAAQ,SAAU,EAAS,EAAQ,CAC1C,IAAI,EAAa,IAAI,EAAe,CAChC,KAAM,SAAU,EAAO,CAEnB,AADA,EAAQ,EAAM,CACd,EAAW,aAAa,AAC3B,EACD,MAAO,EACP,SAAU,UAAY,CAClB,AAAI,EACA,EAAQ,EAAO,aAAa,CAG5B,EAAO,IAAI,EAAa,AAE/B,CACJ,GACD,EAAO,UAAU,EAAW,AAC/B,EACJ,CCrBD,IAAI,EAAS,GAAS,OAAO,gBAAgB,IAAI,WAAW,GAAO,CAC/D,EAAe,CAAC,EAAU,EAAa,IAAc,CACvD,IAAI,GAAQ,GAAM,KAAK,IAAI,EAAS,OAAS,EAAE,CAAG,KAAK,KAAQ,EAC3D,KAAW,IAAM,EAAO,EAAe,EAAS,QACpD,MAAO,CAAC,EAAO,IAAgB,CAC7B,IAAI,EAAK,GACT,OAAa,CACX,IAAI,EAAQ,EAAU,EAAK,CACvB,EAAI,EAAO,EACf,KAAO,KAEL,GADA,GAAM,EAAS,EAAM,GAAK,IAAS,GAC/B,EAAG,SAAW,EAAM,OAAO,CAElC,CACF,CACF,EACG,EAAiB,CAAC,EAAU,EAAO,KACrC,EAAa,EAAU,EAAM,EAAO,CAClC,EAAS,CAAC,EAAO,KACnB,OAAO,gBAAgB,IAAI,WAAW,GAAM,CAAC,OAAO,CAAC,EAAI,KACvD,GAAQ,GACJ,EAAO,GACT,GAAM,EAAK,SAAS,GAAG,CACd,EAAO,GAChB,GAAM,CAAC,EAAO,IAAI,SAAS,GAAG,CAAC,aAAa,CACnC,EAAO,GAChB,GAAM,IAEN,GAAM,IAED,GACN,GAAG"}
|