UNPKG

vue-case

Version:

A collection of Vue 3 case transformation utilities

1 lines 22.3 kB
(function(t,r){"object"===typeof exports&&"object"===typeof module?module.exports=r():"function"===typeof define&&define.amd?define([],r):"object"===typeof exports?exports["vue-case"]=r():t["vue-case"]=r()})("undefined"!==typeof self?self:this,function(){return function(){var t={143:function(t,r,e){"use strict";var n=e(9022);t.exports=function(t,r){var e=n.Iterator,o=e&&e.prototype,i=o&&o[t],u=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){u=!0}},-1)}catch(c){c instanceof r||(u=!1)}if(!u)return i}},151:function(t,r,e){"use strict";var n=e(1059),o=e(1924),i=e(3228),u=function(t){return function(r,e,u){var c=n(r),s=i(c);if(0===s)return!t&&-1;var a,f=o(u,s);if(t&&e!==e){while(s>f)if(a=c[f++],a!==a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},257:function(t,r,e){"use strict";var n=e(7890),o=e(7423),i=e(3382);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},417:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},983:function(t){"use strict";t.exports={}},1059:function(t,r,e){"use strict";var n=e(9549),o=e(8620);t.exports=function(t){return n(o(t))}},1064:function(t,r,e){"use strict";var n=e(1550),o=e(3927),i=e(3907),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},1079:function(t,r,e){"use strict";var n=e(9899),o=e(2140),i=e(6547),u=e(9288),c=e(9336),s=e(7709),a=TypeError,f=s("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,s=u(t,f);if(s){if(void 0===r&&(r="default"),e=n(s,t,r),!o(e)||i(e))return e;throw new a("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},1125:function(t,r,e){"use strict";var n=e(9022),o=e(3927),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},1325:function(t,r,e){"use strict";var n=e(4142),o=e(3927),i=e(6522),u=e(7709),c=u("toStringTag"),s=Object,a="Arguments"===i(function(){return arguments}()),f=function(t,r){try{return t[r]}catch(e){}};t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=f(r=s(t),c))?e:a?i(r):"Object"===(n=i(r))&&o(r.callee)?"Arguments":n}},1341:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(r){return!0}}},1357:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1378:function(t,r,e){"use strict";var n=e(7098),o=e(417),i=o.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},1471:function(t,r,e){"use strict";var n=e(8620),o=Object;t.exports=function(t){return o(n(t))}},1537:function(t,r,e){"use strict";var n=e(4627);t.exports=function(t){var r=+t;return r!==r||0===r?0:n(r)}},1550:function(t,r,e){"use strict";var n=e(5502),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},1726:function(t,r,e){"use strict";var n=e(1550),o=0,i=Math.random(),u=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},1784:function(t,r,e){"use strict";var n=e(9022),o=e(3927),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},1924:function(t,r,e){"use strict";var n=e(1537),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},2140:function(t,r,e){"use strict";var n=e(3927);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},2161:function(t){"use strict";t.exports=!1},2594:function(t,r,e){"use strict";var n=e(7527),o=e(9213),i=e(5613),u=e(7423);t.exports=function(t,r,e){for(var c=o(r),s=u.f,a=i.f,f=0;f<c.length;f++){var p=c[f];n(t,p)||e&&n(e,p)||s(t,p,a(r,p))}}},2727:function(t,r,e){"use strict";var n,o,i,u=e(1784),c=e(9022),s=e(2140),a=e(257),f=e(7527),p=e(3907),l=e(9853),v=e(983),y="Object already initialized",d=c.TypeError,h=c.WeakMap,m=function(t){return i(t)?o(t):n(t,{})},b=function(t){return function(r){var e;if(!s(r)||(e=o(r)).type!==t)throw new d("Incompatible receiver, "+t+" required");return e}};if(u||p.state){var g=p.state||(p.state=new h);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,r){if(g.has(t))throw new d(y);return r.facade=t,g.set(t,r),r},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var w=l("state");v[w]=!0,n=function(t,r){if(f(t,w))throw new d(y);return r.facade=t,a(t,w,r),r},o=function(t){return f(t,w)?t[w]:{}},i=function(t){return f(t,w)}}t.exports={set:n,get:o,has:i,enforce:m,getterFor:b}},2742:function(t,r,e){"use strict";var n=e(4750),o=e(9899),i=e(6817),u=e(4077),c=e(3983),s=e(3228),a=e(4531),f=e(8147),p=e(4989),l=e(6125),v=TypeError,y=function(t,r){this.stopped=t,this.result=r},d=y.prototype;t.exports=function(t,r,e){var h,m,b,g,w,x,C,S=e&&e.that,O=!(!e||!e.AS_ENTRIES),j=!(!e||!e.IS_RECORD),E=!(!e||!e.IS_ITERATOR),P=!(!e||!e.INTERRUPTED),L=n(r,S),T=function(t){return h&&l(h,"normal"),new y(!0,t)},F=function(t){return O?(i(t),P?L(t[0],t[1],T):L(t[0],t[1])):P?L(t,T):L(t)};if(j)h=t.iterator;else if(E)h=t;else{if(m=p(t),!m)throw new v(u(t)+" is not iterable");if(c(m)){for(b=0,g=s(t);g>b;b++)if(w=F(t[b]),w&&a(d,w))return w;return new y(!1)}h=f(t,m)}x=j?t.next:h.next;while(!(C=o(x,h)).done){try{w=F(C.value)}catch(I){l(h,"throw",I)}if("object"==typeof w&&w&&a(d,w))return w}return new y(!1)}},3228:function(t,r,e){"use strict";var n=e(7656);t.exports=function(t){return n(t.length)}},3382:function(t){"use strict";t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},3488:function(t,r){var e,n,o;(function(i,u){n=[],e=u,o="function"===typeof e?e.apply(r,n):e,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,function(){function t(){var r=Object.getOwnPropertyDescriptor(document,"currentScript");if(!r&&"currentScript"in document&&document.currentScript)return document.currentScript;if(r&&r.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(v){var e,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,u=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(v.stack)||u.exec(v.stack),s=c&&c[1]||!1,a=c&&c[2]||!1,f=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");s===f&&(e=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(a-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=e.replace(n,"$1").trim());for(var l=0;l<p.length;l++){if("interactive"===p[l].readyState)return p[l];if(p[l].src===s)return p[l];if(s===f&&p[l].innerHTML&&p[l].innerHTML.trim()===o)return p[l]}return null}}return t})},3861:function(t,r,e){"use strict";var n=e(9022),o=e(2140),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},3900:function(t,r,e){"use strict";var n=e(7890),o=e(1341);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},3907:function(t,r,e){"use strict";var n=e(2161),o=e(9022),i=e(4267),u="__core-js_shared__",c=t.exports=o[u]||i(u,{});(c.versions||(c.versions=[])).push({version:"3.46.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3927:function(t){"use strict";var r="object"==typeof document&&document.all;t.exports="undefined"==typeof r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(t){return"function"==typeof t}},3983:function(t,r,e){"use strict";var n=e(7709),o=e(6779),i=n("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},4077:function(t){"use strict";var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},4142:function(t,r,e){"use strict";var n=e(7709),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},4267:function(t,r,e){"use strict";var n=e(9022),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},4395:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},4470:function(t,r,e){"use strict";var n=e(1341),o=e(3927),i=/#|\.prototype\./,u=function(t,r){var e=s[c(t)];return e===f||e!==a&&(o(r)?n(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},4531:function(t,r,e){"use strict";var n=e(1550);t.exports=n({}.isPrototypeOf)},4627:function(t){"use strict";var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},4745:function(t,r,e){"use strict";var n=e(8313),o=e(1341),i=e(9022),u=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!u(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},4750:function(t,r,e){"use strict";var n=e(6646),o=e(8316),i=e(5502),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},4989:function(t,r,e){"use strict";var n=e(1325),o=e(9288),i=e(4395),u=e(6779),c=e(7709),s=c("iterator");t.exports=function(t){if(!i(t))return o(t,s)||o(t,"@@iterator")||u[n(t)]}},4999:function(t,r){"use strict";r.f=Object.getOwnPropertySymbols},5502:function(t,r,e){"use strict";var n=e(1341);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},5613:function(t,r,e){"use strict";var n=e(7890),o=e(9899),i=e(9439),u=e(3382),c=e(1059),s=e(6331),a=e(7527),f=e(9515),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=c(t),r=s(r),f)try{return p(t,r)}catch(e){}if(a(t,r))return u(!o(i.f,t,r),t[r])}},6125:function(t,r,e){"use strict";var n=e(9899),o=e(6817),i=e(9288);t.exports=function(t,r,e){var u,c;o(t);try{if(u=i(t,"return"),!u){if("throw"===r)throw e;return e}u=n(u,t)}catch(s){c=!0,u=s}if("throw"===r)throw e;if(c)throw u;return o(u),e}},6331:function(t,r,e){"use strict";var n=e(1079),o=e(6547);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},6441:function(t,r,e){"use strict";var n=e(9022),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},6461:function(t,r,e){"use strict";var n=e(1550),o=e(1341),i=e(3927),u=e(7527),c=e(7890),s=e(7924).CONFIGURABLE,a=e(1064),f=e(2727),p=f.enforce,l=f.get,v=String,y=Object.defineProperty,d=n("".slice),h=n("".replace),m=n([].join),b=c&&!o(function(){return 8!==y(function(){},"length",{value:8}).length}),g=String(String).split("String"),w=t.exports=function(t,r,e){"Symbol("===d(v(r),0,7)&&(r="["+h(v(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!u(t,"name")||s&&t.name!==r)&&(c?y(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&u(e,"arity")&&t.length!==e.arity&&y(t,"length",{value:e.arity});try{e&&u(e,"constructor")&&e.constructor?c&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=p(t);return u(n,"source")||(n.source=m(g,"string"==typeof r?r:"")),t};Function.prototype.toString=w(function(){return i(this)&&l(this).source||a(this)},"toString")},6522:function(t,r,e){"use strict";var n=e(1550),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6547:function(t,r,e){"use strict";var n=e(1125),o=e(3927),i=e(4531),u=e(7986),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},6584:function(t,r,e){"use strict";var n=e(9022),o=e(5613).f,i=e(257),u=e(6950),c=e(4267),s=e(2594),a=e(4470);t.exports=function(t,r){var e,f,p,l,v,y,d=t.target,h=t.global,m=t.stat;if(f=h?n:m?n[d]||c(d,{}):n[d]&&n[d].prototype,f)for(p in r){if(v=r[p],t.dontCallGetSet?(y=o(f,p),l=y&&y.value):l=f[p],e=a(h?p:d+(m?".":"#")+p,t.forced),!e&&void 0!==l){if(typeof v==typeof l)continue;s(v,l)}(t.sham||l&&l.sham)&&i(v,"sham",!0),u(f,p,v,t)}}},6646:function(t,r,e){"use strict";var n=e(6522),o=e(1550);t.exports=function(t){if("Function"===n(t))return o(t)}},6779:function(t){"use strict";t.exports={}},6817:function(t,r,e){"use strict";var n=e(2140),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},6950:function(t,r,e){"use strict";var n=e(3927),o=e(7423),i=e(6461),u=e(4267);t.exports=function(t,r,e,c){c||(c={});var s=c.enumerable,a=void 0!==c.name?c.name:r;if(n(e)&&i(e,a,c),c.global)s?t[r]=e:u(r,e);else{try{c.unsafe?t[r]&&(s=!0):delete t[r]}catch(f){}s?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},7098:function(t,r,e){"use strict";var n=e(1550),o=e(7527),i=e(1059),u=e(151).indexOf,c=e(983),s=n([].push);t.exports=function(t,r){var e,n=i(t),a=0,f=[];for(e in n)!o(c,e)&&o(n,e)&&s(f,e);while(r.length>a)o(n,e=r[a++])&&(~u(f,e)||s(f,e));return f}},7423:function(t,r,e){"use strict";var n=e(7890),o=e(9515),i=e(3900),u=e(6817),c=e(6331),s=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=c(r),u(e),"function"===typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return a(t,r,e)}:a:function(t,r,e){if(u(t),r=c(r),u(e),o)try{return a(t,r,e)}catch(n){}if("get"in e||"set"in e)throw new s("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},7527:function(t,r,e){"use strict";var n=e(1550),o=e(1471),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},7656:function(t,r,e){"use strict";var n=e(1537),o=Math.min;t.exports=function(t){var r=n(t);return r>0?o(r,9007199254740991):0}},7709:function(t,r,e){"use strict";var n=e(9022),o=e(7987),i=e(7527),u=e(1726),c=e(4745),s=e(7986),a=n.Symbol,f=o("wks"),p=s?a["for"]||a:a&&a.withoutSetter||u;t.exports=function(t){return i(f,t)||(f[t]=c&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},7890:function(t,r,e){"use strict";var n=e(1341);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},7924:function(t,r,e){"use strict";var n=e(7890),o=e(7527),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),s=c&&"something"===function(){}.name,a=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:s,CONFIGURABLE:a}},7986:function(t,r,e){"use strict";var n=e(4745);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7987:function(t,r,e){"use strict";var n=e(3907);t.exports=function(t,r){return n[t]||(n[t]=r||{})}},8147:function(t,r,e){"use strict";var n=e(9899),o=e(8316),i=e(6817),u=e(4077),c=e(4989),s=TypeError;t.exports=function(t,r){var e=arguments.length<2?c(t):r;if(o(e))return i(n(e,t));throw new s(u(t)+" is not iterable")}},8313:function(t,r,e){"use strict";var n,o,i=e(9022),u=e(6441),c=i.process,s=i.Deno,a=c&&c.versions||s&&s.version,f=a&&a.v8;f&&(n=f.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(n=u.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},8316:function(t,r,e){"use strict";var n=e(3927),o=e(4077),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},8620:function(t,r,e){"use strict";var n=e(4395),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},9022:function(t,r,e){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9190:function(t,r,e){"use strict";var n=e(6584),o=e(9899),i=e(2742),u=e(8316),c=e(6817),s=e(1357),a=e(6125),f=e(143),p=f("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:p},{forEach:function(t){c(this);try{u(t)}catch(n){a(this,"throw",n)}if(p)return o(p,this,t);var r=s(this),e=0;i(r,function(r){t(r,e++)},{IS_RECORD:!0})}})},9213:function(t,r,e){"use strict";var n=e(1125),o=e(1550),i=e(1378),u=e(4999),c=e(6817),s=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(c(t)),e=u.f;return e?s(r,e(t)):r}},9288:function(t,r,e){"use strict";var n=e(8316),o=e(4395);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},9336:function(t,r,e){"use strict";var n=e(9899),o=e(3927),i=e(2140),u=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw new u("Can't convert object to primitive value")}},9439:function(t,r){"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},9515:function(t,r,e){"use strict";var n=e(7890),o=e(1341),i=e(3861);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},9549:function(t,r,e){"use strict";var n=e(1550),o=e(1341),i=e(6522),u=Object,c=n("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},9853:function(t,r,e){"use strict";var n=e(7987),o=e(1726),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9899:function(t,r,e){"use strict";var n=e(5502),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}!function(){e.d=function(t,r){for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}}(),function(){e.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)}}(),function(){e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){e.p=""}();var n={};return function(){"use strict";if(e.r(n),e.d(n,{camelCase:function(){return U},capitalCase:function(){return N},caseMethods:function(){return M},constantCase:function(){return q},default:function(){return nt},dotCase:function(){return H},headerCase:function(){return z},isLowerCase:function(){return rt},isUpperCase:function(){return et},lowerCase:function(){return J},lowerCaseFirst:function(){return K},noCase:function(){return tt},paramCase:function(){return G},pascalCase:function(){return D},pathCase:function(){return B},sentenceCase:function(){return Z},snakeCase:function(){return W},swapCase:function(){return Q},titleCase:function(){return V},truncate:function(){return A},upperCase:function(){return X},upperCaseFirst:function(){return Y},useCase:function(){return $}}),"undefined"!==typeof window){var t=window.document.currentScript,r=e(3488);t=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}e(9190);function i(t){return t?t.toLowerCase():""}const u=[/(\p{Ll}|\p{N})(\p{Lu})/gu,/(\p{Lu})(\p{Lu}\p{Ll})/gu],c=/[^\p{L}\p{N}]+/gu;function s(t,r={}){if(!t)return"";const{splitRegexp:e=u,stripRegexp:n=c,transform:o=i,delimiter:s=" "}=r,f=a(a(t,e,"$1\0$2"),n,"\0");let p=0,l=f.length;while("\0"===f.charAt(p))p++;while("\0"===f.charAt(l-1))l--;return f.slice(p,l).split("\0").map(o).join(s)}function a(t,r,e){return r instanceof RegExp?t.replace(r,e):r.reduce((t,r)=>t.replace(r,e),t)}function f(t,r){const e=t.charAt(0),n=t.slice(1).toLowerCase();return r>0&&e>="0"&&e<="9"?`_${e}${n}`:`${e.toUpperCase()}${n}`}function p(t,r={}){return t?s(t,{delimiter:"",transform:f,...r}):""}function l(t,r){return 0===r?t.toLowerCase():f(t,r)}function v(t,r={}){return t?p(t,{transform:l,...r}):""}function y(t){return t?t.charAt(0).toUpperCase()+t.substr(1):""}function d(t,r){return y(t.toLowerCase())}function h(t,r={}){return t?s(t,{delimiter:" ",transform:d,...r}):""}function m(t,r={}){return h(t,{delimiter:"-",...r})}const b=new Set(["a","an","and","at","but","by","en","for","if","in","nor","of","on","or","per","so","the","to","up","via","yet"]);function g(t,r,e){const n=t.toLowerCase();return 0===r||r===e.length-1?y(n):b.has(n)?n:y(n)}function w(t,r={}){return t?s(t,{delimiter:" ",transform:g,...r}):""}function x(t,r={}){return t?s(t,{delimiter:".",...r}):""}function C(t,r={}){return t?x(t,{delimiter:"/",...r}):""}function S(t,r={}){return t?x(t,{delimiter:"-",...r}):""}function O(t,r={}){return x(t,{delimiter:"_",...r})}function j(t){return t?t.toUpperCase():""}function E(t,r={}){return t?s(t,{delimiter:"_",transform:j,...r}):""}function P(t){return t?t.charAt(0).toLowerCase()+t.substr(1):""}function L(t){if(!t)return"";let r="";for(let e=0;e<t.length;e++){const n=t[e].toLowerCase();r+=t[e]===n?t[e].toUpperCase():n}return r}function T(t,r){const e=t.toLowerCase();return 0===r?y(e):e}function F(t,r={}){return s(t,{delimiter:" ",transform:T,...r})}function I(t){return!!t&&(t.toLowerCase()===t&&t.toUpperCase()!==t)}function R(t){return!!t&&(t.toUpperCase()===t&&t.toLowerCase()!==t)}const A=(t,r=15)=>t&&"string"===typeof t?t.length<=r?t:t.substring(0,r)+"...":"",M={camelCase:v,pascalCase:p,capitalCase:h,headerCase:m,titleCase:w,pathCase:C,paramCase:S,dotCase:x,snakeCase:O,constantCase:E,lowerCase:i,lowerCaseFirst:P,upperCase:j,upperCaseFirst:y,swapCase:L,sentenceCase:F,noCase:s,isLowerCase:I,isUpperCase:R,truncate:A};function $(){return{...M}}const _={install(t,r={}){t.config.globalProperties.$case=M,Object.keys(M).forEach(r=>{const e=r;t.config.globalProperties[`$${r}`]=M[e]}),t.provide("vueCase",M)}};var k=_;if("undefined"!==typeof window&&window.Vue){const{createApp:t}=window.Vue;t({}).use(_),window.VueCase=_}const{camelCase:U,pascalCase:D,capitalCase:N,headerCase:z,titleCase:V,pathCase:B,paramCase:G,dotCase:H,snakeCase:W,constantCase:q,lowerCase:J,lowerCaseFirst:K,upperCase:X,upperCaseFirst:Y,swapCase:Q,sentenceCase:Z,noCase:tt,isLowerCase:rt,isUpperCase:et}=M;var nt=k}(),n}()});