const require_rolldown_runtime = require('../../../../../../../../../_virtual/rolldown_runtime.js');
const require_ConnectableObservable$1 = require('../observable/ConnectableObservable.js');
const require_BehaviorSubject$1 = require('../BehaviorSubject.js');

//#region ../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js
var require_publishBehavior = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/rxjs@7.8.2/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	var BehaviorSubject_1 = require_BehaviorSubject$1.require_BehaviorSubject();
	var ConnectableObservable_1 = require_ConnectableObservable$1.require_ConnectableObservable();
	function publishBehavior(initialValue) {
		return function(source) {
			var subject = new BehaviorSubject_1.BehaviorSubject(initialValue);
			return new ConnectableObservable_1.ConnectableObservable(source, function() {
				return subject;
			});
		};
	}
	exports.publishBehavior = publishBehavior;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_publishBehavior();
  }
});