sanity 3.93.1-next.24.b281fe165f → 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":"_createContext.mjs","names":["Context","createContext","SANITY_VERSION","MISSING_CONTEXT_HELP_URL","createGlobalScopedContext","ContextType","key","defaultValue","T","symbol","Symbol","for","document","window","navigator","userAgent","includes","context","displayName","globalScope","version","TypeError","warned","has","console","warn","add","Set","getGlobalScope","globalThis","self","global","Error"],"sources":["https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_createContext/createGlobalScopedContext.ts"],"sourcesContent":["import {type Context, createContext} from 'react'\n\nimport {SANITY_VERSION} from '../core/version'\n\nconst MISSING_CONTEXT_HELP_URL = 'https://www.sanity.io/help/missing-context-error'\n\n/**\n * @internal\n * @hidden\n */\nexport function createGlobalScopedContext<ContextType, const T extends ContextType = ContextType>(\n /**\n * It's important to prefix these keys as they are global\n */\n key: `sanity/_singletons/context/${string}`,\n defaultValue: T,\n): Context<ContextType> {\n const symbol = Symbol.for(key)\n\n /**\n * Prevent errors about re-renders on React SSR on Next.js App Router, as well as JSDOM-based\n * environments such as when we extract schemas etc from the studio configuration.\n */\n if (\n typeof document === 'undefined' ||\n (typeof window !== 'undefined' &&\n typeof window.navigator !== 'undefined' &&\n window.navigator.userAgent.includes('jsdom'))\n ) {\n const context = createContext<ContextType>(defaultValue)\n context.displayName = key\n return context\n }\n\n if (!globalScope[symbol]) {\n globalScope[symbol] = {context: createContext<T>(defaultValue), version: SANITY_VERSION}\n } else if (globalScope[symbol].version !== SANITY_VERSION) {\n throw new TypeError(\n `Duplicate instances of context \"${key}\" with incompatible versions detected: Expected ${SANITY_VERSION} but got ${globalScope[symbol].version}.\\n\\n` +\n `For more information, please visit ${MISSING_CONTEXT_HELP_URL}`,\n )\n } else if (!warned.has(SANITY_VERSION)) {\n console.warn(\n `Duplicate instances of context \"${key}\" detected. This is likely a mistake and may cause unexpected behavior.\\n\\n` +\n `For more information, please visit ${MISSING_CONTEXT_HELP_URL}`,\n )\n warned.add(SANITY_VERSION)\n }\n\n return globalScope[symbol].context\n}\n\nconst warned = new Set<typeof SANITY_VERSION>()\n\n/**\n * Gets the global scope instance in a given environment.\n *\n * The strategy is to return the most modern, and if not, the most common:\n * - The `globalThis` variable is the modern approach to accessing the global scope\n * - The `window` variable is the global scope in a web browser\n * - The `self` variable is the global scope in workers and others\n * - The `global` variable is the global scope in Node.js\n */\nfunction getGlobalScope() {\n if (typeof globalThis !== 'undefined') return globalThis\n if (typeof window !== 'undefined') return window\n if (typeof self !== 'undefined') return self\n if (typeof global !== 'undefined') return global\n\n throw new Error('sanity: could not locate global scope')\n}\n\nconst globalScope = getGlobalScope() as any\n"],"mappings":"8FAIA,MAAMG,EAA2B,mDAMjC,SAAgBC,EAIdE,EACAC,EACsB,CACtB,IAAME,EAASC,OAAOC,IAAIL,EAAI,CAM9B,UACSM,SAAa,YACZC,OAAW,KACVA,OAAOC,oBACdD,OAAOC,UAAUC,UAAUC,SAAS,QAAS,CAC/C,CACA,IAAMC,EAAUhB,EAA2BM,EAAa,CAExD,OADAU,EAAQC,YAAcZ,EACfW,CACT,CAEA,IAAKE,EAAYV,GACfU,EAAYV,GAAU,CAACQ,QAAShB,EAAiBM,EAAa,CAAEa,QAASlB,CAAe,UAC/EiB,EAAYV,GAAQW,UAAYlB,EACzC,KAAM,CAAImB,WACR,kCAAmCf,EAAG,kDAAmDJ,EAAc,WAAYiB,EAAYV,GAAQW,QAAO,0CACtGjB,EAAwB,EAAA,MAExDmB,EAAOC,IAAIrB,EAAe,GACpCsB,QAAQC,MACN,kCAAmCnB,EAAG,gHACEH,EAAwB,EACjE,CACDmB,EAAOI,IAAIxB,EAAe,EAG5B,OAAOiB,EAAYV,GAAQQ,OAC7B,CAEA,MAAMK,EAAS,IAAIK,IAWnB,SAASC,GAAiB,CACxB,UAAWC,WAAe,IAAa,OAAOA,WAC9C,UAAWhB,OAAW,IAAa,OAAOA,OAC1C,UAAWiB,KAAS,IAAa,OAAOA,KACxC,UAAWC,OAAW,IAAa,OAAOA,OAE1C,KAAM,CAAIC,MAAM,wCAAA,AAClB,CAEA,MAAMb,EAAcS,GAAgB"}
|
package/dist/_singletons.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import"./Observable-B8U6mp9h.mjs";import"./Subject-BUseddH4.mjs";import{BehaviorSubject as ee}from"./BehaviorSubject-lT90ntN-.mjs";import{SourceContext as e}from"./SourceContext-D53WuQKs.mjs";import{createContext as t}from"sanity/_createContext";const n=t(`sanity/_singletons/context/active-workspace-matcher`,null),te=t(`sanity/_singletons/context/addon-dataset`,null),r=t(`sanity/_singletons/context/app-id-cache`,null),i=t(`sanity/_singletons/context/calendar`,void 0),a=t(`sanity/_singletons/context/change-indicator-tracker-store`,null),o=t(`sanity/_singletons/context/change-indicator-tracker-get-snapshot`,null),s=t(`sanity/_singletons/context/color-scheme-set-value`,null),c=t(`sanity/_singletons/context/color-scheme-value`,null),l=t(`sanity/_singletons/context/comment-input`,null),u=t(`sanity/_singletons/context/comments-authoring-path`,null),d=t(`sanity/_singletons/context/comments`,null),f=t(`sanity/_singletons/context/comments-enabled`,{enabled:!1,mode:null}),p=t(`sanity/_singletons/context/comments-intent`,void 0),m=t(`sanity/_singletons/context/comments-onboarding`,null),h=t(`sanity/_singletons/context/comments-selected-path`,null),g=t(`sanity/_singletons/context/comments-upsell`,null),_=t(`sanity/_singletons/context/copy-paste`,null),v=t(`sanity/_singletons/context/diff`,{path:[]}),y=t(`sanity/_singletons/context/document-action-props`,void 0),b=t(`sanity/_singletons/context/document-change`,null),x=t(`sanity/_singletons/context/document-field-actions`,null),S=t(`sanity/_singletons/context/document-id`,null),C=t(`sanity/_singletons/context/document-pane`,null),w=t(`sanity/_singletons/context/document-sheet-list`,void 0),T=t(`sanity/_singletons/context/events`,null),E=t(`sanity/_singletons/context/field-actions`,{actions:[],focused:!1,hovered:!1,__internal_slot:void 0,__internal_comments:void 0,onMouseEnter:()=>void 0,onMouseLeave:()=>void 0}),D=t(`sanity/_singletons/context/form-builder`,null),O=t(`sanity/_singletons/context/form-callbacks`,null),k=t(`sanity/_singletons/context/form-field-presence`,[]),A=t(`sanity/_singletons/context/form-value`,null),j=t(`sanity/_singletons/context/free-trial`,void 0),M=t(`sanity/_singletons/context/get-form-value`,null),N=t(`sanity/_singletons/context/hovered-field`,{store:{subscribe:()=>()=>void 0,getSnapshot:()=>[]},onMouseEnter:()=>void 0,onMouseLeave:()=>void 0}),P=t(`sanity/_singletons/context/is-last-pane`,!1),F=t(`sanity/_singletons/context/locale`,void 0),I=t(`sanity/_singletons/context/media-library`,null),L=t(`sanity/_singletons/context/mention-user`,null),R=t(`sanity/_singletons/context/navbar`,{onSearchFullscreenOpenChange:()=>``,onSearchOpenChange:()=>``,searchFullscreenOpen:!1,searchFullscreenPortalEl:null,searchOpen:!1}),z=t(`sanity/_singletons/context/pane`,null),B=t(`sanity/_singletons/context/pane-layout`,null);function V(){throw Error(`Pane is missing router context`)}const H=t(`sanity/_singletons/context/pane-router`,{index:0,groupIndex:0,siblingIndex:0,payload:void 0,params:{},hasGroupSiblings:!1,groupLength:0,routerPanesState:[],BackLink:()=>V(),ChildLink:()=>V(),ReferenceChildLink:()=>V(),handleEditReference:()=>V(),ParameterizedLink:()=>V(),replaceCurrent:()=>V(),closeCurrentAndAfter:()=>V(),closeCurrent:()=>V(),duplicateCurrent:()=>V(),setView:()=>V(),setParams:()=>V(),setPayload:()=>V(),navigateIntent:()=>V(),createPathWithParams:()=>V()}),U=t(`sanity/_singletons/context/perspective-context`,null),W=t(`sanity/_singletons/context/portable-text-markers`,[]),G=t(`sanity/_singletons/context/portable-text-member-item-element-refs`,new ee({})),K=t(`sanity/_singletons/context/portable-text-member-items`,[]),q=t(`sanity/_singletons/context/presence`,[]),J=t(`sanity/_singletons/context/presence-tracker-store`,null),Y=t(`sanity/_singletons/context/presence-tracker-get-snapshot`,null),X=t(`sanity/_singletons/context/presentation`,null),Z=t(`sanity/_singletons/context/presentation/displayed-document`,null),Q=t(`sanity/_singletons/context/presentation/document`,null),ne=t(`sanity/_singletons/context/presentation/navigate`,null),re=t(`sanity/_singletons/context/presentation/panels`,null),ie=t(`sanity/_singletons/context/presentation/params`,null),ae=t(`sanity/_singletons/context/presentation/shared-state`,null),oe=t(`sanity/_singletons/context/preview-card`,{selected:!1}),se=t(`sanity/_singletons/context/reference-input-options`,{}),ce=t(`sanity/_singletons/context/reference-item-ref`,null),le=t(`sanity/_singletons/context/releases-metadata`,null),ue=t(`sanity/_singletons/context/releases-table`,null),de=t(`sanity/_singletons/context/releases-upsell`,null),fe=t(`sanity/_singletons/context/resource-cache`,null),pe=t(`sanity/_singletons/context/review-changes`,{onOpenReviewChanges:()=>void 0,onSetFocus:()=>void 0,isReviewChangesOpen:!1,isInteractive:!0}),me=t(`sanity/_singletons/context/router`,null),he=t(`sanity/_singletons/context/router-history`,null),ge=t(`sanity/_singletons/context/start-in-create-enabled`,{startInCreateEnabled:!1}),_e={enabled:!1,mode:null,hasUsedScheduledPublishing:{used:!1,loading:!1}},ve=t(`sanity/_singletons/context/scheduled-publishing-enabled`,_e),ye=t(`sanity/_singletons/context/schedule-publish-upsell`,{upsellData:null,handleOpenDialog:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}}),be=t(`sanity/_singletons/context/schedules`,void 0),xe=t(`sanity/_singletons/context/scroll`,null),Se=t(`sanity/_singletons/context/search`,void 0),Ce=t(`sanity/_singletons/context/sortable-item-id`,null),we=t(`sanity/_singletons/context/structure-tool`,null),Te=t(`sanity/_singletons/context/studioAnnouncements`,void 0),Ee=t(`sanity/_singletons/context/tasks`,null),De=t(`sanity/_singletons/context/tasks-enabled`,{enabled:!1,mode:null}),Oe=t(`sanity/_singletons/context/tasks-navigation`,null),ke=t(`sanity/_singletons/context/tasks-upsell`,null),Ae=t(`sanity/_singletons/context/tree-editing-enabled`,{enabled:!1,legacyEditing:!1}),je=t(`sanity/_singletons/context/user-color-manager`,null),Me=t(`sanity/_singletons/context/validation`,[]),Ne=t(`sanity/_singletons/context/virtualizer-scroll-instance`,null),Pe=t(`sanity/_singletons/context/workspace`,null),Fe=t(`sanity/_singletons/context/workspaces`,null),$={navbar:200,navbarPopover:5e5,navbarDialog:500001,pane:100,paneHeader:[110,15e3],paneFooter:[120,2e4],paneResizer:[130,25e3],paneDialog:[140,5e3],popover:200,modal:200,movingItem:1e4,drawershade:1e6,drawer:1000001,fullscreen:12e5,toast:[100,11e3],portal:200,dropdown:200,navbarFixed:1010,fullscreenEdit:1050,popoverBackground:1060,tooltip:200,modalBackground:2e3,spinner:3e3},Ie=t(`sanity/_singletons/context/z-index`,$);export{n as ActiveWorkspaceMatcherContext,te as AddonDatasetContext,r as AppIdCacheContext,i as CalendarContext,o as ChangeIndicatorTrackerContextGetSnapshot,a as ChangeIndicatorTrackerContextStore,s as ColorSchemeSetValueContext,c as ColorSchemeValueContext,l as CommentInputContext,u as CommentsAuthoringPathContext,d as CommentsContext,f as CommentsEnabledContext,p as CommentsIntentContext,m as CommentsOnboardingContext,h as CommentsSelectedPathContext,g as CommentsUpsellContext,_ as CopyPasteContext,v as DiffContext,y as DocumentActionPropsContext,b as DocumentChangeContext,x as DocumentFieldActionsContext,S as DocumentIdContext,C as DocumentPaneContext,w as DocumentSheetListContext,T as EventsContext,E as FieldActionsContext,D as FormBuilderContext,O as FormCallbacksContext,k as FormFieldPresenceContext,A as FormValueContext,j as FreeTrialContext,M as GetFormValueContext,N as HoveredFieldContext,P as IsLastPaneContext,F as LocaleContext,I as MediaLibraryIdContext,L as MentionUserContext,R as NavbarContext,z as PaneContext,B as PaneLayoutContext,H as PaneRouterContext,U as PerspectiveContext,W as PortableTextMarkersContext,G as PortableTextMemberItemElementRefsContext,K as PortableTextMemberItemsContext,q as PresenceContext,Y as PresenceTrackerContextGetSnapshot,J as PresenceTrackerContextStore,X as PresentationContext,Z as PresentationDisplayedDocumentContext,Q as PresentationDocumentContext,ne as PresentationNavigateContext,re as PresentationPanelsContext,ie as PresentationParamsContext,ae as PresentationSharedStateContext,oe as PreviewCardContext,se as ReferenceInputOptionsContext,ce as ReferenceItemRefContext,le as ReleasesMetadataContext,de as ReleasesUpsellContext,fe as ResourceCacheContext,pe as ReviewChangesContext,me as RouterContext,he as RouterHistoryContext,ge as SanityCreateConfigContext,ye as SchedulePublishUpsellContext,ve as ScheduledPublishingEnabledContext,be as SchedulesContext,xe as ScrollContext,Se as SearchContext,Ce as SortableItemIdContext,e as SourceContext,we as StructureToolContext,Te as StudioAnnouncementContext,ue as TableContext,Ee as TasksContext,De as TasksEnabledContext,Oe as TasksNavigationContext,ke as TasksUpsellContext,Ae as TreeEditingEnabledContext,je as UserColorManagerContext,Me as ValidationContext,Ne as VirtualizerScrollInstanceContext,Pe as WorkspaceContext,Fe as WorkspacesContext,Ie as ZIndexContext,$ as zIndexContextDefaults};
|
2
|
-
//# sourceMappingURL=_singletons.mjs.map
|
package/dist/_singletons.mjs.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_singletons.mjs","names":["createContext","ActiveWorkspaceMatcherContextValue","ActiveWorkspaceMatcherContext","createContext","AddonDatasetContextValue","AddonDatasetContext","createContext","AppIdCache","AppIdCacheContext","createContext","CalendarContextValue","CalendarContext","undefined","createContext","ChangeIndicatorTrackerContextStoreType","ChangeIndicatorTrackerGetSnapshotType","ChangeIndicatorTrackerContextStore","ChangeIndicatorTrackerContextGetSnapshot","createContext","StudioThemeColorSchemeKey","ColorSchemeSetValueContext","nextScheme","createContext","StudioThemeColorSchemeKey","ColorSchemeValueContext","createContext","CommentInputContextValue","CommentInputContext","createContext","CommentsAuthoringPathContextValue","CommentsAuthoringPathContext","createContext","CommentsContextValue","CommentsContext","createContext","CommentsEnabledContextValue","CommentsEnabledContext","enabled","mode","createContext","CommentsIntentContextValue","CommentsIntentContext","undefined","createContext","CommentsOnboardingContextValue","CommentsOnboardingContext","createContext","CommentsSelectedPathContextValue","CommentsSelectedPathContext","createContext","CommentsUpsellContextValue","CommentsUpsellContext","createContext","CopyPasteContextType","CopyPasteContext","Path","createContext","DiffContext","path","createContext","DocumentActionProps","DocumentActionPropsContext","undefined","createContext","DocumentChangeContextInstance","DocumentChangeContext","createContext","DocumentFieldAction","DocumentFieldActionsContextValue","actions","DocumentFieldActionsContext","createContext","DocumentIdContextValue","id","DocumentIdContext","createContext","DocumentPaneContextValue","DocumentPaneContext","createContext","DocumentSheetListContextValue","DocumentSheetListContext","undefined","createContext","EventsStore","EventsContext","ReactNode","createContext","DocumentFieldActionNode","FieldCommentsProps","FieldActionsContextValue","actions","__internal_comments","__internal_slot","focused","hovered","onMouseEnter","onMouseLeave","FieldActionsContext","undefined","createContext","FormBuilderContextValue","FormBuilderContext","createContext","FormCallbacksValue","FormCallbacksContext","createContext","FormNodePresence","FormFieldPresenceContext","createContext","FormValueContextValue","FormValueContext","createContext","FreeTrialContextProps","FreeTrialContext","undefined","Path","createContext","GetFormValueContextValue","path","GetFormValueContext","Path","createContext","HoveredFieldContextValue","store","subscribe","onStoreCallback","getSnapshot","onMouseEnter","path","onMouseLeave","HoveredFieldContext","undefined","createContext","IsLastPaneContext","i18n","createContext","Locale","LocaleContextValue","locales","currentLocale","__internal","i18next","changeLocale","newLocale","Promise","LocaleContext","undefined","createContext","MediaLibraryIdContext","createContext","MentionUserContextValue","MentionUserContext","createContext","NavbarContextValue","NavbarContext","onSearchFullscreenOpenChange","onSearchOpenChange","searchFullscreenOpen","searchFullscreenPortalEl","searchOpen","createContext","PaneContextValue","PaneContext","createContext","PaneLayoutContextValue","PaneLayoutContext","createContext","PaneRouterContextValue","missingContext","T","Error","PaneRouterContext","index","groupIndex","siblingIndex","payload","undefined","params","hasGroupSiblings","groupLength","routerPanesState","BackLink","ChildLink","ReferenceChildLink","handleEditReference","ParameterizedLink","replaceCurrent","closeCurrentAndAfter","closeCurrent","duplicateCurrent","setView","setParams","setPayload","navigateIntent","createPathWithParams","createContext","PerspectiveContextValue","PerspectiveContext","createContext","PortableTextMarker","PortableTextMarkersContext","BehaviorSubject","createContext","PortableTextEditorElement","HTMLDivElement","HTMLSpanElement","PortableTextMemberItemElementRefsContext","Record","createContext","PortableTextMemberItem","PortableTextMemberItemsContext","createContext","FormNodePresence","PresenceContext","createContext","PresenceTrackerContextStoreType","PresenceTrackerGetSnapshotType","PresenceTrackerContextStore","PresenceTrackerContextGetSnapshot","createContext","PresentationContextValue","PresentationContext","createContext","PresentationDisplayedDocumentContextValue","PresentationDisplayedDocumentContext","createContext","PresentationDocumentContextValue","PresentationDocumentContext","createContext","PresentationNavigateContextValue","PresentationNavigateContext","createContext","PresentationPanelsContextValue","PresentationPanelsContext","createContext","PresentationParamsContextValue","PresentationParamsContext","createContext","PresentationSharedStateContextValue","PresentationSharedStateContext","createContext","PreviewCardContextValue","PreviewCardContext","selected","createContext","ReferenceInputOptions","ReferenceInputOptionsContext","MutableRefObject","createContext","ReferenceItemRef","menuRef","HTMLDivElement","menuButtonRef","HTMLButtonElement","containerRef","ReferenceItemRefContext","createContext","ReleasesMetadataContextValue","ReleasesMetadataContext","createContext","TableContextValue","TableContext","createContext","ReleasesUpsellContextValue","ReleasesUpsellContext","createContext","ResourceCache","ResourceCacheContext","createContext","ConnectorContextValue","ReviewChangesContext","onOpenReviewChanges","undefined","onSetFocus","isReviewChangesOpen","isInteractive","createContext","RouterContextValue","RouterContext","createContext","RouterHistory","RouterHistoryContext","createContext","SanityCreateConfigContextValue","SanityCreateConfigContext","startInCreateEnabled","createContext","HasUsedScheduledPublishing","ScheduledPublishingEnabledContextValue","enabled","mode","hasUsedScheduledPublishing","DEFAULT","used","loading","ScheduledPublishingEnabledContext","createContext","UpsellDialogViewedInfo","UpsellData","SchedulePublishUpsellContextValue","upsellDialogOpen","handleOpenDialog","source","upsellData","telemetryLogs","dialogSecondaryClicked","dialogPrimaryClicked","panelViewed","panelDismissed","panelPrimaryClicked","panelSecondaryClicked","SchedulePublishUpsellContext","createContext","Schedule","ScheduleSort","ScheduleState","SchedulesContextValue","activeSchedules","schedules","schedulesByDate","date","Date","scheduleState","selectedDate","setSortBy","sortBy","SchedulesContext","undefined","PubSub","createContext","ScrollContext","Event","createContext","SearchContextValue","SearchContext","undefined","createContext","SortableItemIdContext","createContext","StructureToolContextValue","StructureToolContext","createContext","StudioAnnouncementsContextValue","StudioAnnouncementContext","undefined","createContext","TasksContextValue","TasksContext","createContext","TasksEnabledContextValue","TasksEnabledContext","enabled","mode","createContext","TasksNavigationContextValue","TasksNavigationContext","createContext","TasksUpsellContextValue","TasksUpsellContext","createContext","TreeEditingEnabledContextValue","TreeEditingEnabledContext","enabled","legacyEditing","createContext","UserColorManager","UserColorManagerContext","ValidationMarker","createContext","ValidationContext","createContext","VirtualizerScrollInstance","VirtualizerScrollInstanceContext","createContext","Workspace","WorkspaceContext","createContext","WorkspacesContextValue","WorkspacesContext","createContext","ZIndexContextValue","zIndexContextDefaults","navbar","navbarPopover","navbarDialog","pane","paneHeader","paneFooter","paneResizer","paneDialog","popover","modal","movingItem","drawershade","drawer","fullscreen","toast","portal","dropdown","navbarFixed","fullscreenEdit","popoverBackground","tooltip","modalBackground","spinner","ZIndexContext"],"sources":["https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ActiveWorkspaceMatcherContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/AddonDatasetContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/AppIdCacheContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CalendarContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ChangeIndicatorTrackerContexts.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ColorSchemeSetValueContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ColorSchemeValueContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentInputContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsAuthoringPathContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsEnabledContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsIntentContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsOnboardingContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsSelectedPathContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CommentsUpsellContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/CopyPasteContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DiffContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentActionPropsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentChangeContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentFieldActionsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentIdContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentPaneContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/DocumentSheetListContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/EventsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FieldActionsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FormBuilderContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FormCallbacksContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FormFieldPresenceContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FormValueContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/FreeTrialContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/GetFormValueContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/HoveredFieldContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/IsLastPaneContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/LocaleContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/MediaLibraryIdContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/MentionUserContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/NavbarContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PaneContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PaneLayoutContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PaneRouterContext.tsx","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PerspectiveContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PortableTextMarkersContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PortableTextMemberItemElementRefsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PortableTextMemberItemsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresenceContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresenceTrackerContexts.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationDisplayedDocumentContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationDocumentContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationNavigateContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationPanelsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationParamsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PresentationSharedStateContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/PreviewCardContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReferenceInputOptionsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReferenceItemRefContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReleasesMetadataContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReleasesTableContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReleasesUpsellContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ResourceCacheContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ReviewChangesContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/RouterContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/RouterHistoryContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/SanityCreateConfigContext.tsx","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ScheduledPublishingEnabledContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/SchedulePublishingUpsellContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/Schedules.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ScrollContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/SearchContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/SortableItemIdContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/StructureToolContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/StudioAnnouncementsContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/TasksContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/TasksEnabledContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/TasksNavigationContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/TasksUpsellContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/TreeEditingEnabledContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/UserColorManagerContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ValidationContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/VirtualizerScrollInstanceContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/WorkspaceContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/WorkspacesContext.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/sanity/src/_singletons/context/ZIndexContext.ts"],"sourcesContent":["import {createContext} from 'sanity/_createContext'\n\nimport type {ActiveWorkspaceMatcherContextValue} from '../../core/studio/activeWorkspaceMatcher/ActiveWorkspaceMatcherContext'\n\n/** @internal */\nexport const ActiveWorkspaceMatcherContext =\n createContext<ActiveWorkspaceMatcherContextValue | null>(\n 'sanity/_singletons/context/active-workspace-matcher',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AddonDatasetContextValue} from '../../core/studio/addonDataset/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const AddonDatasetContext = createContext<AddonDatasetContextValue | null>(\n 'sanity/_singletons/context/addon-dataset',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {AppIdCache} from '../../core/create/studio-app/appIdCache'\n\n/**\n * @internal\n */\nexport const AppIdCacheContext = createContext<AppIdCache | null>(\n 'sanity/_singletons/context/app-id-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CalendarContextValue} from '../../core/studio/components/navbar/search/components/filters/filter/inputs/date/datePicker/calendar/contexts/CalendarContext'\n\n/**\n * @internal\n */\nexport const CalendarContext = createContext<CalendarContextValue | undefined>(\n 'sanity/_singletons/context/calendar',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n ChangeIndicatorTrackerContextStoreType,\n ChangeIndicatorTrackerGetSnapshotType,\n} from '../../core/changeIndicators/ChangeIndicatorTrackerContexts'\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextStore =\n createContext<ChangeIndicatorTrackerContextStoreType>(\n 'sanity/_singletons/context/change-indicator-tracker-store',\n null,\n )\n\n/** @internal */\nexport const ChangeIndicatorTrackerContextGetSnapshot =\n createContext<ChangeIndicatorTrackerGetSnapshotType>(\n 'sanity/_singletons/context/change-indicator-tracker-get-snapshot',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * The setter for ColorSchemeValueContext, in a separate context to avoid unnecessary re-renders\n * If set to false then the UI should adjust to reflect that the Studio can't change the color scheme\n * @internal\n */\nexport const ColorSchemeSetValueContext = createContext<\n ((nextScheme: StudioThemeColorSchemeKey) => void) | false | null\n>('sanity/_singletons/context/color-scheme-set-value', null)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioThemeColorSchemeKey} from '../../core/theme/types'\n\n/**\n * Used to keep track of the internal value, which can be \"system\" in addition to \"light\" and \"dark\"\n * @internal\n */\nexport const ColorSchemeValueContext = createContext<StudioThemeColorSchemeKey | null>(\n 'sanity/_singletons/context/color-scheme-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentInputContextValue} from '../../core/comments/components/pte/comment-input/CommentInputProvider'\n\n/**\n * @internal\n */\nexport const CommentInputContext = createContext<CommentInputContextValue | null>(\n 'sanity/_singletons/context/comment-input',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsAuthoringPathContextValue} from '../../core/comments/context/authoring-path/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const CommentsAuthoringPathContext = createContext<CommentsAuthoringPathContextValue | null>(\n 'sanity/_singletons/context/comments-authoring-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsContextValue} from '../../core/comments/context/comments/types'\n\n/**\n * @internal\n */\nexport const CommentsContext = createContext<CommentsContextValue | null>(\n 'sanity/_singletons/context/comments',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsEnabledContextValue} from '../../core/comments/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the comments feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// comments functionality is included by default in all new studio\n// configurations. Therefore, in the absence of a specific provider\n// (CommentsEnabledProvider), we assume that the feature is disabled.\n/**\n * @internal\n */\nexport const CommentsEnabledContext = createContext<CommentsEnabledContextValue>(\n 'sanity/_singletons/context/comments-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsIntentContextValue} from '../../core/comments/context/intent/types'\n\n/**\n * @internal\n */\nexport const CommentsIntentContext = createContext<CommentsIntentContextValue | undefined>(\n 'sanity/_singletons/context/comments-intent',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsOnboardingContextValue} from '../../core/comments/context/onboarding/types'\n\n/**\n * @internal\n */\nexport const CommentsOnboardingContext = createContext<CommentsOnboardingContextValue | null>(\n 'sanity/_singletons/context/comments-onboarding',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsSelectedPathContextValue} from '../../core/comments/context/selected-path/types'\n\n/**\n * @internal\n */\nexport const CommentsSelectedPathContext = createContext<CommentsSelectedPathContextValue | null>(\n 'sanity/_singletons/context/comments-selected-path',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CommentsUpsellContextValue} from '../../core/comments/context/upsell/types'\n\n/**\n * @internal\n */\nexport const CommentsUpsellContext = createContext<CommentsUpsellContextValue | null>(\n 'sanity/_singletons/context/comments-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {CopyPasteContextType} from '../../core/studio/copyPaste'\n\n/**\n * @beta\n * @hidden\n */\nexport const CopyPasteContext = createContext<CopyPasteContextType | null>(\n 'sanity/_singletons/context/copy-paste',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport const DiffContext = createContext<{\n path: Path\n}>('sanity/_singletons/context/diff', {\n path: [],\n})\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentActionProps} from '../../core/config/document/actions'\n\n/**\n * @internal\n */\nexport const DocumentActionPropsContext = createContext<DocumentActionProps | undefined>(\n 'sanity/_singletons/context/document-action-props',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentChangeContextInstance} from '../../core/field/diff/contexts/DocumentChangeContext'\n\n/** @internal */\nexport const DocumentChangeContext = createContext<DocumentChangeContextInstance | null>(\n 'sanity/_singletons/context/document-change',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldAction} from '../../core/config/document/fieldActions/types'\n\n/**\n * @internal\n */\nexport interface DocumentFieldActionsContextValue {\n actions: DocumentFieldAction[]\n}\n\n/**\n * @internal\n */\nexport const DocumentFieldActionsContext = createContext<DocumentFieldActionsContextValue | null>(\n 'sanity/_singletons/context/document-field-actions',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface DocumentIdContextValue {\n id: string\n}\n\n/**\n * @internal\n */\nexport const DocumentIdContext = createContext<DocumentIdContextValue | null>(\n 'sanity/_singletons/context/document-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentPaneContextValue} from '../../structure/panes/document/DocumentPaneContext'\n\n/** @internal */\nexport const DocumentPaneContext = createContext<DocumentPaneContextValue | null>(\n 'sanity/_singletons/context/document-pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {DocumentSheetListContextValue} from '../../structure/panes/documentList/sheetList/DocumentSheetListProvider'\n\n/** @internal */\nexport const DocumentSheetListContext = createContext<DocumentSheetListContextValue | undefined>(\n 'sanity/_singletons/context/document-sheet-list',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {EventsStore} from '../../core/store/events/types'\n\n/**\n * @internal\n */\nexport const EventsContext = createContext<EventsStore | null>(\n 'sanity/_singletons/context/events',\n null,\n)\n","import type {ReactNode} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {DocumentFieldActionNode} from '../../core/config/document/fieldActions/types'\nimport type {FieldCommentsProps} from '../../core/form/types/fieldProps'\n\n/** @internal */\nexport interface FieldActionsContextValue {\n actions: DocumentFieldActionNode[]\n __internal_comments?: FieldCommentsProps\n __internal_slot?: ReactNode\n focused?: boolean\n hovered: boolean\n onMouseEnter: () => void\n onMouseLeave: () => void\n}\n\n/** @internal */\nexport const FieldActionsContext = createContext<FieldActionsContextValue>(\n 'sanity/_singletons/context/field-actions',\n {\n actions: [],\n focused: false,\n hovered: false,\n // eslint-disable-next-line camelcase\n __internal_slot: undefined,\n // eslint-disable-next-line camelcase\n __internal_comments: undefined,\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormBuilderContextValue} from '../../core/form/FormBuilderContext'\n\n/**\n * @internal\n */\nexport const FormBuilderContext = createContext<FormBuilderContextValue | null>(\n 'sanity/_singletons/context/form-builder',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormCallbacksValue} from '../../core/form/studio/contexts/FormCallbacks'\n\n/**\n * @internal\n */\nexport const FormCallbacksContext = createContext<FormCallbacksValue | null>(\n 'sanity/_singletons/context/form-callbacks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/** @internal */\nexport const FormFieldPresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/form-field-presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormValueContextValue} from '../../core/form/contexts/FormValue'\n\n/**\n * @internal\n */\nexport const FormValueContext = createContext<FormValueContextValue | null>(\n 'sanity/_singletons/context/form-value',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FreeTrialContextProps} from '../../core/studio/components/navbar/free-trial/FreeTrialContext'\n\n/**\n * @internal\n */\nexport const FreeTrialContext = createContext<FreeTrialContextProps | undefined>(\n 'sanity/_singletons/context/free-trial',\n undefined,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n * @hidden\n */\nexport type GetFormValueContextValue = (path: Path) => unknown\n\n/**\n * @internal\n */\nexport const GetFormValueContext = createContext<GetFormValueContextValue | null>(\n 'sanity/_singletons/context/get-form-value',\n null,\n)\n","import type {Path} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport interface HoveredFieldContextValue {\n store: {\n subscribe: (onStoreCallback: () => void) => () => void\n getSnapshot: () => string[]\n }\n onMouseEnter: (path: Path) => void\n onMouseLeave: (path: Path) => void\n}\n\n/** @internal */\nexport const HoveredFieldContext = createContext<HoveredFieldContextValue>(\n 'sanity/_singletons/context/hovered-field',\n {\n store: {\n subscribe: () => () => undefined,\n getSnapshot: () => [],\n },\n onMouseEnter: () => undefined,\n onMouseLeave: () => undefined,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * TODO: remove this context when alternate document-specific context are\n * introduced.\n *\n * The following context is used in the structure tool to set the active\n * document if it's the last pane open in the structure tool. This is a\n * temporary context provider that was introduced when the comments and tasks\n * plugins were refactor and decoupled from the structure tool. ideally this\n * should be removed and replaced with a document-specific context that gives\n * plugin authors access to what the `usePane`, `usePaneRouter`, and\n * `useDocumentPane` provides without exposing specifics from the structure tool\n */\n/**\n * @internal\n */\nexport const IsLastPaneContext = createContext<boolean>(\n 'sanity/_singletons/context/is-last-pane',\n false,\n)\n","// eslint-disable-next-line @sanity/i18n/no-i18next-import -- figure out how to have the linter be fine with importing types-only\nimport type {i18n} from 'i18next'\nimport {createContext} from 'sanity/_createContext'\n\nimport type {Locale} from '../../core/i18n/types'\n\n/**\n * @internal\n * @hidden\n */\nexport interface LocaleContextValue {\n locales: Locale[]\n currentLocale: Locale\n __internal: {\n i18next: i18n\n }\n changeLocale: (newLocale: string) => Promise<void>\n}\n\n/**\n * @internal\n * @hidden\n */\nexport const LocaleContext = createContext<LocaleContextValue | undefined>(\n 'sanity/_singletons/context/locale',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport const MediaLibraryIdContext = createContext<string | null>(\n 'sanity/_singletons/context/media-library',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {MentionUserContextValue} from '../../core/tasks/context/mentionUser/types'\n\n/**\n * @internal\n */\nexport const MentionUserContext = createContext<MentionUserContextValue | null>(\n 'sanity/_singletons/context/mention-user',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {NavbarContextValue} from '../../core/studio/StudioLayout'\n\n/** @internal */\nexport const NavbarContext = createContext<NavbarContextValue>(\n 'sanity/_singletons/context/navbar',\n {\n onSearchFullscreenOpenChange: () => '',\n onSearchOpenChange: () => '',\n searchFullscreenOpen: false,\n searchFullscreenPortalEl: null,\n searchOpen: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneContext = createContext<PaneContextValue | null>(\n 'sanity/_singletons/context/pane',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneLayoutContextValue} from '../../structure/components/pane/types'\n\n/**\n * @internal\n */\nexport const PaneLayoutContext = createContext<PaneLayoutContextValue | null>(\n 'sanity/_singletons/context/pane-layout',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PaneRouterContextValue} from '../../structure/components/paneRouter/types'\n\nfunction missingContext<T = unknown>(): T {\n throw new Error('Pane is missing router context')\n}\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PaneRouterContext = createContext<PaneRouterContextValue>(\n 'sanity/_singletons/context/pane-router',\n {\n index: 0,\n groupIndex: 0,\n siblingIndex: 0,\n payload: undefined,\n params: {},\n hasGroupSiblings: false,\n groupLength: 0,\n routerPanesState: [],\n BackLink: () => missingContext(),\n ChildLink: () => missingContext(),\n ReferenceChildLink: () => missingContext(),\n handleEditReference: () => missingContext(),\n ParameterizedLink: () => missingContext(),\n replaceCurrent: () => missingContext(),\n closeCurrentAndAfter: () => missingContext(),\n closeCurrent: () => missingContext(),\n duplicateCurrent: () => missingContext(),\n setView: () => missingContext(),\n setParams: () => missingContext(),\n setPayload: () => missingContext(),\n navigateIntent: () => missingContext(),\n createPathWithParams: () => missingContext(),\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PerspectiveContextValue} from '../../core/perspective/types'\n\n/**\n *\n * @hidden\n * @beta\n */\nexport const PerspectiveContext = createContext<PerspectiveContextValue | null>(\n 'sanity/_singletons/context/perspective-context',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMarker} from '../../core/form/types/_transitional'\n\n/**\n * @internal\n */\nexport const PortableTextMarkersContext = createContext<PortableTextMarker[]>(\n 'sanity/_singletons/context/portable-text-markers',\n [],\n)\n","import {BehaviorSubject} from 'rxjs'\nimport {createContext} from 'sanity/_createContext'\n\n/** @internal */\nexport type PortableTextEditorElement = HTMLDivElement | HTMLSpanElement\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemElementRefsContext = createContext<\n BehaviorSubject<Record<string, PortableTextEditorElement | null | undefined>>\n>('sanity/_singletons/context/portable-text-member-item-element-refs', new BehaviorSubject({}))\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PortableTextMemberItem} from '../../core/form/inputs/PortableText/PortableTextInput'\n\n/**\n * @internal\n */\nexport const PortableTextMemberItemsContext = createContext<PortableTextMemberItem[]>(\n 'sanity/_singletons/context/portable-text-member-items',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {FormNodePresence} from '../../core/presence/types'\n\n/**\n * @internal\n */\nexport const PresenceContext = createContext<FormNodePresence[]>(\n 'sanity/_singletons/context/presence',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {\n PresenceTrackerContextStoreType,\n PresenceTrackerGetSnapshotType,\n} from '../../core/presence/overlay/PresenceTrackerContexts'\n\n/** @internal */\nexport const PresenceTrackerContextStore = createContext<PresenceTrackerContextStoreType>(\n 'sanity/_singletons/context/presence-tracker-store',\n null,\n)\n\n/** @internal */\nexport const PresenceTrackerContextGetSnapshot = createContext<PresenceTrackerGetSnapshotType>(\n 'sanity/_singletons/context/presence-tracker-get-snapshot',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationContext = createContext<PresentationContextValue | null>(\n 'sanity/_singletons/context/presentation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDisplayedDocumentContextValue} from '../../presentation/loader/types'\n\n/**\n * @internal\n */\nexport const PresentationDisplayedDocumentContext =\n createContext<PresentationDisplayedDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/displayed-document',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationDocumentContextValue} from '../../presentation/document/types'\n\n/**\n * @internal\n */\nexport const PresentationDocumentContext = createContext<PresentationDocumentContextValue | null>(\n 'sanity/_singletons/context/presentation/document',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationNavigateContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationNavigateContext = createContext<PresentationNavigateContextValue | null>(\n 'sanity/_singletons/context/presentation/navigate',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationPanelsContextValue} from '../../presentation/panels/types'\n\n/**\n * @internal\n */\nexport const PresentationPanelsContext = createContext<PresentationPanelsContextValue | null>(\n 'sanity/_singletons/context/presentation/panels',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationParamsContextValue} from '../../presentation/types'\n\n/**\n * @internal\n */\nexport const PresentationParamsContext = createContext<PresentationParamsContextValue | null>(\n 'sanity/_singletons/context/presentation/params',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PresentationSharedStateContextValue} from '../../presentation/overlays/types'\n\n/**\n * @internal\n */\nexport const PresentationSharedStateContext =\n createContext<PresentationSharedStateContextValue | null>(\n 'sanity/_singletons/context/presentation/shared-state',\n null,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {PreviewCardContextValue} from '../../core/components/previewCard/PreviewCard'\n\n/**\n * @internal\n */\nexport const PreviewCardContext = createContext<PreviewCardContextValue>(\n 'sanity/_singletons/context/preview-card',\n {\n selected: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReferenceInputOptions} from '../../core/form/studio/contexts/ReferenceInputOptions'\n\n/**\n * @internal\n */\nexport const ReferenceInputOptionsContext = createContext<ReferenceInputOptions>(\n 'sanity/_singletons/context/reference-input-options',\n {},\n)\n","/* eslint-disable import/no-duplicates */\nimport type {MutableRefObject} from 'react'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport interface ReferenceItemRef {\n menuRef: MutableRefObject<HTMLDivElement | null>\n menuButtonRef: MutableRefObject<HTMLButtonElement | null>\n containerRef: MutableRefObject<HTMLDivElement | null>\n}\n\n/**\n * This is a way to store ref of the menu as well as the container of the ReferenceItem\n * so it can be used down the tree for clickOutside handling\n * @internal\n */\nexport const ReferenceItemRefContext = createContext<ReferenceItemRef | null>(\n 'sanity/_singletons/context/reference-item-ref',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesMetadataContextValue} from '../../core/releases/contexts/ReleasesMetadataProvider'\n\n/**\n * @internal\n * @hidden\n */\nexport const ReleasesMetadataContext = createContext<ReleasesMetadataContextValue | null>(\n 'sanity/_singletons/context/releases-metadata',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TableContextValue} from '../../core/releases/tool/components/Table/TableProvider'\n\n/**\n * @internal\n */\nexport const TableContext = createContext<TableContextValue | null>(\n 'sanity/_singletons/context/releases-table',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ReleasesUpsellContextValue} from '../../core/releases/contexts/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const ReleasesUpsellContext = createContext<ReleasesUpsellContextValue | null>(\n 'sanity/_singletons/context/releases-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ResourceCache} from '../../core/store/_legacy/ResourceCacheProvider'\n\n/**\n * @internal\n */\nexport const ResourceCacheContext = createContext<ResourceCache | null>(\n 'sanity/_singletons/context/resource-cache',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ConnectorContextValue} from '../../core/changeIndicators/ConnectorContext'\n\n/** @internal */\nexport const ReviewChangesContext = createContext<ConnectorContextValue>(\n 'sanity/_singletons/context/review-changes',\n {\n onOpenReviewChanges: () => undefined,\n onSetFocus: () => undefined,\n isReviewChangesOpen: false,\n isInteractive: true,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterContextValue} from '../../router/types'\n\n/**\n * @internal\n */\nexport const RouterContext = createContext<RouterContextValue | null>(\n 'sanity/_singletons/context/router',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {RouterHistory} from '../../core/studio/router'\n\n/**\n * Internal use only. Userland should leverage the public `useRouter` APIs.\n * @internal\n */\nexport const RouterHistoryContext = createContext<RouterHistory | null>(\n 'sanity/_singletons/context/router-history',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SanityCreateConfigContextValue} from '../../core'\n\n/**\n * @internal\n */\nexport const SanityCreateConfigContext = createContext<SanityCreateConfigContextValue>(\n 'sanity/_singletons/context/start-in-create-enabled',\n {\n startInCreateEnabled: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {HasUsedScheduledPublishing} from '../../core/scheduledPublishing/tool/contexts/useHasUsedScheduledPublishing'\n\n/**\n * @internal\n */\nexport type ScheduledPublishingEnabledContextValue =\n | {\n enabled: false\n mode: null\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n | {\n enabled: true\n mode: 'default' | 'upsell'\n hasUsedScheduledPublishing: HasUsedScheduledPublishing\n }\n\nconst DEFAULT: ScheduledPublishingEnabledContextValue = {\n enabled: false,\n mode: null,\n hasUsedScheduledPublishing: {\n used: false,\n loading: false,\n },\n}\n\n/**\n * @internal\n */\nexport const ScheduledPublishingEnabledContext =\n createContext<ScheduledPublishingEnabledContextValue>(\n 'sanity/_singletons/context/scheduled-publishing-enabled',\n DEFAULT,\n )\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UpsellDialogViewedInfo} from '../../core/studio/upsell'\nimport type {UpsellData} from '../../core/studio/upsell/types'\n\n/**\n * @internal\n */\nexport interface SchedulePublishUpsellContextValue {\n upsellDialogOpen: boolean\n handleOpenDialog: (source: UpsellDialogViewedInfo['source']) => void\n upsellData: UpsellData | null\n telemetryLogs: {\n dialogSecondaryClicked: () => void\n dialogPrimaryClicked: () => void\n panelViewed: (source: UpsellDialogViewedInfo['source']) => void\n panelDismissed: () => void\n panelPrimaryClicked: () => void\n panelSecondaryClicked: () => void\n }\n}\n\n/**\n * @internal\n */\nexport const SchedulePublishUpsellContext = createContext<SchedulePublishUpsellContextValue>(\n 'sanity/_singletons/context/schedule-publish-upsell',\n {\n upsellData: null,\n handleOpenDialog: () => null,\n upsellDialogOpen: false,\n telemetryLogs: {\n dialogSecondaryClicked: () => null,\n dialogPrimaryClicked: () => null,\n panelViewed: () => null,\n panelDismissed: () => null,\n panelPrimaryClicked: () => null,\n panelSecondaryClicked: () => null,\n },\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Schedule, ScheduleSort, ScheduleState} from '../../core/scheduledPublishing/types'\n\n/**\n * @internal\n */\nexport interface SchedulesContextValue {\n activeSchedules: Schedule[]\n schedules: Schedule[]\n schedulesByDate: (date: Date) => Schedule[]\n scheduleState?: ScheduleState\n selectedDate?: Date\n setSortBy: (sortBy: ScheduleSort) => void\n sortBy?: ScheduleSort\n}\n\n/**\n * @internal\n */\nexport const SchedulesContext = createContext<SchedulesContextValue | undefined>(\n 'sanity/_singletons/context/schedules',\n undefined,\n)\n","import type {PubSub} from 'nano-pubsub'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ScrollContext = createContext<null | PubSub<Event>>(\n 'sanity/_singletons/context/scroll',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {SearchContextValue} from '../../core/studio/components/navbar/search/contexts/search/SearchContext'\n\n/**\n * @internal\n */\nexport const SearchContext = createContext<SearchContextValue | undefined>(\n 'sanity/_singletons/context/search',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const SortableItemIdContext = createContext<string | null>(\n 'sanity/_singletons/context/sortable-item-id',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StructureToolContextValue} from '../../structure/types'\n\n/**\n * @internal\n */\nexport const StructureToolContext = createContext<StructureToolContextValue | null>(\n 'sanity/_singletons/context/structure-tool',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {StudioAnnouncementsContextValue} from '../../core/studio/studioAnnouncements/types'\n\n/**\n * @internal\n */\nexport const StudioAnnouncementContext = createContext<StudioAnnouncementsContextValue | undefined>(\n 'sanity/_singletons/context/studioAnnouncements',\n undefined,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksContextValue} from '../../core/tasks/context/tasks/types'\n\n/**\n * @internal\n */\nexport const TasksContext = createContext<TasksContextValue | null>(\n 'sanity/_singletons/context/tasks',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksEnabledContextValue} from '../../core/tasks/context/enabled/types'\n\n// NOTE: We initialize this context with a default value (`enabled: false`)\n// rather than `null` to handle cases where the tasks feature's availability\n// isn't explicitly provided by a surrounding provider component. Typically,\n// Tasks are included by default in all new Studio configurations. Therefore,\n// in the absence of a specific provider (TasksEnabledProvider), we assume that\n// the feature is disabled.\n/**\n * @internal\n */\nexport const TasksEnabledContext = createContext<TasksEnabledContextValue>(\n 'sanity/_singletons/context/tasks-enabled',\n {\n enabled: false,\n mode: null,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksNavigationContextValue} from '../../core/tasks/context/navigation/types'\n\n/**\n * @internal\n */\nexport const TasksNavigationContext = createContext<TasksNavigationContextValue | null>(\n 'sanity/_singletons/context/tasks-navigation',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TasksUpsellContextValue} from '../../core/tasks/context/upsell/types'\n\n/**\n * @beta\n * @hidden\n */\nexport const TasksUpsellContext = createContext<TasksUpsellContextValue | null>(\n 'sanity/_singletons/context/tasks-upsell',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {TreeEditingEnabledContextValue} from '../../core/form/studio/tree-editing/context/enabled/useTreeEditingEnabled'\n\n/**\n * @internal\n */\nexport const TreeEditingEnabledContext = createContext<TreeEditingEnabledContextValue>(\n 'sanity/_singletons/context/tree-editing-enabled',\n {\n enabled: false,\n legacyEditing: false,\n },\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {UserColorManager} from '../../core/user-color/types'\n\n/**\n * @internal\n */\nexport const UserColorManagerContext = createContext<UserColorManager | null>(\n 'sanity/_singletons/context/user-color-manager',\n null,\n)\n","import type {ValidationMarker} from '@sanity/types'\nimport {createContext} from 'sanity/_createContext'\n\n/**\n * @internal\n */\nexport const ValidationContext = createContext<ValidationMarker[]>(\n 'sanity/_singletons/context/validation',\n [],\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {VirtualizerScrollInstance} from '../../core/form/inputs/arrays/ArrayOfObjectsInput/List/useVirtualizerScrollInstance'\n\n/**\n * This is used to store the reference to the scroll element for virtualizer\n * @internal\n */\nexport const VirtualizerScrollInstanceContext = createContext<VirtualizerScrollInstance | null>(\n 'sanity/_singletons/context/virtualizer-scroll-instance',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {Workspace} from '../../core/config/types'\n\n/**\n * @internal\n */\nexport const WorkspaceContext = createContext<Workspace | null>(\n 'sanity/_singletons/context/workspace',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {WorkspacesContextValue} from '../../core/studio/workspaces/WorkspacesContext'\n\n/** @internal */\nexport const WorkspacesContext = createContext<WorkspacesContextValue | null>(\n 'sanity/_singletons/context/workspaces',\n null,\n)\n","import {createContext} from 'sanity/_createContext'\n\nimport type {ZIndexContextValue} from '../../core/components/zOffsets/types'\n\n/**\n * @internal\n */\nexport const zIndexContextDefaults: ZIndexContextValue = {\n navbar: 200,\n navbarPopover: 500000,\n navbarDialog: 500001,\n // pane\n pane: 100,\n paneHeader: [110, 15000],\n paneFooter: [120, 20000],\n paneResizer: [130, 25000],\n paneDialog: [140, 5000],\n //\n popover: 200,\n modal: 200,\n movingItem: 10000,\n drawershade: 1000000,\n drawer: 1000001,\n fullscreen: 1200000,\n toast: [100, 11000],\n // NOT IN USE\n portal: 200,\n dropdown: 200,\n navbarFixed: 1010,\n fullscreenEdit: 1050,\n popoverBackground: 1060,\n tooltip: 200,\n modalBackground: 2000,\n spinner: 3000,\n}\n\n/**\n * TODO: Rename to `ZOffsetsContext`\n *\n * @internal\n */\nexport const ZIndexContext = createContext<ZIndexContextValue>(\n 'sanity/_singletons/context/z-index',\n zIndexContextDefaults,\n)\n"],"mappings":"sPAKA,MAAaE,EACXyX,EACE,sDACA,KACD,CCDUtX,GAAsBsX,EACjC,2CACA,KACD,CCJYnX,EAAoBmX,EAC/B,0CACA,KACD,CCHYhX,EAAkBgX,EAC7B,0CAAA,GAED,CCFY3W,EACX2W,EACE,4DACA,KACD,CAGU1W,EACX0W,EACE,mEACA,KACD,CCVUvW,EAA6BuW,EAExC,oDAAqD,KAAK,CCH/CnW,EAA0BmW,EACrC,gDACA,KACD,CCJYhW,EAAsBgW,EACjC,2CACA,KACD,CCFY7V,EAA+B6V,EAC1C,qDACA,KACD,CCJY1V,EAAkB0V,EAC7B,sCACA,KACD,CCGYvV,EAAyBuV,EACpC,8CACA,CACEjB,SAAS,EACTV,KAAM,IAEV,EAAC,CCZYvT,EAAwBkV,EACnC,iDAAA,GAED,CCHY9U,EAA4B8U,EACvC,iDACA,K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jB,SAAS,EACTV,KAAM,IAEV,EAAC,CCZYG,GAAyBwB,EACpC,8CACA,KACD,CCFYrB,GAAqBqB,EAChC,0CACA,KACD,CCJYlB,GAA4BkB,EACvC,kDACA,CACEjB,SAAS,EACTC,eAAe,CAEnB,EAAC,CCNYG,GAA0Ba,EACrC,gDACA,KACD,CCJYV,GAAoBU,EAC/B,wCACA,CACF,EAAC,CCDYP,GAAmCO,EAC9C,yDACA,KACD,CCJYJ,GAAmBI,EAC9B,uCACA,KACD,CCLYD,GAAoBC,EAC/B,wCACA,KACD,CCDYE,EAA4C,CACvDC,OAAQ,IACRC,cAAe,IACfC,aAAc,OAEdC,KAAM,IACNC,WAAY,CAAC,IAAK,IAAM,EACxBC,WAAY,CAAC,IAAK,GAAM,EACxBC,YAAa,CAAC,IAAK,IAAM,EACzBC,WAAY,CAAC,IAAK,GAAK,EAEvBC,QAAS,IACTC,MAAO,IACPC,WAAY,IACZC,YAAa,IACbC,OAAQ,QACRC,WAAY,KACZC,MAAO,CAAC,IAAK,IAAM,EAEnBC,OAAQ,IACRC,SAAU,IACVC,YAAa,KACbC,eAAgB,KAChBC,kBAAmB,KACnBC,QAAS,IACTC,gBAAiB,IACjBC,QAAS,GACV,EAOYC,GAAgB1B,EAC3B,qCACAE,EACD"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
function e(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function t(t){return e(t)&&typeof t._id==`string`&&typeof t._type==`string`}function n(t){return e(t)&&typeof t._type==`string`}function r(t){return e(t)&&typeof t._key==`string`}export{r as isKeyedObject,e as isObject,t as isSanityDocument,n as isTypedObject};
|
2
|
-
//# sourceMappingURL=asserters-C8hxedkt.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"asserters-C8hxedkt.mjs","names":["isObject","obj","Record","Array","isArray","isObject","KeyedObject","SanityDocument","TypedObject","isSanityDocument","document","_id","_type","isTypedObject","obj","isKeyedObject","_key"],"sources":["https://github.com/sanity-io/sanity/blob/v3.93.0/packages/%40sanity/types/src/helpers.ts","https://github.com/sanity-io/sanity/blob/v3.93.0/packages/%40sanity/types/src/documents/asserters.ts"],"sourcesContent":["export function isObject(obj: unknown): obj is Record<string, unknown> {\n return typeof obj === 'object' && obj !== null && !Array.isArray(obj)\n}\n","import {isObject} from '../helpers'\nimport {type KeyedObject, type SanityDocument, type TypedObject} from './types'\n\n/** @public */\nexport function isSanityDocument(document: unknown): document is SanityDocument {\n return (\n isObject(document) && typeof document._id === 'string' && typeof document._type === 'string'\n )\n}\n\n/** @public */\nexport function isTypedObject(obj: unknown): obj is TypedObject {\n return isObject(obj) && typeof obj._type === 'string'\n}\n\n/** @public */\nexport function isKeyedObject(obj: unknown): obj is KeyedObject {\n return isObject(obj) && typeof obj._key === 'string'\n}\n"],"mappings":"AAAA,SAAgBK,EAASS,EAA8C,CACrE,cAAcA,GAAQ,YAAYA,IAAiBX,MAAMC,QAAQU,EAAI,AACvE,CCEA,SAAgBL,EAAiBC,EAA+C,CAC9E,MACEL,GAASK,EAAS,SAAWA,EAASC,KAAQ,iBAAmBD,EAASE,OAAU,QAExF,CAGA,SAAgBC,EAAcC,EAAkC,CAC9D,MAAOT,GAASS,EAAI,SAAWA,EAAIF,OAAU,QAC/C,CAGA,SAAgBG,EAAcD,EAAkC,CAC9D,MAAOT,GAASS,EAAI,SAAWA,EAAIE,MAAS,QAC9C"}
|
package/dist/async-HS7jgwe2.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{Subscription as e,__extends as t,__read as n,__spreadArray as r,arrRemove as i}from"./Observable-B8U6mp9h.mjs";import{dateTimestampProvider as a}from"./dateTimestampProvider-Bu3RH21w.mjs";var o=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(e),s={setInterval:function(e,t){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=s.delegate;return o?.setInterval?o.setInterval.apply(o,r([e,t],n(i))):setInterval.apply(void 0,r([e,t],n(i)))},clearInterval:function(e){var t=s.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0},c=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){var n;if(t===void 0&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)??this.requestAsyncId(i,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),s.setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&s.clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r;try{this.work(e)}catch(e){n=!0,r=e||Error(`Scheduled action threw falsy error`)}if(n)return this.unsubscribe(),r},n.prototype.unsubscribe=function(){if(!this.closed){var t=this,n=t.id,r=t.scheduler,a=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,i(a,this),n!=null&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},n}(o),l=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=a.now,e}(),u=function(e){t(n,e);function n(t,n){n===void 0&&(n=l.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return n.prototype.flush=function(e){var t=this.actions;if(this._active){t.push(e);return}var n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},n}(l),d=new u(c),f=d;export{c as AsyncAction,u as AsyncScheduler,f as async,d as asyncScheduler};
|
2
|
-
//# sourceMappingURL=async-HS7jgwe2.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"async-HS7jgwe2.mjs","names":["Action","AsyncAction","Scheduler","AsyncScheduler"],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/scheduler/Action.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/scheduler/intervalProvider.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/scheduler/AsyncAction.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/Scheduler.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/scheduler/AsyncScheduler.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/scheduler/async.js"],"sourcesContent":["import { __extends } from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = (function (_super) {\n __extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var intervalProvider = {\n setInterval: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = intervalProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearInterval: function (handle) {\n var delegate = intervalProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=intervalProvider.js.map","import { __extends } from \"tslib\";\nimport { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nvar AsyncAction = (function (_super) {\n __extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {\n if (delay === void 0) { delay = 0; }\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, _delay) {\n var errored = false;\n var errorValue;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype.unsubscribe = function () {\n if (!this.closed) {\n var _a = this, id = _a.id, scheduler = _a.scheduler;\n var actions = scheduler.actions;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n _super.prototype.unsubscribe.call(this);\n }\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nvar Scheduler = (function () {\n function Scheduler(schedulerActionCtor, now) {\n if (now === void 0) { now = Scheduler.now; }\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) { delay = 0; }\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n };\n Scheduler.now = dateTimestampProvider.now;\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map","import { __extends } from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = (function (_super) {\n __extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) { now = Scheduler.now; }\n var _this = _super.call(this, SchedulerAction, now) || this;\n _this.actions = [];\n _this._active = false;\n return _this;\n }\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this._active) {\n actions.push(action);\n return;\n }\n var error;\n this._active = true;\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions.shift()));\n this._active = false;\n if (error) {\n while ((action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map"],"x_google_ignoreList":[0,1,2,3,4,5],"mappings":"mMAEA,IAAI,EAAU,SAAU,EAAQ,CAC5B,EAAUA,EAAQ,EAAO,CACzB,SAASA,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U,EAAqB,EAAK,CAGzC,AAFI,QAAa,KAAK,EAAMA,EAAU,KACtC,KAAK,oBAAsB,EAC3B,KAAK,IAAM,CACd,CAMD,OALA,EAAU,UAAU,SAAW,SAAU,EAAM,EAAO,EAAO,CAEzD,OADI,QAAe,KAAK,EAAQ,GACzB,IAAI,KAAK,oBAAoB,KAAM,GAAM,SAAS,EAAO,EAAM,AACzE,EACD,EAAU,IAAM,EAAsB,IAC/BA,CACV,GAAE,CCXC,EAAkB,SAAU,EAAQ,CACpC,EAAUC,EAAgB,EAAO,CACjC,SAASA,EAAe,EAAiB,EAAK,CAC1C,AAAI,QAAa,KAAK,EAAM,EAAU,KACtC,IAAI,EAAQ,EAAO,KAAK,KAAM,EAAiB,EAAI,EAAI,KAGvD,OAFA,EAAM,QAAU,CAAE,EAClB,EAAM,SAAU,EACT,CACV,CAsBD,OArBA,EAAe,UAAU,MAAQ,SAAU,EAAQ,CAC/C,IAAI,EAAU,KAAK,QACnB,GAAI,KAAK,QAAS,CACd,EAAQ,KAAK,EAAO,CACpB,MACH,CACD,IAAI,EACJ,KAAK,SAAU,EACf,EACI,IAAK,EAAQ,EAAO,QAAQ,EAAO,MAAO,EAAO,MAAM,CACnD,YAEE,EAAS,EAAQ,OAAO,EAElC,GADA,KAAK,SAAU,EACX,EAAO,CACP,KAAQ,EAAS,EAAQ,OAAO,EAC5B,EAAO,aAAa,CAExB,MAAM,CACT,CACJ,EACMA,CACV,EAAC,EAAU,CC/BD,EAAiB,IAAI,EAAe,GACpC,EAAQ"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import{__commonJSMin as e}from"./chunk-DSR6Ryem.mjs";var t=e((exports,t)=>{
|
2
|
-
/** @license
|
3
|
-
|
4
|
-
* eventsource.js
|
5
|
-
|
6
|
-
* Available under MIT License (MIT)
|
7
|
-
|
8
|
-
* https://github.com/Yaffle/EventSource/
|
9
|
-
|
10
|
-
*/
|
11
|
-
(function(n){"use strict";var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,l=n.document,u=n.Promise,d=n.fetch,f=n.Response,p=n.TextDecoder,m=n.TextEncoder,h=n.AbortController;if(typeof window<`u`&&l!==void 0&&!(`readyState`in l)&&l.body==null&&(l.readyState=`loading`,window.addEventListener(`load`,function(e){l.readyState=`complete`},!1)),a==null&&s!=null&&(a=function(){return new s(`Microsoft.XMLHTTP`)}),Object.create??(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return new Date().getTime()}),h==null){var g=d;d=function(e,t){var n=t.signal;return g(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},h=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(e){function t(e,t,n){if(n===1)return e>=128>>t&&e<<t<=2047;if(n===2)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(n===3)return e>=65536>>t&&e<<t<=1114111;throw Error()}function n(e,t){if(e===6*1)return t>>6>15?3:t>31?2:1;if(e===6*2)return t>15?3:2;if(e===6*3)return 3;throw Error()}for(var r=65533,i=``,a=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var c=e[s];a!==0&&(c<128||c>191||!t(o<<6|c&63,a-6,n(a,o)))&&(a=0,o=r,i+=String.fromCharCode(o)),a===0?(c>=0&&c<=127?(a=0,o=c):c>=192&&c<=223?(a=6*1,o=c&31):c>=224&&c<=239?(a=6*2,o=c&15):c>=240&&c<=247?(a=6*3,o=c&7):(a=0,o=r),a!==0&&!t(o,a,n(a,o))&&(a=0,o=r)):(a-=6,o=o<<6|c&63),a===0&&(o<=65535?i+=String.fromCharCode(o):(i+=String.fromCharCode(55296+(o-65535-1>>10)),i+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=o,i};var v=function(){try{return new p().decode(new m().encode(`test`),{stream:!0})===`test`}catch(e){console.debug(`TextDecoder does not support streaming option. Using polyfill instead: `+e)}return!1};(p==null||m==null||!v())&&(p=_);var y=function(){};function b(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText=``,this.responseText=``,this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType=``,this._xhr=e,this._sendTimeout=0,this._abort=y}b.prototype.open=function(e,t){this._abort(!0);var n=this,o=this._xhr,s=1,c=0;this._abort=function(e){n._sendTimeout!==0&&(i(n._sendTimeout),n._sendTimeout=0),(s===1||s===2||s===3)&&(s=4,o.onload=y,o.onerror=y,o.onabort=y,o.onprogress=y,o.onreadystatechange=y,o.abort(),c!==0&&(i(c),c=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var l=function(){if(s===1){var e=0,t=``,r=void 0;if(`contentType`in o)e=200,t=`OK`,r=o.contentType;else try{e=o.status,t=o.statusText,r=o.getResponseHeader(`Content-Type`)}catch{e=0,t=``,r=void 0}e!==0&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=r,n.onreadystatechange())}},u=function(){if(l(),s===2||s===3){s=3;var e=``;try{e=o.responseText}catch{}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if((t==null||t.preventDefault==null)&&(t={preventDefault:y}),u(),s===1||s===2||s===3){if(s=4,c!==0&&(i(c),c=0),n.readyState=4,e===`load`)n.onload(t);else if(e===`error`)n.onerror(t);else if(e===`abort`)n.onabort(t);else throw TypeError();n.onreadystatechange()}},f=function(e){o!=null&&(o.readyState===4?(!(`onload`in o)||!(`onerror`in o)||!(`onabort`in o))&&d(o.responseText===``?`error`:`load`,e):o.readyState===3?`onprogress`in o||u():o.readyState===2&&l())},p=function(){c=r(function(){p()},500),o.readyState===3&&u()};`onload`in o&&(o.onload=function(e){d(`load`,e)}),`onerror`in o&&(o.onerror=function(e){d(`error`,e)}),`onabort`in o&&(o.onabort=function(e){d(`abort`,e)}),`onprogress`in o&&(o.onprogress=u),`onreadystatechange`in o&&(o.onreadystatechange=function(e){f(e)}),(`contentType`in o||!(`ontimeout`in a.prototype))&&(t+=(t.indexOf(`?`)===-1?`?`:`&`)+`padding=true`),o.open(e,t,!0),`readyState`in o&&(c=r(function(){p()},0))},b.prototype.abort=function(){this._abort(!1)},b.prototype.getResponseHeader=function(e){return this._contentType},b.prototype.setRequestHeader=function(e,t){var n=this._xhr;`setRequestHeader`in n&&n.setRequestHeader(e,t)},b.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders==null?``:this._xhr.getAllResponseHeaders()||``},b.prototype.send=function(){if((!(`ontimeout`in a.prototype)||!(`sendAsBinary`in a.prototype)&&!(`mozAnon`in a.prototype))&&l!=null&&l.readyState!=null&&l.readyState!==`complete`){var e=this;e._sendTimeout=r(function(){e._sendTimeout=0,e.send()},4);return}var t=this._xhr;`withCredentials`in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(e){throw e}};function x(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function S(e){for(var t=Object.create(null),n=e.split(`\r
|
12
|
-
`),r=0;r<n.length;r+=1){var i=n[r],a=i.split(`: `),o=a.shift(),s=a.join(`: `);t[x(o)]=s}this._map=t}S.prototype.get=function(e){return this._map[x(e)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function C(){}C.prototype.open=function(e,t,n,r,i,o,s){e.open(`GET`,i);var c=0;for(var l in e.onprogress=function(){var t=e.responseText,r=t.slice(c);c+=r.length,n(r)},e.onerror=function(e){e.preventDefault(),r(Error(`NetworkError`))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===a.HEADERS_RECEIVED){var n=e.status,r=e.statusText,i=e.getResponseHeader(`Content-Type`),o=e.getAllResponseHeaders();t(n,r,i,new S(o))}},e.withCredentials=o,s)Object.prototype.hasOwnProperty.call(s,l)&&e.setRequestHeader(l,s[l]);return e.send(),e};function w(e){this._headers=e}w.prototype.get=function(e){return this._headers.get(e)};function T(){}T.prototype.open=function(e,t,n,r,i,a,o){var s=null,c=new h,l=c.signal,f=new p;return d(i,{headers:o,credentials:a?`include`:`same-origin`,signal:l,cache:`no-store`}).then(function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get(`Content-Type`),new w(e.headers)),new u(function(e,t){var r=function(){s.read().then(function(t){if(t.done)e(void 0);else{var i=f.decode(t.value,{stream:!0});n(i),r()}}).catch(function(e){t(e)})};r()})}).catch(function(e){if(e.name!==`AbortError`)return e}).then(function(e){r(e)}),{abort:function(){s?.cancel(),c.abort()}}};function E(){this._listeners=Object.create(null)}function D(e){r(function(){throw e},0)}E.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(t!=null)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{typeof i.handleEvent==`function`?i.handleEvent(e):i.call(this,e)}catch(e){D(e)}}},E.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];r??(r=[],n[e]=r);for(var i=!1,a=0;a<r.length;a+=1)r[a]===t&&(i=!0);i||r.push(t)},E.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(r!=null){for(var i=[],a=0;a<r.length;a+=1)r[a]!==t&&i.push(r[a]);i.length===0?delete n[e]:n[e]=i}};function O(e){this.type=e,this.target=void 0}function k(e,t){O.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}k.prototype=Object.create(O.prototype);function A(e,t){O.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}A.prototype=Object.create(O.prototype);function j(e,t){O.call(this,e),this.error=t.error}j.prototype=Object.create(O.prototype);var M=-1,N=0,P=1,F=2,I=-1,L=0,R=1,z=2,B=3,V=/^text\/event\-stream(;.*)?$/i,H=1e3,U=18e6,W=function(e,t){var n=e==null?t:parseInt(e,10);return n!==n&&(n=t),G(n)},G=function(e){return Math.min(Math.max(e,H),U)},K=function(e,t,n){try{typeof t==`function`&&t.call(e,n)}catch(e){D(e)}};function q(e,t){E.call(this),t||={},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,X(this,e,t)}function J(){return a!=null&&`withCredentials`in a.prototype||o==null?new a:new o}var Y=d!=null&&f!=null&&`body`in f.prototype;function X(e,t,n){t=String(t);var a=!!n.withCredentials,o=n.lastEventIdQueryParameterName||`lastEventId`,s=G(1e3),c=W(n.heartbeatTimeout,45e3),l=``,u=s,d=!1,f=0,p=n.headers||{},m=n.Transport,h=Y&&m==null?void 0:new b(m==null?J():new m),g=m!=null&&typeof m!=`string`?new m:h==null?new T:new C,_=void 0,v=0,y=M,x=``,S=``,w=``,E=``,D=L,O=0,H=0,U=function(t,n,r,i){if(y===N)if(t===200&&r!=null&&V.test(r)){y=P,d=Date.now(),u=s,e.readyState=P;var a=new A(`open`,{status:t,statusText:n,headers:i});e.dispatchEvent(a),K(e,e.onopen,a)}else{var o=``;t===200?o=`EventSource's response has a Content-Type specifying an unsupported type: `+(r==null?`-`:r.replace(/\s+/g,` `))+`. Aborting the connection.`:(n&&=n.replace(/\s+/g,` `),o=`EventSource's response has a status `+t+` `+n+` that is not 200. Aborting the connection.`),Z();var a=new A(`error`,{status:t,statusText:n,headers:i});e.dispatchEvent(a),K(e,e.onerror,a),console.error(o)}},q=function(t){if(y===P){for(var n=-1,a=0;a<t.length;a+=1){var o=t.charCodeAt(a);(o===10||o===13)&&(n=a)}var p=(n===-1?``:E)+t.slice(0,n+1);E=(n===-1?E:``)+t.slice(n+1),t!==``&&(d=Date.now(),f+=t.length);for(var m=0;m<p.length;m+=1){var o=p.charCodeAt(m);if(D===I&&o===10)D=L;else if(D===I&&(D=L),o===13||o===10){if(D!==L){D===R&&(H=m+1);var h=p.slice(O,H-1),g=p.slice(H+(H<m&&p.charCodeAt(H)===32?1:0),m);h===`data`?(x+=`
|
13
|
-
`,x+=g):h===`id`?S=g:h===`event`?w=g:h===`retry`?(s=W(g,s),u=s):h===`heartbeatTimeout`&&(c=W(g,c),v!==0&&(i(v),v=r(function(){Q()},c)))}if(D===L){if(x!==``){l=S,w===``&&(w=`message`);var _=new k(w,{data:x.slice(1),lastEventId:S});if(e.dispatchEvent(_),w===`open`?K(e,e.onopen,_):w===`message`?K(e,e.onmessage,_):w===`error`&&K(e,e.onerror,_),y===F)return}x=``,w=``}D=o===13?I:L}else D===L&&(O=m,D=R),D===R?o===58&&(H=m+1,D=z):D===z&&(D=B)}}},X=function(t){if(y===P||y===N){y=M,v!==0&&(i(v),v=0),v=r(function(){Q()},u),u=G(Math.min(s*16,u*2)),e.readyState=N;var n=new j(`error`,{error:t});e.dispatchEvent(n),K(e,e.onerror,n),t!=null&&console.error(t)}},Z=function(){y=F,_!=null&&(_.abort(),_=void 0),v!==0&&(i(v),v=0),e.readyState=F},Q=function(){if(v=0,y!==M){if(!d&&_!=null)X(Error(`No activity within `+c+` milliseconds. `+(y===N?`No response received.`:f+` chars received.`)+` Reconnecting.`)),_!=null&&(_.abort(),_=void 0);else{var n=Math.max((d||Date.now())+c-Date.now(),1);d=!1,v=r(function(){Q()},n)}return}d=!1,f=0,v=r(function(){Q()},c),y=N,x=``,w=``,S=l,E=``,O=0,H=0,D=L;var i=t;if(t.slice(0,5)!==`data:`&&t.slice(0,5)!==`blob:`&&l!==``){var a=t.indexOf(`?`);i=a===-1?t:t.slice(0,a+1)+t.slice(a+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===o?``:e}),i+=(t.indexOf(`?`)===-1?`?`:`&`)+o+`=`+encodeURIComponent(l)}var s=e.withCredentials,u={};u.Accept=`text/event-stream`;var p=e.headers;if(p!=null)for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(u[m]=p[m]);try{_=g.open(h,U,q,X,i,s,u)}catch(e){throw Z(),e}};e.url=t,e.readyState=N,e.withCredentials=a,e.headers=p,e._close=Z,Q()}q.prototype=Object.create(E.prototype),q.prototype.CONNECTING=N,q.prototype.OPEN=P,q.prototype.CLOSED=F,q.prototype.close=function(){this._close()},q.CONNECTING=N,q.OPEN=P,q.CLOSED=F,q.prototype.withCredentials=void 0;var Z=c;a!=null&&(c==null||!(`withCredentials`in c.prototype))&&(Z=q),function(r){if(typeof t==`object`&&typeof t.exports==`object`){var i=r(exports);i!==void 0&&(t.exports=i)}else typeof define==`function`&&define.amd?define([`exports`],r):r(n)}(function(e){e.EventSourcePolyfill=q,e.NativeEventSource=c,e.EventSource=Z})})(typeof globalThis>`u`?typeof window<`u`?window:typeof self<`u`?self:void 0:globalThis)}),n=e((exports,n)=>{n.exports=t().EventSourcePolyfill});export default n();
|
14
|
-
//# sourceMappingURL=browser-Ca2COO1i.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"browser-Ca2COO1i.mjs","names":["Promise","codePoint","octetsCount","bitsNeeded","headers","withCredentials","exports"],"sources":["https://cdn.jsdelivr.net/npm/event-source-polyfill@1.0.31/src/eventsource.js","https://cdn.jsdelivr.net/npm/@sanity/eventsource@5.0.2/browser.js"],"sourcesContent":["/** @license\r\n * eventsource.js\r\n * Available under MIT License (MIT)\r\n * https://github.com/Yaffle/EventSource/\r\n */\r\n\r\n/*jslint indent: 2, vars: true, plusplus: true */\r\n/*global setTimeout, clearTimeout */\r\n\r\n(function (global) {\r\n \"use strict\";\r\n\r\n var setTimeout = global.setTimeout;\r\n var clearTimeout = global.clearTimeout;\r\n var XMLHttpRequest = global.XMLHttpRequest;\r\n var XDomainRequest = global.XDomainRequest;\r\n var ActiveXObject = global.ActiveXObject;\r\n var NativeEventSource = global.EventSource;\r\n\r\n var document = global.document;\r\n var Promise = global.Promise;\r\n var fetch = global.fetch;\r\n var Response = global.Response;\r\n var TextDecoder = global.TextDecoder;\r\n var TextEncoder = global.TextEncoder;\r\n var AbortController = global.AbortController;\r\n\r\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && !(\"readyState\" in document) && document.body == null) { // Firefox 2\r\n document.readyState = \"loading\";\r\n window.addEventListener(\"load\", function (event) {\r\n document.readyState = \"complete\";\r\n }, false);\r\n }\r\n\r\n if (XMLHttpRequest == null && ActiveXObject != null) { // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6\r\n XMLHttpRequest = function () {\r\n return new ActiveXObject(\"Microsoft.XMLHTTP\");\r\n };\r\n }\r\n\r\n if (Object.create == undefined) {\r\n Object.create = function (C) {\r\n function F(){}\r\n F.prototype = C;\r\n return new F();\r\n };\r\n }\r\n\r\n if (!Date.now) {\r\n Date.now = function now() {\r\n return new Date().getTime();\r\n };\r\n }\r\n\r\n // see #118 (Promise#finally with polyfilled Promise)\r\n // see #123 (data URLs crash Edge)\r\n // see #125 (CSP violations)\r\n // see pull/#138\r\n // => No way to polyfill Promise#finally\r\n\r\n if (AbortController == undefined) {\r\n var originalFetch2 = fetch;\r\n fetch = function (url, options) {\r\n var signal = options.signal;\r\n return originalFetch2(url, {headers: options.headers, credentials: options.credentials, cache: options.cache}).then(function (response) {\r\n var reader = response.body.getReader();\r\n signal._reader = reader;\r\n if (signal._aborted) {\r\n signal._reader.cancel();\r\n }\r\n return {\r\n status: response.status,\r\n statusText: response.statusText,\r\n headers: response.headers,\r\n body: {\r\n getReader: function () {\r\n return reader;\r\n }\r\n }\r\n };\r\n });\r\n };\r\n AbortController = function () {\r\n this.signal = {\r\n _reader: null,\r\n _aborted: false\r\n };\r\n this.abort = function () {\r\n if (this.signal._reader != null) {\r\n this.signal._reader.cancel();\r\n }\r\n this.signal._aborted = true;\r\n };\r\n };\r\n }\r\n\r\n function TextDecoderPolyfill() {\r\n this.bitsNeeded = 0;\r\n this.codePoint = 0;\r\n }\r\n\r\n TextDecoderPolyfill.prototype.decode = function (octets) {\r\n function valid(codePoint, shift, octetsCount) {\r\n if (octetsCount === 1) {\r\n return codePoint >= 0x0080 >> shift && codePoint << shift <= 0x07FF;\r\n }\r\n if (octetsCount === 2) {\r\n return codePoint >= 0x0800 >> shift && codePoint << shift <= 0xD7FF || codePoint >= 0xE000 >> shift && codePoint << shift <= 0xFFFF;\r\n }\r\n if (octetsCount === 3) {\r\n return codePoint >= 0x010000 >> shift && codePoint << shift <= 0x10FFFF;\r\n }\r\n throw new Error();\r\n }\r\n function octetsCount(bitsNeeded, codePoint) {\r\n if (bitsNeeded === 6 * 1) {\r\n return codePoint >> 6 > 15 ? 3 : codePoint > 31 ? 2 : 1;\r\n }\r\n if (bitsNeeded === 6 * 2) {\r\n return codePoint > 15 ? 3 : 2;\r\n }\r\n if (bitsNeeded === 6 * 3) {\r\n return 3;\r\n }\r\n throw new Error();\r\n }\r\n var REPLACER = 0xFFFD;\r\n var string = \"\";\r\n var bitsNeeded = this.bitsNeeded;\r\n var codePoint = this.codePoint;\r\n for (var i = 0; i < octets.length; i += 1) {\r\n var octet = octets[i];\r\n if (bitsNeeded !== 0) {\r\n if (octet < 128 || octet > 191 || !valid(codePoint << 6 | octet & 63, bitsNeeded - 6, octetsCount(bitsNeeded, codePoint))) {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n string += String.fromCharCode(codePoint);\r\n }\r\n }\r\n if (bitsNeeded === 0) {\r\n if (octet >= 0 && octet <= 127) {\r\n bitsNeeded = 0;\r\n codePoint = octet;\r\n } else if (octet >= 192 && octet <= 223) {\r\n bitsNeeded = 6 * 1;\r\n codePoint = octet & 31;\r\n } else if (octet >= 224 && octet <= 239) {\r\n bitsNeeded = 6 * 2;\r\n codePoint = octet & 15;\r\n } else if (octet >= 240 && octet <= 247) {\r\n bitsNeeded = 6 * 3;\r\n codePoint = octet & 7;\r\n } else {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n }\r\n if (bitsNeeded !== 0 && !valid(codePoint, bitsNeeded, octetsCount(bitsNeeded, codePoint))) {\r\n bitsNeeded = 0;\r\n codePoint = REPLACER;\r\n }\r\n } else {\r\n bitsNeeded -= 6;\r\n codePoint = codePoint << 6 | octet & 63;\r\n }\r\n if (bitsNeeded === 0) {\r\n if (codePoint <= 0xFFFF) {\r\n string += String.fromCharCode(codePoint);\r\n } else {\r\n string += String.fromCharCode(0xD800 + (codePoint - 0xFFFF - 1 >> 10));\r\n string += String.fromCharCode(0xDC00 + (codePoint - 0xFFFF - 1 & 0x3FF));\r\n }\r\n }\r\n }\r\n this.bitsNeeded = bitsNeeded;\r\n this.codePoint = codePoint;\r\n return string;\r\n };\r\n\r\n // Firefox < 38 throws an error with stream option\r\n var supportsStreamOption = function () {\r\n try {\r\n return new TextDecoder().decode(new TextEncoder().encode(\"test\"), {stream: true}) === \"test\";\r\n } catch (error) {\r\n console.debug(\"TextDecoder does not support streaming option. Using polyfill instead: \" + error);\r\n }\r\n return false;\r\n };\r\n\r\n // IE, Edge\r\n if (TextDecoder == undefined || TextEncoder == undefined || !supportsStreamOption()) {\r\n TextDecoder = TextDecoderPolyfill;\r\n }\r\n\r\n var k = function () {\r\n };\r\n\r\n function XHRWrapper(xhr) {\r\n this.withCredentials = false;\r\n this.readyState = 0;\r\n this.status = 0;\r\n this.statusText = \"\";\r\n this.responseText = \"\";\r\n this.onprogress = k;\r\n this.onload = k;\r\n this.onerror = k;\r\n this.onreadystatechange = k;\r\n this._contentType = \"\";\r\n this._xhr = xhr;\r\n this._sendTimeout = 0;\r\n this._abort = k;\r\n }\r\n\r\n XHRWrapper.prototype.open = function (method, url) {\r\n this._abort(true);\r\n\r\n var that = this;\r\n var xhr = this._xhr;\r\n var state = 1;\r\n var timeout = 0;\r\n\r\n this._abort = function (silent) {\r\n if (that._sendTimeout !== 0) {\r\n clearTimeout(that._sendTimeout);\r\n that._sendTimeout = 0;\r\n }\r\n if (state === 1 || state === 2 || state === 3) {\r\n state = 4;\r\n xhr.onload = k;\r\n xhr.onerror = k;\r\n xhr.onabort = k;\r\n xhr.onprogress = k;\r\n xhr.onreadystatechange = k;\r\n // IE 8 - 9: XDomainRequest#abort() does not fire any event\r\n // Opera < 10: XMLHttpRequest#abort() does not fire any event\r\n xhr.abort();\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n if (!silent) {\r\n that.readyState = 4;\r\n that.onabort(null);\r\n that.onreadystatechange();\r\n }\r\n }\r\n state = 0;\r\n };\r\n\r\n var onStart = function () {\r\n if (state === 1) {\r\n //state = 2;\r\n var status = 0;\r\n var statusText = \"\";\r\n var contentType = undefined;\r\n if (!(\"contentType\" in xhr)) {\r\n try {\r\n status = xhr.status;\r\n statusText = xhr.statusText;\r\n contentType = xhr.getResponseHeader(\"Content-Type\");\r\n } catch (error) {\r\n // IE < 10 throws exception for `xhr.status` when xhr.readyState === 2 || xhr.readyState === 3\r\n // Opera < 11 throws exception for `xhr.status` when xhr.readyState === 2\r\n // https://bugs.webkit.org/show_bug.cgi?id=29121\r\n status = 0;\r\n statusText = \"\";\r\n contentType = undefined;\r\n // Firefox < 14, Chrome ?, Safari ?\r\n // https://bugs.webkit.org/show_bug.cgi?id=29658\r\n // https://bugs.webkit.org/show_bug.cgi?id=77854\r\n }\r\n } else {\r\n status = 200;\r\n statusText = \"OK\";\r\n contentType = xhr.contentType;\r\n }\r\n if (status !== 0) {\r\n state = 2;\r\n that.readyState = 2;\r\n that.status = status;\r\n that.statusText = statusText;\r\n that._contentType = contentType;\r\n that.onreadystatechange();\r\n }\r\n }\r\n };\r\n var onProgress = function () {\r\n onStart();\r\n if (state === 2 || state === 3) {\r\n state = 3;\r\n var responseText = \"\";\r\n try {\r\n responseText = xhr.responseText;\r\n } catch (error) {\r\n // IE 8 - 9 with XMLHttpRequest\r\n }\r\n that.readyState = 3;\r\n that.responseText = responseText;\r\n that.onprogress();\r\n }\r\n };\r\n var onFinish = function (type, event) {\r\n if (event == null || event.preventDefault == null) {\r\n event = {\r\n preventDefault: k\r\n };\r\n }\r\n // Firefox 52 fires \"readystatechange\" (xhr.readyState === 4) without final \"readystatechange\" (xhr.readyState === 3)\r\n // IE 8 fires \"onload\" without \"onprogress\"\r\n onProgress();\r\n if (state === 1 || state === 2 || state === 3) {\r\n state = 4;\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n that.readyState = 4;\r\n if (type === \"load\") {\r\n that.onload(event);\r\n } else if (type === \"error\") {\r\n that.onerror(event);\r\n } else if (type === \"abort\") {\r\n that.onabort(event);\r\n } else {\r\n throw new TypeError();\r\n }\r\n that.onreadystatechange();\r\n }\r\n };\r\n var onReadyStateChange = function (event) {\r\n if (xhr != undefined) { // Opera 12\r\n if (xhr.readyState === 4) {\r\n if (!(\"onload\" in xhr) || !(\"onerror\" in xhr) || !(\"onabort\" in xhr)) {\r\n onFinish(xhr.responseText === \"\" ? \"error\" : \"load\", event);\r\n }\r\n } else if (xhr.readyState === 3) {\r\n if (!(\"onprogress\" in xhr)) { // testing XMLHttpRequest#responseText too many times is too slow in IE 11\r\n // and in Firefox 3.6\r\n onProgress();\r\n }\r\n } else if (xhr.readyState === 2) {\r\n onStart();\r\n }\r\n }\r\n };\r\n var onTimeout = function () {\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, 500);\r\n if (xhr.readyState === 3) {\r\n onProgress();\r\n }\r\n };\r\n\r\n // XDomainRequest#abort removes onprogress, onerror, onload\r\n if (\"onload\" in xhr) {\r\n xhr.onload = function (event) {\r\n onFinish(\"load\", event);\r\n };\r\n }\r\n if (\"onerror\" in xhr) {\r\n xhr.onerror = function (event) {\r\n onFinish(\"error\", event);\r\n };\r\n }\r\n // improper fix to match Firefox behaviour, but it is better than just ignore abort\r\n // see https://bugzilla.mozilla.org/show_bug.cgi?id=768596\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=880200\r\n // https://code.google.com/p/chromium/issues/detail?id=153570\r\n // IE 8 fires \"onload\" without \"onprogress\r\n if (\"onabort\" in xhr) {\r\n xhr.onabort = function (event) {\r\n onFinish(\"abort\", event);\r\n };\r\n }\r\n\r\n if (\"onprogress\" in xhr) {\r\n xhr.onprogress = onProgress;\r\n }\r\n\r\n // IE 8 - 9 (XMLHTTPRequest)\r\n // Opera < 12\r\n // Firefox < 3.5\r\n // Firefox 3.5 - 3.6 - ? < 9.0\r\n // onprogress is not fired sometimes or delayed\r\n // see also #64 (significant lag in IE 11)\r\n if (\"onreadystatechange\" in xhr) {\r\n xhr.onreadystatechange = function (event) {\r\n onReadyStateChange(event);\r\n };\r\n }\r\n\r\n if (\"contentType\" in xhr || !(\"ontimeout\" in XMLHttpRequest.prototype)) {\r\n url += (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + \"padding=true\";\r\n }\r\n xhr.open(method, url, true);\r\n\r\n if (\"readyState\" in xhr) {\r\n // workaround for Opera 12 issue with \"progress\" events\r\n // #91 (XMLHttpRequest onprogress not fired for streaming response in Edge 14-15-?)\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, 0);\r\n }\r\n };\r\n XHRWrapper.prototype.abort = function () {\r\n this._abort(false);\r\n };\r\n XHRWrapper.prototype.getResponseHeader = function (name) {\r\n return this._contentType;\r\n };\r\n XHRWrapper.prototype.setRequestHeader = function (name, value) {\r\n var xhr = this._xhr;\r\n if (\"setRequestHeader\" in xhr) {\r\n xhr.setRequestHeader(name, value);\r\n }\r\n };\r\n XHRWrapper.prototype.getAllResponseHeaders = function () {\r\n // XMLHttpRequest#getAllResponseHeaders returns null for CORS requests in Firefox 3.6.28\r\n return this._xhr.getAllResponseHeaders != undefined ? this._xhr.getAllResponseHeaders() || \"\" : \"\";\r\n };\r\n XHRWrapper.prototype.send = function () {\r\n // loading indicator in Safari < ? (6), Chrome < 14, Firefox\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=736723\r\n if ((!(\"ontimeout\" in XMLHttpRequest.prototype) || (!(\"sendAsBinary\" in XMLHttpRequest.prototype) && !(\"mozAnon\" in XMLHttpRequest.prototype))) &&\r\n document != undefined &&\r\n document.readyState != undefined &&\r\n document.readyState !== \"complete\") {\r\n var that = this;\r\n that._sendTimeout = setTimeout(function () {\r\n that._sendTimeout = 0;\r\n that.send();\r\n }, 4);\r\n return;\r\n }\r\n\r\n var xhr = this._xhr;\r\n // withCredentials should be set after \"open\" for Safari and Chrome (< 19 ?)\r\n if (\"withCredentials\" in xhr) {\r\n xhr.withCredentials = this.withCredentials;\r\n }\r\n try {\r\n // xhr.send(); throws \"Not enough arguments\" in Firefox 3.0\r\n xhr.send(undefined);\r\n } catch (error1) {\r\n // Safari 5.1.7, Opera 12\r\n throw error1;\r\n }\r\n };\r\n\r\n function toLowerCase(name) {\r\n return name.replace(/[A-Z]/g, function (c) {\r\n return String.fromCharCode(c.charCodeAt(0) + 0x20);\r\n });\r\n }\r\n\r\n function HeadersPolyfill(all) {\r\n // Get headers: implemented according to mozilla's example code: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders#Example\r\n var map = Object.create(null);\r\n var array = all.split(\"\\r\\n\");\r\n for (var i = 0; i < array.length; i += 1) {\r\n var line = array[i];\r\n var parts = line.split(\": \");\r\n var name = parts.shift();\r\n var value = parts.join(\": \");\r\n map[toLowerCase(name)] = value;\r\n }\r\n this._map = map;\r\n }\r\n HeadersPolyfill.prototype.get = function (name) {\r\n return this._map[toLowerCase(name)];\r\n };\r\n\r\n if (XMLHttpRequest != null && XMLHttpRequest.HEADERS_RECEIVED == null) { // IE < 9, Firefox 3.6\r\n XMLHttpRequest.HEADERS_RECEIVED = 2;\r\n }\r\n\r\n function XHRTransport() {\r\n }\r\n\r\n XHRTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {\r\n xhr.open(\"GET\", url);\r\n var offset = 0;\r\n xhr.onprogress = function () {\r\n var responseText = xhr.responseText;\r\n var chunk = responseText.slice(offset);\r\n offset += chunk.length;\r\n onProgressCallback(chunk);\r\n };\r\n xhr.onerror = function (event) {\r\n event.preventDefault();\r\n onFinishCallback(new Error(\"NetworkError\"));\r\n };\r\n xhr.onload = function () {\r\n onFinishCallback(null);\r\n };\r\n xhr.onabort = function () {\r\n onFinishCallback(null);\r\n };\r\n xhr.onreadystatechange = function () {\r\n if (xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED) {\r\n var status = xhr.status;\r\n var statusText = xhr.statusText;\r\n var contentType = xhr.getResponseHeader(\"Content-Type\");\r\n var headers = xhr.getAllResponseHeaders();\r\n onStartCallback(status, statusText, contentType, new HeadersPolyfill(headers));\r\n }\r\n };\r\n xhr.withCredentials = withCredentials;\r\n for (var name in headers) {\r\n if (Object.prototype.hasOwnProperty.call(headers, name)) {\r\n xhr.setRequestHeader(name, headers[name]);\r\n }\r\n }\r\n xhr.send();\r\n return xhr;\r\n };\r\n\r\n function HeadersWrapper(headers) {\r\n this._headers = headers;\r\n }\r\n HeadersWrapper.prototype.get = function (name) {\r\n return this._headers.get(name);\r\n };\r\n\r\n function FetchTransport() {\r\n }\r\n\r\n FetchTransport.prototype.open = function (xhr, onStartCallback, onProgressCallback, onFinishCallback, url, withCredentials, headers) {\r\n var reader = null;\r\n var controller = new AbortController();\r\n var signal = controller.signal;\r\n var textDecoder = new TextDecoder();\r\n fetch(url, {\r\n headers: headers,\r\n credentials: withCredentials ? \"include\" : \"same-origin\",\r\n signal: signal,\r\n cache: \"no-store\"\r\n }).then(function (response) {\r\n reader = response.body.getReader();\r\n onStartCallback(response.status, response.statusText, response.headers.get(\"Content-Type\"), new HeadersWrapper(response.headers));\r\n // see https://github.com/promises-aplus/promises-spec/issues/179\r\n return new Promise(function (resolve, reject) {\r\n var readNextChunk = function () {\r\n reader.read().then(function (result) {\r\n if (result.done) {\r\n //Note: bytes in textDecoder are ignored\r\n resolve(undefined);\r\n } else {\r\n var chunk = textDecoder.decode(result.value, {stream: true});\r\n onProgressCallback(chunk);\r\n readNextChunk();\r\n }\r\n })[\"catch\"](function (error) {\r\n reject(error);\r\n });\r\n };\r\n readNextChunk();\r\n });\r\n })[\"catch\"](function (error) {\r\n if (error.name === \"AbortError\") {\r\n return undefined;\r\n } else {\r\n return error;\r\n }\r\n }).then(function (error) {\r\n onFinishCallback(error);\r\n });\r\n return {\r\n abort: function () {\r\n if (reader != null) {\r\n reader.cancel(); // https://bugzilla.mozilla.org/show_bug.cgi?id=1583815\r\n }\r\n controller.abort();\r\n }\r\n };\r\n };\r\n\r\n function EventTarget() {\r\n this._listeners = Object.create(null);\r\n }\r\n\r\n function throwError(e) {\r\n setTimeout(function () {\r\n throw e;\r\n }, 0);\r\n }\r\n\r\n EventTarget.prototype.dispatchEvent = function (event) {\r\n event.target = this;\r\n var typeListeners = this._listeners[event.type];\r\n if (typeListeners != undefined) {\r\n var length = typeListeners.length;\r\n for (var i = 0; i < length; i += 1) {\r\n var listener = typeListeners[i];\r\n try {\r\n if (typeof listener.handleEvent === \"function\") {\r\n listener.handleEvent(event);\r\n } else {\r\n listener.call(this, event);\r\n }\r\n } catch (e) {\r\n throwError(e);\r\n }\r\n }\r\n }\r\n };\r\n EventTarget.prototype.addEventListener = function (type, listener) {\r\n type = String(type);\r\n var listeners = this._listeners;\r\n var typeListeners = listeners[type];\r\n if (typeListeners == undefined) {\r\n typeListeners = [];\r\n listeners[type] = typeListeners;\r\n }\r\n var found = false;\r\n for (var i = 0; i < typeListeners.length; i += 1) {\r\n if (typeListeners[i] === listener) {\r\n found = true;\r\n }\r\n }\r\n if (!found) {\r\n typeListeners.push(listener);\r\n }\r\n };\r\n EventTarget.prototype.removeEventListener = function (type, listener) {\r\n type = String(type);\r\n var listeners = this._listeners;\r\n var typeListeners = listeners[type];\r\n if (typeListeners != undefined) {\r\n var filtered = [];\r\n for (var i = 0; i < typeListeners.length; i += 1) {\r\n if (typeListeners[i] !== listener) {\r\n filtered.push(typeListeners[i]);\r\n }\r\n }\r\n if (filtered.length === 0) {\r\n delete listeners[type];\r\n } else {\r\n listeners[type] = filtered;\r\n }\r\n }\r\n };\r\n\r\n function Event(type) {\r\n this.type = type;\r\n this.target = undefined;\r\n }\r\n\r\n function MessageEvent(type, options) {\r\n Event.call(this, type);\r\n this.data = options.data;\r\n this.lastEventId = options.lastEventId;\r\n }\r\n\r\n MessageEvent.prototype = Object.create(Event.prototype);\r\n\r\n function ConnectionEvent(type, options) {\r\n Event.call(this, type);\r\n this.status = options.status;\r\n this.statusText = options.statusText;\r\n this.headers = options.headers;\r\n }\r\n\r\n ConnectionEvent.prototype = Object.create(Event.prototype);\r\n\r\n function ErrorEvent(type, options) {\r\n Event.call(this, type);\r\n this.error = options.error;\r\n }\r\n\r\n ErrorEvent.prototype = Object.create(Event.prototype);\r\n\r\n var WAITING = -1;\r\n var CONNECTING = 0;\r\n var OPEN = 1;\r\n var CLOSED = 2;\r\n\r\n var AFTER_CR = -1;\r\n var FIELD_START = 0;\r\n var FIELD = 1;\r\n var VALUE_START = 2;\r\n var VALUE = 3;\r\n\r\n var contentTypeRegExp = /^text\\/event\\-stream(;.*)?$/i;\r\n\r\n var MINIMUM_DURATION = 1000;\r\n var MAXIMUM_DURATION = 18000000;\r\n\r\n var parseDuration = function (value, def) {\r\n var n = value == null ? def : parseInt(value, 10);\r\n if (n !== n) {\r\n n = def;\r\n }\r\n return clampDuration(n);\r\n };\r\n var clampDuration = function (n) {\r\n return Math.min(Math.max(n, MINIMUM_DURATION), MAXIMUM_DURATION);\r\n };\r\n\r\n var fire = function (that, f, event) {\r\n try {\r\n if (typeof f === \"function\") {\r\n f.call(that, event);\r\n }\r\n } catch (e) {\r\n throwError(e);\r\n }\r\n };\r\n\r\n function EventSourcePolyfill(url, options) {\r\n EventTarget.call(this);\r\n options = options || {};\r\n\r\n this.onopen = undefined;\r\n this.onmessage = undefined;\r\n this.onerror = undefined;\r\n\r\n this.url = undefined;\r\n this.readyState = undefined;\r\n this.withCredentials = undefined;\r\n this.headers = undefined;\r\n\r\n this._close = undefined;\r\n\r\n start(this, url, options);\r\n }\r\n\r\n function getBestXHRTransport() {\r\n return (XMLHttpRequest != undefined && (\"withCredentials\" in XMLHttpRequest.prototype)) || XDomainRequest == undefined\r\n ? new XMLHttpRequest()\r\n : new XDomainRequest();\r\n }\r\n\r\n var isFetchSupported = fetch != undefined && Response != undefined && \"body\" in Response.prototype;\r\n\r\n function start(es, url, options) {\r\n url = String(url);\r\n var withCredentials = Boolean(options.withCredentials);\r\n var lastEventIdQueryParameterName = options.lastEventIdQueryParameterName || \"lastEventId\";\r\n\r\n var initialRetry = clampDuration(1000);\r\n var heartbeatTimeout = parseDuration(options.heartbeatTimeout, 45000);\r\n\r\n var lastEventId = \"\";\r\n var retry = initialRetry;\r\n var wasActivity = false;\r\n var textLength = 0;\r\n var headers = options.headers || {};\r\n var TransportOption = options.Transport;\r\n var xhr = isFetchSupported && TransportOption == undefined ? undefined : new XHRWrapper(TransportOption != undefined ? new TransportOption() : getBestXHRTransport());\r\n var transport = TransportOption != null && typeof TransportOption !== \"string\" ? new TransportOption() : (xhr == undefined ? new FetchTransport() : new XHRTransport());\r\n var abortController = undefined;\r\n var timeout = 0;\r\n var currentState = WAITING;\r\n var dataBuffer = \"\";\r\n var lastEventIdBuffer = \"\";\r\n var eventTypeBuffer = \"\";\r\n\r\n var textBuffer = \"\";\r\n var state = FIELD_START;\r\n var fieldStart = 0;\r\n var valueStart = 0;\r\n\r\n var onStart = function (status, statusText, contentType, headers) {\r\n if (currentState === CONNECTING) {\r\n if (status === 200 && contentType != undefined && contentTypeRegExp.test(contentType)) {\r\n currentState = OPEN;\r\n wasActivity = Date.now();\r\n retry = initialRetry;\r\n es.readyState = OPEN;\r\n var event = new ConnectionEvent(\"open\", {\r\n status: status,\r\n statusText: statusText,\r\n headers: headers\r\n });\r\n es.dispatchEvent(event);\r\n fire(es, es.onopen, event);\r\n } else {\r\n var message = \"\";\r\n if (status !== 200) {\r\n if (statusText) {\r\n statusText = statusText.replace(/\\s+/g, \" \");\r\n }\r\n message = \"EventSource's response has a status \" + status + \" \" + statusText + \" that is not 200. Aborting the connection.\";\r\n } else {\r\n message = \"EventSource's response has a Content-Type specifying an unsupported type: \" + (contentType == undefined ? \"-\" : contentType.replace(/\\s+/g, \" \")) + \". Aborting the connection.\";\r\n }\r\n close();\r\n var event = new ConnectionEvent(\"error\", {\r\n status: status,\r\n statusText: statusText,\r\n headers: headers\r\n });\r\n es.dispatchEvent(event);\r\n fire(es, es.onerror, event);\r\n console.error(message);\r\n }\r\n }\r\n };\r\n\r\n var onProgress = function (textChunk) {\r\n if (currentState === OPEN) {\r\n var n = -1;\r\n for (var i = 0; i < textChunk.length; i += 1) {\r\n var c = textChunk.charCodeAt(i);\r\n if (c === \"\\n\".charCodeAt(0) || c === \"\\r\".charCodeAt(0)) {\r\n n = i;\r\n }\r\n }\r\n var chunk = (n !== -1 ? textBuffer : \"\") + textChunk.slice(0, n + 1);\r\n textBuffer = (n === -1 ? textBuffer : \"\") + textChunk.slice(n + 1);\r\n if (textChunk !== \"\") {\r\n wasActivity = Date.now();\r\n textLength += textChunk.length;\r\n }\r\n for (var position = 0; position < chunk.length; position += 1) {\r\n var c = chunk.charCodeAt(position);\r\n if (state === AFTER_CR && c === \"\\n\".charCodeAt(0)) {\r\n state = FIELD_START;\r\n } else {\r\n if (state === AFTER_CR) {\r\n state = FIELD_START;\r\n }\r\n if (c === \"\\r\".charCodeAt(0) || c === \"\\n\".charCodeAt(0)) {\r\n if (state !== FIELD_START) {\r\n if (state === FIELD) {\r\n valueStart = position + 1;\r\n }\r\n var field = chunk.slice(fieldStart, valueStart - 1);\r\n var value = chunk.slice(valueStart + (valueStart < position && chunk.charCodeAt(valueStart) === \" \".charCodeAt(0) ? 1 : 0), position);\r\n if (field === \"data\") {\r\n dataBuffer += \"\\n\";\r\n dataBuffer += value;\r\n } else if (field === \"id\") {\r\n lastEventIdBuffer = value;\r\n } else if (field === \"event\") {\r\n eventTypeBuffer = value;\r\n } else if (field === \"retry\") {\r\n initialRetry = parseDuration(value, initialRetry);\r\n retry = initialRetry;\r\n } else if (field === \"heartbeatTimeout\") {\r\n heartbeatTimeout = parseDuration(value, heartbeatTimeout);\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, heartbeatTimeout);\r\n }\r\n }\r\n }\r\n if (state === FIELD_START) {\r\n if (dataBuffer !== \"\") {\r\n lastEventId = lastEventIdBuffer;\r\n if (eventTypeBuffer === \"\") {\r\n eventTypeBuffer = \"message\";\r\n }\r\n var event = new MessageEvent(eventTypeBuffer, {\r\n data: dataBuffer.slice(1),\r\n lastEventId: lastEventIdBuffer\r\n });\r\n es.dispatchEvent(event);\r\n if (eventTypeBuffer === \"open\") {\r\n fire(es, es.onopen, event);\r\n } else if (eventTypeBuffer === \"message\") {\r\n fire(es, es.onmessage, event);\r\n } else if (eventTypeBuffer === \"error\") {\r\n fire(es, es.onerror, event);\r\n }\r\n if (currentState === CLOSED) {\r\n return;\r\n }\r\n }\r\n dataBuffer = \"\";\r\n eventTypeBuffer = \"\";\r\n }\r\n state = c === \"\\r\".charCodeAt(0) ? AFTER_CR : FIELD_START;\r\n } else {\r\n if (state === FIELD_START) {\r\n fieldStart = position;\r\n state = FIELD;\r\n }\r\n if (state === FIELD) {\r\n if (c === \":\".charCodeAt(0)) {\r\n valueStart = position + 1;\r\n state = VALUE_START;\r\n }\r\n } else if (state === VALUE_START) {\r\n state = VALUE;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n var onFinish = function (error) {\r\n if (currentState === OPEN || currentState === CONNECTING) {\r\n currentState = WAITING;\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, retry);\r\n retry = clampDuration(Math.min(initialRetry * 16, retry * 2));\r\n\r\n es.readyState = CONNECTING;\r\n var event = new ErrorEvent(\"error\", {error: error});\r\n es.dispatchEvent(event);\r\n fire(es, es.onerror, event);\r\n if (error != undefined) {\r\n console.error(error);\r\n }\r\n }\r\n };\r\n\r\n var close = function () {\r\n currentState = CLOSED;\r\n if (abortController != undefined) {\r\n abortController.abort();\r\n abortController = undefined;\r\n }\r\n if (timeout !== 0) {\r\n clearTimeout(timeout);\r\n timeout = 0;\r\n }\r\n es.readyState = CLOSED;\r\n };\r\n\r\n var onTimeout = function () {\r\n timeout = 0;\r\n\r\n if (currentState !== WAITING) {\r\n if (!wasActivity && abortController != undefined) {\r\n onFinish(new Error(\"No activity within \" + heartbeatTimeout + \" milliseconds.\" + \" \" + (currentState === CONNECTING ? \"No response received.\" : textLength + \" chars received.\") + \" \" + \"Reconnecting.\"));\r\n if (abortController != undefined) {\r\n abortController.abort();\r\n abortController = undefined;\r\n }\r\n } else {\r\n var nextHeartbeat = Math.max((wasActivity || Date.now()) + heartbeatTimeout - Date.now(), 1);\r\n wasActivity = false;\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, nextHeartbeat);\r\n }\r\n return;\r\n }\r\n\r\n wasActivity = false;\r\n textLength = 0;\r\n timeout = setTimeout(function () {\r\n onTimeout();\r\n }, heartbeatTimeout);\r\n\r\n currentState = CONNECTING;\r\n dataBuffer = \"\";\r\n eventTypeBuffer = \"\";\r\n lastEventIdBuffer = lastEventId;\r\n textBuffer = \"\";\r\n fieldStart = 0;\r\n valueStart = 0;\r\n state = FIELD_START;\r\n\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=428916\r\n // Request header field Last-Event-ID is not allowed by Access-Control-Allow-Headers.\r\n var requestURL = url;\r\n if (url.slice(0, 5) !== \"data:\" && url.slice(0, 5) !== \"blob:\") {\r\n if (lastEventId !== \"\") {\r\n // Remove the lastEventId parameter if it's already part of the request URL.\r\n var i = url.indexOf(\"?\");\r\n requestURL = i === -1 ? url : url.slice(0, i + 1) + url.slice(i + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function (p, paramName) {\r\n return paramName === lastEventIdQueryParameterName ? '' : p;\r\n });\r\n // Append the current lastEventId to the request URL.\r\n requestURL += (url.indexOf(\"?\") === -1 ? \"?\" : \"&\") + lastEventIdQueryParameterName +\"=\" + encodeURIComponent(lastEventId);\r\n }\r\n }\r\n var withCredentials = es.withCredentials;\r\n var requestHeaders = {};\r\n requestHeaders[\"Accept\"] = \"text/event-stream\";\r\n var headers = es.headers;\r\n if (headers != undefined) {\r\n for (var name in headers) {\r\n if (Object.prototype.hasOwnProperty.call(headers, name)) {\r\n requestHeaders[name] = headers[name];\r\n }\r\n }\r\n }\r\n try {\r\n abortController = transport.open(xhr, onStart, onProgress, onFinish, requestURL, withCredentials, requestHeaders);\r\n } catch (error) {\r\n close();\r\n throw error;\r\n }\r\n };\r\n\r\n es.url = url;\r\n es.readyState = CONNECTING;\r\n es.withCredentials = withCredentials;\r\n es.headers = headers;\r\n es._close = close;\r\n\r\n onTimeout();\r\n }\r\n\r\n EventSourcePolyfill.prototype = Object.create(EventTarget.prototype);\r\n EventSourcePolyfill.prototype.CONNECTING = CONNECTING;\r\n EventSourcePolyfill.prototype.OPEN = OPEN;\r\n EventSourcePolyfill.prototype.CLOSED = CLOSED;\r\n EventSourcePolyfill.prototype.close = function () {\r\n this._close();\r\n };\r\n\r\n EventSourcePolyfill.CONNECTING = CONNECTING;\r\n EventSourcePolyfill.OPEN = OPEN;\r\n EventSourcePolyfill.CLOSED = CLOSED;\r\n EventSourcePolyfill.prototype.withCredentials = undefined;\r\n\r\n var R = NativeEventSource\r\n if (XMLHttpRequest != undefined && (NativeEventSource == undefined || !(\"withCredentials\" in NativeEventSource.prototype))) {\r\n // Why replace a native EventSource ?\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=444328\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=831392\r\n // https://code.google.com/p/chromium/issues/detail?id=260144\r\n // https://code.google.com/p/chromium/issues/detail?id=225654\r\n // ...\r\n R = EventSourcePolyfill;\r\n }\r\n\r\n (function (factory) {\r\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n var v = factory(exports);\r\n if (v !== undefined) module.exports = v;\r\n }\r\n else if (typeof define === \"function\" && define.amd) {\r\n define([\"exports\"], factory);\r\n }\r\n else {\r\n factory(global);\r\n }\r\n })(function (exports) {\r\n exports.EventSourcePolyfill = EventSourcePolyfill;\r\n exports.NativeEventSource = NativeEventSource;\r\n exports.EventSource = R;\r\n });\r\n}(typeof globalThis === 'undefined' ? (typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : this) : globalThis));\r\n","module.exports = require('event-source-polyfill').EventSourcePolyfill\n"],"x_google_ignoreList":[0,1],"mappings":";;;;;;;;;;AASC,CAAA,SAAU,EAAQ,CACjB,aAEA,IAAI,EAAa,EAAO,WACpB,EAAe,EAAO,aACtB,EAAiB,EAAO,eACxB,EAAiB,EAAO,eACxB,EAAgB,EAAO,cACvB,EAAoB,EAAO,YAE3B,EAAW,EAAO,SAClBA,EAAU,EAAO,QACjB,EAAQ,EAAO,MACf,EAAW,EAAO,SAClB,EAAc,EAAO,YACrB,EAAc,EAAO,YACrB,EAAkB,EAAO,gBAmC7B,UAjCW,OAAW,KAAsB,cAA8B,eAAgB,IAAa,EAAS,MAAQ,OACtH,EAAS,WAAa,UACtB,OAAO,iBAAiB,OAAQ,SAAU,EAAO,CAC/C,EAAS,WAAa,UACvB,GAAE,EAAM,EAGP,GAAkB,MAAQ,GAAiB,OAC7C,EAAiB,UAAY,CAC3B,OAAO,IAAI,EAAc,oBAC1B,GAGC,OAAO,SACT,OAAO,OAAS,SAAU,EAAG,CAC3B,SAAS,GAAG,CAAE,CAEd,OADA,EAAE,UAAY,EACP,IAAI,CACZ,GAGE,KAAK,MACR,KAAK,IAAM,UAAe,CACxB,MAAO,CAAA,IAAI,OAAO,SAAS,AAC5B,GASC,GAAA,KAA8B,CAChC,IAAI,EAAiB,EAqBrB,AApBA,EAAQ,SAAU,EAAK,EAAS,CAC9B,IAAI,EAAS,EAAQ,OACrB,MAAO,GAAe,EAAK,CAAC,QAAS,EAAQ,QAAS,YAAa,EAAQ,YAAa,MAAO,EAAQ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U,EACb,EAAG,OAAS,EAEZ,GAAW,AACZ,CAaD,AAXA,EAAoB,UAAY,OAAO,OAAO,EAAY,UAAU,CACpE,EAAoB,UAAU,WAAa,EAC3C,EAAoB,UAAU,KAAO,EACrC,EAAoB,UAAU,OAAS,EACvC,EAAoB,UAAU,MAAQ,UAAY,CAChD,KAAK,QAAQ,AACd,EAED,EAAoB,WAAa,EACjC,EAAoB,KAAO,EAC3B,EAAoB,OAAS,EAC7B,EAAoB,UAAU,oBAAA,GAE9B,IAAI,EAAI,EAWR,AAVI,GAAA,OAAgC,GAAA,QAAoC,oBAAqB,EAAkB,cAO7G,EAAI,GAGN,AAAC,SAAU,EAAS,CAClB,UAAW,GAAW,iBAAmB,EAAO,SAAY,SAAU,CACpE,IAAI,EAAI,EAAQ,QAAQ,CACxB,AAAI,QAAA,KAAiB,EAAO,QAAU,EACvC,MAAA,OACe,QAAW,YAAc,OAAO,IAC9C,OAAO,CAAC,SAAU,EAAE,EAAQ,CAG5B,EAAQ,EAAO,AAElB,EAAE,SAAUC,EAAS,CAGpB,AAFA,EAAQ,oBAAsB,EAC9B,EAAQ,kBAAoB,EAC5B,EAAQ,YAAc,CACvB,EAAC,AACH,UAAQ,WAAe,WAAsB,OAAW,IAAc,cAAgB,KAAS,IAAc,SAAA,GAAe,WAAW,qBCvhCxI,EAAO,QAAA,GAAA,CAA2C"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{__commonJSMin as e}from"./chunk-DSR6Ryem.mjs";var t=e((exports,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]),l=(t[2]||`ms`).toLowerCase();switch(l){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}}),n=e((exports,n)=>{function r(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=a,r.enabled=c,r.humanize=t(),r.destroy=u,Object.keys(e).forEach(t=>{r[t]=e[t]}),r.names=[],r.skips=[],r.formatters={};function n(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return r.colors[Math.abs(t)%r.colors.length]}r.selectColor=n;function r(e){let t,n=null,a,o;function s(...e){if(!s.enabled)return;let n=s,i=Number(new Date),a=i-(t||i);n.diff=a,n.prev=t,n.curr=i,t=i,e[0]=r.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;o++;let a=r.formatters[i];if(typeof a==`function`){let r=e[o];t=a.call(n,r),e.splice(o,1),o--}return t}),r.formatArgs.call(n,e);let c=n.log||r.log;c.apply(n,e)}return s.namespace=e,s.useColors=r.useColors(),s.color=r.selectColor(e),s.extend=i,s.destroy=r.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>n===null?(a!==r.namespaces&&(a=r.namespaces,o=r.enabled(e)),o):n,set:e=>{n=e}}),typeof r.init==`function`&&r.init(s),s}function i(e,t){let n=r(this.namespace+(t===void 0?`:`:t)+e);return n.log=this.log,n}function a(e){r.save(e),r.namespaces=e,r.names=[],r.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?r.skips.push(e.slice(1)):r.names.push(e)}function o(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function s(){let e=[...r.names,...r.skips.map(e=>`-`+e)].join(`,`);return r.enable(``),e}function c(e){for(let t of r.skips)if(o(e,t))return!1;for(let t of r.names)if(o(e,t))return!0;return!1}function l(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}n.exports=r}),r=e((exports,t)=>{exports.formatArgs=i,exports.save=a,exports.load=o,exports.useColors=r,exports.storage=s(),exports.destroy=(()=>{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`."))}})(),exports.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`.split(`.`);function r(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||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+)/)}function i(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}exports.log=console.debug||console.log||(()=>{});function a(t){try{t?exports.storage.setItem(`debug`,t):exports.storage.removeItem(`debug`)}catch{}}function o(){let t;try{t=exports.storage.getItem(`debug`)||exports.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function s(){try{return localStorage}catch{}}t.exports=n()(exports);let{formatters:c}=t.exports;c.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}});export{r as require_browser};
|
2
|
-
//# sourceMappingURL=browser-oKMlC993.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"browser-oKMlC993.mjs","names":[],"sources":["https://cdn.jsdelivr.net/npm/ms@2.1.3/index.js","https://cdn.jsdelivr.net/npm/debug@4.4.1/src/common.js","https://cdn.jsdelivr.net/npm/debug@4.4.1/src/browser.js"],"sourcesContent":["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function (val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '')\n\t\t\t.trim()\n\t\t\t.replace(/\\s+/g, ',')\n\t\t\t.split(',')\n\t\t\t.filter(Boolean);\n\n\t\tfor (const ns of split) {\n\t\t\tif (ns[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(ns.slice(1));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(ns);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Checks if the given string matches a namespace template, honoring\n\t * asterisks as wildcards.\n\t *\n\t * @param {String} search\n\t * @param {String} template\n\t * @return {Boolean}\n\t */\n\tfunction matchesTemplate(search, template) {\n\t\tlet searchIndex = 0;\n\t\tlet templateIndex = 0;\n\t\tlet starIndex = -1;\n\t\tlet matchIndex = 0;\n\n\t\twhile (searchIndex < search.length) {\n\t\t\tif (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {\n\t\t\t\t// Match character or proceed with wildcard\n\t\t\t\tif (template[templateIndex] === '*') {\n\t\t\t\t\tstarIndex = templateIndex;\n\t\t\t\t\tmatchIndex = searchIndex;\n\t\t\t\t\ttemplateIndex++; // Skip the '*'\n\t\t\t\t} else {\n\t\t\t\t\tsearchIndex++;\n\t\t\t\t\ttemplateIndex++;\n\t\t\t\t}\n\t\t\t} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition\n\t\t\t\t// Backtrack to the last '*' and try to match more characters\n\t\t\t\ttemplateIndex = starIndex + 1;\n\t\t\t\tmatchIndex++;\n\t\t\t\tsearchIndex = matchIndex;\n\t\t\t} else {\n\t\t\t\treturn false; // No match\n\t\t\t}\n\t\t}\n\n\t\t// Handle trailing '*' in template\n\t\twhile (templateIndex < template.length && template[templateIndex] === '*') {\n\t\t\ttemplateIndex++;\n\t\t}\n\n\t\treturn templateIndex === template.length;\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names,\n\t\t\t...createDebug.skips.map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tfor (const skip of createDebug.skips) {\n\t\t\tif (matchesTemplate(name, skip)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (const ns of createDebug.names) {\n\t\t\tif (matchesTemplate(name, ns)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\tlet m;\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\t// eslint-disable-next-line no-return-assign\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)) && parseInt(m[1], 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n"],"x_google_ignoreList":[0,1,2],"mappings":"2EAIA,IAAI,EAAI,IACJ,EAAI,EAAI,GACR,EAAI,EAAI,GACR,EAAI,EAAI,GACR,EAAI,EAAI,EACR,EAAI,EAAI,OAgBZ,EAAO,QAAU,SAAU,EAAK,EAAS,CACvC,IAAqB,CAAE,EACvB,IAAI,SAAc,EAClB,GAAI,IAAS,UAAY,EAAI,OAAS,EACpC,MAAO,GAAM,EAAI,IACR,IAAS,UAAY,SAAS,EAAI,CAC3C,OAAO,EAAQ,KAAO,EAAQ,EAAI,CAAG,EAAS,EAAI,CAEpD,KAAM,CAAI,MACR,wDACE,KAAK,UAAU,EAAI,CAAA,AAExB,EAUD,SAAS,EAAM,EAAK,CAClB,KAAM,OAAO,EAAI,GACb,EAAI,OAAS,KAGjB,KAAI,EAAQ,mIAAmI,KAC7I,EACD,CACI,KAGL,KAAI,EAAI,WAAW,EAAM,GAAG,CACxB,EAAO,CAAC,EAAM,IAAM,MAAM,aAAa,CAC3C,OAAQ,EAAR,CACE,IAAK,QACL,IAAK,OACL,IAAK,MACL,IAAK,KACL,IAAK,IACH,OAAO,EAAI,EACb,IAAK,QACL,IAAK,OACL,IAAK,IACH,OAAO,EAAI,EACb,IAAK,OACL,IAAK,MACL,IAAK,IACH,OAAO,EAAI,EACb,IAAK,QACL,IAAK,OACL,IAAK,MACL,IAAK,KACL,IAAK,IACH,OAAO,EAAI,EACb,IAAK,UACL,IAAK,SACL,IAAK,OACL,IAAK,MACL,IAAK,IACH,OAAO,EAAI,EACb,IAAK,UACL,IAAK,SACL,IAAK,OACL,IAAK,MAC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,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>l(t({},`__esModule`,{value:!0}),e),f=e=>t=>u(t.default,e),p=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function.")});export{s as __commonJSMin,o as __esmMin,c as __export,p as __require,d as __toCommonJS,f as __toDynamicImportESM,u as __toESM};
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{Observable as e,identity as t}from"./Observable-B8U6mp9h.mjs";import{createOperatorSubscriber as n,executeSchedule as r}from"./map-DkDssZnl.mjs";import{from as i,popResultSelector as a,popScheduler as o}from"./from-1e-Bj2Xm.mjs";import{mapOneOrManyArgs as s}from"./mapOneOrManyArgs-nKglr-Z6.mjs";var c=Array.isArray,l=Object.getPrototypeOf,u=Object.prototype,d=Object.keys;function f(e){if(e.length===1){var t=e[0];if(c(t))return{args:t,keys:null};if(p(t)){var n=d(t);return{args:n.map(function(e){return t[e]}),keys:n}}}return{args:e,keys:null}}function p(e){return e&&typeof e==`object`&&l(e)===u}function m(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}function h(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var c=o(n),l=a(n),u=f(n),d=u.args,p=u.keys;if(d.length===0)return i([],c);var h=new e(g(d,c,p?function(e){return m(p,e)}:t));return l?h.pipe(s(l)):h}function g(e,r,a){return a===void 0&&(a=t),function(t){_(r,function(){for(var o=e.length,s=Array(o),c=o,l=o,u=function(o){_(r,function(){var u=i(e[o],r),d=!1;u.subscribe(n(t,function(e){s[o]=e,d||(d=!0,l--),l||t.next(a(s.slice()))},function(){--c||t.complete()}))},t)},d=0;d<o;d++)u(d)},t)}}function _(e,t,n){e?r(n,e,t):t()}export{f as argsArgArrayOrObject,h as combineLatest,g as combineLatestInit,m as createObject};
|
2
|
-
//# sourceMappingURL=combineLatest-CFPJgUfN.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"combineLatest-CFPJgUfN.mjs","names":["i"],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/util/argsArgArrayOrObject.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/util/createObject.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/observable/combineLatest.js"],"sourcesContent":["var isArray = Array.isArray;\nvar getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n var first_1 = args[0];\n if (isArray(first_1)) {\n return { args: first_1, keys: null };\n }\n if (isPOJO(first_1)) {\n var keys = getKeys(first_1);\n return {\n args: keys.map(function (key) { return first_1[key]; }),\n keys: keys,\n };\n }\n }\n return { args: args, keys: null };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n//# sourceMappingURL=argsArgArrayOrObject.js.map","export function createObject(keys, values) {\n return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {});\n}\n//# sourceMappingURL=createObject.js.map","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n var resultSelector = popResultSelector(args);\n var _a = argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;\n if (observables.length === 0) {\n return from([], scheduler);\n }\n var result = new Observable(combineLatestInit(observables, scheduler, keys\n ?\n function (values) { return createObject(keys, values); }\n :\n identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform) {\n if (valueTransform === void 0) { valueTransform = identity; }\n return function (subscriber) {\n maybeSchedule(scheduler, function () {\n var length = observables.length;\n var values = new Array(length);\n var active = length;\n var remainingFirstValues = length;\n var _loop_1 = function (i) {\n maybeSchedule(scheduler, function () {\n var source = from(observables[i], scheduler);\n var hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, function () {\n if (!--active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n };\n for (var i = 0; i < length; i++) {\n _loop_1(i);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n }\n else {\n execute();\n }\n}\n//# sourceMappingURL=combineLatest.js.map"],"x_google_ignoreList":[0,1,2],"mappings":"+SAAA,IAAI,EAAU,MAAM,QAChB,EAAiB,OAAO,eAAgB,EAAc,OAAO,UAAW,EAAU,OAAO,KAC7F,SAAgB,EAAqB,EAAM,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vB,EAAU,SAAUA,EAAG,CACvB,EAAc,EAAW,UAAY,CACjC,IAAI,EAAS,EAAK,EAAYA,GAAI,EAAU,CACxC,GAAgB,EACpB,EAAO,UAAU,EAAyB,EAAY,SAAU,EAAO,CAMnE,AALA,EAAOA,GAAK,EACP,IACD,GAAgB,EAChB,KAEC,GACD,EAAW,KAAK,EAAe,EAAO,OAAO,CAAC,CAAC,AAEtD,EAAE,UAAY,CACX,AAAK,EAAE,GACH,EAAW,UAAU,AAE5B,EAAC,CAAC,AACN,EAAE,EAAW,AACjB,EACQ,EAAI,EAAG,EAAI,EAAQ,IACxB,EAAQ,EAAE,AAEjB,EAAE,EAAW,AACjB,CACJ,CACD,SAAS,EAAc,EAAW,EAAS,EAAc,CACrD,AAAI,EACA,EAAgB,EAAc,EAAW,EAAQ,CAGjD,GAAS,AAEhB"}
|
package/dist/concat-BWArfBxD.mjs
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{from as e,popScheduler as t}from"./from-1e-Bj2Xm.mjs";import{mergeAll as n}from"./merge-DLqD1gqk.mjs";function r(){return n(1)}function i(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return r()(e(n,t(n)))}export{i as concat,r as concatAll};
|
2
|
-
//# sourceMappingURL=concat-BWArfBxD.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"concat-BWArfBxD.mjs","names":[],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/operators/concatAll.js","https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/observable/concat.js"],"sourcesContent":["import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n//# sourceMappingURL=concatAll.js.map","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return concatAll()(from(args, popScheduler(args)));\n}\n//# sourceMappingURL=concat.js.map"],"x_google_ignoreList":[0,1],"mappings":"6GACA,SAAgB,GAAY,CACxB,MAAO,GAAS,EAAE,AACrB,CCAD,SAAgB,GAAS,CAErB,IAAK,IADD,EAAO,CAAE,EACJ,EAAK,EAAG,EAAK,UAAU,OAAQ,IACpC,EAAK,GAAM,UAAU,GAEzB,MAAO,IAAW,CAAC,EAAK,EAAM,EAAa,EAAK,CAAC,CAAC,AACrD"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"concatMap-DZrL7ZKn.mjs","names":[],"sources":["https://cdn.jsdelivr.net/npm/rxjs@7.8.2/dist/esm5/internal/operators/concatMap.js"],"sourcesContent":["import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n//# sourceMappingURL=concatMap.js.map"],"x_google_ignoreList":[0],"mappings":"0GAEA,SAAgB,EAAU,EAAS,EAAgB,CAC/C,MAAO,GAAW,EAAe,CAAG,EAAS,EAAS,EAAgB,EAAE,CAAG,EAAS,EAAS,EAAE,AAClG"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import{__toESM as e}from"./chunk-DSR6Ryem.mjs";import{require_dist as t}from"./dist-DTr4N9sP.mjs";import{Card as n}from"./dist-gdCAZyAZ.mjs";import{usePane as r,usePaneLayout as i}from"./useStructureTool-DJWYs4dK.mjs";import{forwardRef as a}from"react";import{jsx as o}from"react/jsx-runtime";import{styled as s}from"styled-components";const c=s(n)`
|
2
|
-
position: relative;
|
3
|
-
outline: none;
|
4
|
-
`;c.displayName=`PaneContent__root`;var l=e(t());const u=a(function(e,t){let n=(0,l.c)(14),a,s,u,d,f;n[0]===e?(a=n[1],s=n[2],u=n[3],d=n[4],f=n[5]):({as:a,children:s,overflow:u,padding:d,...f}=e,n[0]=e,n[1]=a,n[2]=s,n[3]=u,n[4]=d,n[5]=f);let{collapsed:p}=r(),{collapsed:m}=i(),h=m?void 0:u,g;return n[6]!==a||n[7]!==s||n[8]!==p||n[9]!==d||n[10]!==t||n[11]!==f||n[12]!==h?(g=o(c,{"data-testid":`pane-content`,forwardedAs:a,...f,flex:1,hidden:p,overflow:h,padding:d,ref:t,tone:`inherit`,children:s}),n[6]=a,n[7]=s,n[8]=p,n[9]=d,n[10]=t,n[11]=f,n[12]=h,n[13]=g):g=n[13],g}),d=!1,f=Object.freeze({}),p=Symbol(`LOADING_PANE`),m=`documentPanelPortalElement`;export{m as DOCUMENT_PANEL_PORTAL_ELEMENT,f as EMPTY_PARAMS,p as LOADING_PANE,u as PaneContent,d as _DEBUG};
|
5
|
-
//# sourceMappingURL=constants-ChSQUPYh.mjs.map
|