You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ygdc/kirby/panel/dist/js/vendor.min.js

17 lines
253 KiB

2 months ago
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={},r={},i={},o={},s={};function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(s,"__esModule",{value:!0}),s._setTarget=void 0,s.popParams=p,s.pushParams=f,s.target=void 0,s.withParams=function(t,e){if("object"===h(t)&&void 0!==e)return n=t,r=e,g((function(t){return function(){t(n);for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return r.apply(this,i)}}));var n,r;return g(t)};var u=[],d=null;s.target=d;function f(){null!==d&&u.push(d),s.target=d={}}function p(){var t=d,e=s.target=d=u.pop()||null;return e&&(Array.isArray(e.$sub)||(e.$sub=[]),e.$sub.push(t)),t}function m(t){if("object"!==h(t)||Array.isArray(t))throw new Error("params must be an object");s.target=d=a(a({},d),t)}function g(t){var e=t(m);return function(){f();try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}finally{p()}}}s._setTarget=function(t){s.target=d=t},Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var y=s.withParams;o.default=y,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.req=t.regex=t.ref=t.len=void 0,Object.defineProperty(t,"withParams",{enumerable:!0,get:function(){return n.default}});var e,n=(e=o)&&e.__esModule?e:{default:e};function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(t){if(Array.isArray(t))return!!t.length;if(null==t)return!1;if(!1===t)return!0;if(t instanceof Date)return!isNaN(t.getTime());if("object"===r(t)){for(var e in t)return!0;return!1}return!!String(t).length};t.req=i;t.len=function(t){return Array.isArray(t)?t.length:"object"===r(t)?Object.keys(t).length:String(t).length};t.ref=function(t,e,n){return"function"==typeof t?t.call(e,n):n[t]};t.regex=function(t,e){return(0,n.default)({type:t},(function(t){return!i(t)||e.test(t)}))}}(i),Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var v=(0,i.regex)("alpha",/^[a-zA-Z]*$/);r.default=v;var w={};Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var b=(0,i.regex)("alphaNum",/^[a-zA-Z0-9]*$/);w.default=b;var x={};Object.defineProperty(x,"__esModule",{value:!0}),x.default=void 0;var S=(0,i.regex)("numeric",/^[0-9]*$/);x.default=S;var k={};Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var M=i;k.default=function(t,e){return(0,M.withParams)({type:"between",min:t,max:e},(function(n){return!(0,M.req)(n)||(!/\s/.test(n)||n instanceof Date)&&+t<=+n&&+e>=+n}))};var O={};Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var C=(0,i.regex)("email",/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0
/*!
* portal-vue © Thorsten Lünborg, 2019
*
* Version: 2.1.7
*
* LICENCE: MIT
*
* https://github.com/linusborg/portal-vue
*
*/function rl(t){return(rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function il(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var ol="undefined"!=typeof window;function sl(t,e){return e.reduce((function(e,n){return t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}var ll={},al={},cl={},hl=Vue.extend({data:function(){return{transports:ll,targets:al,sources:cl,trackInstances:ol}},methods:{open:function(t){if(ol){var e=t.to,n=t.from,r=t.passengers,i=t.order,o=void 0===i?1/0:i;if(e&&n&&r){var s,l={to:e,from:n,passengers:(s=r,Array.isArray(s)||"object"===rl(s)?Object.freeze(s):s),order:o};-1===Object.keys(this.transports).indexOf(e)&&Vue.set(this.transports,e,[]);var a,c=this.$_getTransportIndex(l),h=this.transports[e].slice(0);-1===c?h.push(l):h[c]=l,this.transports[e]=(a=function(t,e){return t.order-e.order},h.map((function(t,e){return[e,t]})).sort((function(t,e){return a(t[1],e[1])||t[0]-e[0]})).map((function(t){return t[1]})))}}},close:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.to,r=t.from;if(n&&(r||!1!==e)&&this.transports[n])if(e)this.transports[n]=[];else{var i=this.$_getTransportIndex(t);if(i>=0){var o=this.transports[n].slice(0);o.splice(i,1),this.transports[n]=o}}},registerTarget:function(t,e,n){ol&&(this.trackInstances&&!n&&this.targets[t]&&console.warn("[portal-vue]: Target ".concat(t," already exists")),this.$set(this.targets,t,Object.freeze([e])))},unregisterTarget:function(t){this.$delete(this.targets,t)},registerSource:function(t,e,n){ol&&(this.trackInstances&&!n&&this.sources[t]&&console.warn("[portal-vue]: source ".concat(t," already exists")),this.$set(this.sources,t,Object.freeze([e])))},unregisterSource:function(t){this.$delete(this.sources,t)},hasTarget:function(t){return!(!this.targets[t]||!this.targets[t][0])},hasSource:function(t){return!(!this.sources[t]||!this.sources[t][0])},hasContentFor:function(t){return!!this.transports[t]&&!!this.transports[t].length},$_getTransportIndex:function(t){var e=t.to,n=t.from;for(var r in this.transports[e])if(this.transports[e][r].from===n)return+r;return-1}}}),ul=new hl(ll),dl=1,fl=Vue.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(dl++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(1e7*Math.random()))}}},created:function(){var t=this;this.$nextTick((function(){ul.registerSource(t.name,t)}))},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){ul.unregisterSource(this.name),this.clear()},watch:{to:function(t,e){e&&e!==t&&this.clear(e),this.sendUpdate()}},methods:{clear:function(t){var e={from:this.name,to:t||this.to};ul.close(e)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(t){return"function"==typeof t?t(this.slotProps):t},sendUpdate:function(){var t=this.normalizeSlots();if(t){var e={from:this.name,to:this.to,passengers:il(t),order:this.order};ul.open(e)}else this.clear()}},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return e&&this.disabled?e.length<=1&&this.slim?this.normalizeOwnChildren(e)[0]:t(n,[this.normalizeOwnChildren(e)]):this.slim?t():t(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),pl=Vue.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProp
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/var Al=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function El(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=El(t[n],e)})),i}function $l(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function Pl(t){return null!==t&&"object"==typeof t}var Il=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},Rl={namespaced:{configurable:!0}};Rl.namespaced.get=function(){return!!this._rawModule.namespaced},Il.prototype.addChild=function(t,e){this._children[t]=e},Il.prototype.removeChild=function(t){delete this._children[t]},Il.prototype.getChild=function(t){return this._children[t]},Il.prototype.hasChild=function(t){return t in this._children},Il.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Il.prototype.forEachChild=function(t){$l(this._children,t)},Il.prototype.forEachGetter=function(t){this._rawModule.getters&&$l(this._rawModule.getters,t)},Il.prototype.forEachAction=function(t){this._rawModule.actions&&$l(this._rawModule.actions,t)},Il.prototype.forEachMutation=function(t){this._rawModule.mutations&&$l(this._rawModule.mutations,t)},Object.defineProperties(Il.prototype,Rl);var zl,_l=function(t){this.register([],t,!1)};function Bl(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;Bl(t.concat(r),e.getChild(r),n.modules[r])}}_l.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},_l.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},_l.prototype.update=function(t){Bl([],this.root,t)},_l.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new Il(e,n);0===t.length?this.root=i:this.get(t.slice(0,-1)).addChild(t[t.length-1],i);e.modules&&$l(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},_l.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},_l.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var jl=function(t){var e=this;void 0===t&&(t={}),!zl&&"undefined"!=typeof window&&window.Vue&&Hl(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new _l(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new zl,this._makeLocalGettersCache=Object.create(null);var i=this,o=this.dispatch,s=this.commit;this.dispatch=function(t,e){return o.call(i,t,e)},this.commit=function(t,e,n){return s.call(i,t,e,n)},this.strict=r;var l=this._modules.root.state;ql(this,l,[],this._modules.root),Wl(this,l),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:zl.config.devtools)&&function(t){Al&&(t._devtoolHook=Al,Al.emit("vuex:init",t),Al.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){Al.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){Al.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},Vl={state:{configurable:!0}};function Fl(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Ll(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ql(t,n,[],t._modules.root,!0),Wl(t,n,e)}function Wl(t,e,n){var r=t._vm;t.getters={},t._makeLocalGette