@central-design-system/components 2.8.0 → 2.10.0
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/dist/CdsAccordion/index.js +2 -2
- package/dist/CdsAccordion/styles.css +1 -1
- package/dist/CdsBreadcrumbs/index.js +2 -2
- package/dist/CdsBreadcrumbs/styles.css +1 -1
- package/dist/CdsButton/index.js +2 -2
- package/dist/CdsButton/styles.css +1 -1
- package/dist/CdsCheckbox/index.js +2 -2
- package/dist/CdsCheckbox/styles.css +1 -1
- package/dist/CdsCombobox/index.js +2 -2
- package/dist/CdsCombobox/styles.css +1 -1
- package/dist/CdsContainer/index.js +2 -2
- package/dist/CdsContainer/styles.css +1 -1
- package/dist/CdsContentSwitcher/index.js +2 -2
- package/dist/CdsContentSwitcher/styles.css +3 -3
- package/dist/CdsDataTable/index.js +2 -2
- package/dist/CdsDataTable/styles.css +1 -1
- package/dist/CdsDatePicker/index.js +4 -4
- package/dist/CdsDatePicker/styles.css +1 -1
- package/dist/CdsDrawer/index.js +2 -2
- package/dist/CdsDrawer/styles.css +2 -2
- package/dist/CdsDropdown/index.js +2 -2
- package/dist/CdsDropdown/styles.css +1 -1
- package/dist/CdsEmptyState/index.js +2 -2
- package/dist/CdsEmptyState/styles.css +1 -1
- package/dist/CdsForm/index.js +2 -2
- package/dist/CdsForm/styles.css +2 -2
- package/dist/CdsGrid/index.js +2 -2
- package/dist/CdsGrid/styles.css +1 -1
- package/dist/CdsIcon/index.js +2 -2
- package/dist/CdsIcon/styles.css +1 -1
- package/dist/CdsImage/index.js +2 -2
- package/dist/CdsImage/styles.css +1 -1
- package/dist/CdsInput/index.js +2 -2
- package/dist/CdsInput/styles.css +1 -1
- package/dist/CdsLink/index.js +2 -2
- package/dist/CdsLink/styles.css +1 -1
- package/dist/CdsList/index.js +2 -2
- package/dist/CdsList/styles.css +1 -1
- package/dist/CdsLoading/index.js +2 -2
- package/dist/CdsLoading/styles.css +1 -1
- package/dist/CdsModal/index.js +2 -2
- package/dist/CdsModal/styles.css +4 -4
- package/dist/CdsMultiselect/index.js +2 -2
- package/dist/CdsMultiselect/styles.css +1 -1
- package/dist/CdsNotification/index.js +2 -2
- package/dist/CdsNotification/styles.css +4 -4
- package/dist/CdsOverflowMenu/index.js +2 -2
- package/dist/CdsOverflowMenu/styles.css +4 -4
- package/dist/CdsPagination/index.js +2 -2
- package/dist/CdsPagination/styles.css +1 -1
- package/dist/CdsRadioButton/index.js +2 -2
- package/dist/CdsRadioButton/styles.css +1 -1
- package/dist/CdsSearch/index.js +2 -2
- package/dist/CdsSearch/styles.css +1 -1
- package/dist/CdsSelect/index.js +2 -2
- package/dist/CdsSelect/styles.css +1 -1
- package/dist/CdsSkeleton/index.js +2 -2
- package/dist/CdsSkeleton/styles.css +1 -1
- package/dist/CdsStages/index.js +2 -2
- package/dist/CdsStages/styles.css +1 -1
- package/dist/CdsStatus/index.js +2 -2
- package/dist/CdsStatus/styles.css +3 -3
- package/dist/CdsSteps/index.js +2 -2
- package/dist/CdsSteps/styles.css +3 -3
- package/dist/CdsTable/index.js +2 -2
- package/dist/CdsTable/styles.css +2 -2
- package/dist/CdsTabs/index.js +2 -2
- package/dist/CdsTabs/styles.css +1 -1
- package/dist/CdsTag/index.js +2 -2
- package/dist/CdsTag/styles.css +1 -1
- package/dist/CdsTextArea/index.js +2 -2
- package/dist/CdsTextArea/styles.css +1 -1
- package/dist/CdsTextInput/index.js +2 -2
- package/dist/CdsTextInput/styles.css +1 -1
- package/dist/CdsToggle/index.js +2 -2
- package/dist/CdsToggle/styles.css +1 -1
- package/dist/CdsTooltip/index.js +2 -2
- package/dist/CdsTooltip/styles.css +3 -3
- package/dist/CdsUploader/index.js +3 -3
- package/dist/CdsUploader/styles.css +1 -1
- package/dist/cds.css +8 -8
- package/dist/cds.js +2911 -1779
- package/dist/cds.min.css +2 -2
- package/dist/cds.min.js +5 -5
- package/dist/types/CdsBreadcrumbs.ts +1 -1
- package/dist/types/CdsButton.ts +2 -2
- package/dist/types/CdsCombobox.ts +1 -1
- package/dist/types/CdsContainer.ts +2 -2
- package/dist/types/CdsContentSwitcherButton.ts +1 -1
- package/dist/types/CdsDataTable.ts +2 -2
- package/dist/types/CdsDatePicker.ts +2 -2
- package/dist/types/CdsModal.ts +1 -1
- package/dist/types/CdsNotification.ts +2 -2
- package/dist/types/CdsStatus.ts +4 -4
- package/dist/types/CdsSteps.ts +1 -1
- package/dist/types/CdsTable.ts +4 -2
- package/dist/types/CdsTabs.ts +1 -1
- package/dist/types/CdsTag.ts +2 -2
- package/dist/types/CdsTooltip.ts +4 -2
- package/package.json +7 -5
package/dist/CdsToggle/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* CDS v2.
|
|
2
|
+
* CDS v2.9.0 (https://cds.b2b-center.ru/)
|
|
3
3
|
*
|
|
4
4
|
* @package @central-design-system/components
|
|
5
5
|
* @author Design System Team <cds@b2b-center.ru>
|
|
6
6
|
* © 2021, B2B-Center. (https://b2b-center.ru/)
|
|
7
7
|
*/
|
|
8
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CdsToggle=e():t.CdsToggle=e()}("undefined"!=typeof self?self:this,(function(){return function(){var t={3099:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070),c=r("unscopables"),u=Array.prototype;null==u[c]&&i.f(u,c,{configurable:!0,value:o(null)}),t.exports=function(t){u[c][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},1318:function(t,e,n){var r=n(5656),o=n(7466),i=n(1400),c=function(t){return function(e,n,c){var u,a=r(e),s=o(a.length),f=i(c,s);if(t&&n!=n){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var r=n(3099),o=n(7908),i=n(8361),c=n(7466),u=function(t){return function(e,n,u,a){r(n);var s=o(e),f=i(s),l=c(s.length),p=t?l-1:0,d=t?-1:1;if(u<2)for(;;){if(p in f){a=f[p],p+=d;break}if(p+=d,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=d)p in f&&(a=n(a,f[p],p,s));return a}};t.exports={left:u(!1),right:u(!0)}},7475:function(t,e,n){var r=n(111),o=n(3157),i=n(5112)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?r(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},4326:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:function(t,e,n){var r=n(1694),o=n(4326),i=n(5112)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:c?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},9920:function(t,e,n){var r=n(6656),o=n(3887),i=n(1236),c=n(3070);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||u(t,f,a(e,f))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),o=n(3070),i=n(9114);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},5268:function(t,e,n){var r=n(4326),o=n(7854);t.exports="process"==r(o.process)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),c=n(8113),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f?o=(r=f.split("."))[0]<4?1:r[0]+r[1]:c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),c=n(1320),u=n(3505),a=n(9920),s=n(4705);t.exports=function(t,e){var n,f,l,p,d,v=t.target,h=t.global,g=t.stat;if(n=h?r:g?r[v]||u(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!s(h?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,f,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1320),o=n(2261),i=n(7293),c=n(5112),u=n(8880),a=c("species"),s=RegExp.prototype;t.exports=function(t,e,n,f){var l=c(t),p=!i((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),d=p&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[a]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!p||!d||n){var v=/./[l],h=e(l,""[t],(function(t,e,n,r,i){var c=e.exec;return c===o||c===s.exec?p&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,h[0]),r(s,l,h[1])}f&&u(s[l],"sham",!0)}},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},5005:function(t,e,n){var r=n(7854),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},647:function(t,e,n){var r=n(7908),o=Math.floor,i="".replace,c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,a,s,f){var l=n+t.length,p=a.length,d=u;return void 0!==s&&(s=r(s),d=c),i.call(f,d,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":c=s[i.slice(1,-1)];break;default:var u=+i;if(0===u)return r;if(u>p){var f=o(u/10);return 0===f?r:f<=p?void 0===a[f-1]?i.charAt(1):a[f-1]+i.charAt(1):r}c=a[u-1]}return void 0===c?"":c}))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:function(t,e,n){var r=n(7908),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(r(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7293),o=n(4326),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},9587:function(t,e,n){var r=n(111),o=n(7674);t.exports=function(t,e,n){var i,c;return o&&"function"==typeof(i=e.constructor)&&i!==n&&r(c=i.prototype)&&c!==n.prototype&&o(t,c),t}},2788:function(t,e,n){var r=n(5465),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},2423:function(t,e,n){var r=n(2109),o=n(3501),i=n(111),c=n(6656),u=n(3070).f,a=n(8006),s=n(1156),f=n(9711),l=n(6677),p=!1,d=f("meta"),v=0,h=Object.isExtensible||function(){return!0},g=function(t){u(t,d,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=a.f,e=[].splice,n={};n[d]=1,t(n).length&&(a.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===d){e.call(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,d)){if(!h(t))return"F";if(!e)return"E";g(t)}return t[d].objectID},getWeakData:function(t,e){if(!c(t,d)){if(!h(t))return!0;if(!e)return!1;g(t)}return t[d].weakData},onFreeze:function(t){return l&&p&&h(t)&&!c(t,d)&&g(t),t}};o[d]=!0},9909:function(t,e,n){var r,o,i,c=n(8536),u=n(7854),a=n(111),s=n(8880),f=n(6656),l=n(5465),p=n(6200),d=n(3501),v="Object already initialized",h=u.WeakMap;if(c||l.state){var g=l.state||(l.state=new h),y=g.get,x=g.has,b=g.set;r=function(t,e){if(x.call(g,t))throw new TypeError(v);return e.facade=t,b.call(g,t,e),e},o=function(t){return y.call(g,t)||{}},i=function(t){return x.call(g,t)}}else{var m=p("state");d[m]=!0,r=function(t,e){if(f(t,m))throw new TypeError(v);return e.facade=t,s(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},4705:function(t,e,n){var r=n(7293),o=/#|\.prototype\./,i=function(t,e){var n=u[c(t)];return n==s||n!=a&&("function"==typeof e?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),o=n(4326),i=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},2190:function(t,e,n){var r=n(5005),o=n(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(2788),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},3929:function(t,e,n){var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:function(t,e,n){var r,o=n(9670),i=n(6048),c=n(748),u=n(3501),a=n(490),s=n(317),f=n(6200),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"</"+"script>"},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}h=document.domain&&r?v(r):function(){var t,e=s("iframe");if(e.style)return e.style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F}()||v(r);for(var t=c.length;t--;)delete h.prototype[c[t]];return h()};u[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3070),i=n(9670),c=n(1956);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),u=r.length,a=0;u>a;)o.f(t,n=r[a++],e[n]);return t}},3070:function(t,e,n){var r=n(9781),o=n(4664),i=n(9670),c=n(4948),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(i(t),e=c(e),i(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(5296),i=n(9114),c=n(5656),u=n(4948),a=n(6656),s=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=c(t),e=u(e),s)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},1156:function(t,e,n){var r=n(5656),o=n(8006).f,i={}.toString,c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return c.slice()}}(t):o(r(t))}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},6324:function(t,e,n){var r=n(6656),o=n(5656),i=n(1318).indexOf,c=n(3501);t.exports=function(t,e){var n,u=o(t),a=0,s=[];for(n in u)!r(c,n)&&r(u,n)&&s.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~i(s,n)||s.push(n));return s}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(9670),o=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(111);t.exports=function(t,e){var n,o;if("string"===e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if("string"!==e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(8006),i=n(5181),c=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(c(t)),n=i.f;return n?e.concat(n(t)):e}},1320:function(t,e,n){var r=n(7854),o=n(8880),i=n(6656),c=n(3505),u=n(2788),a=n(9909),s=a.get,f=a.enforce,l=String(String).split("String");(t.exports=function(t,e,n,u){var a,s=!!u&&!!u.unsafe,p=!!u&&!!u.enumerable,d=!!u&&!!u.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(a=f(n)).source||(a.source=l.join("string"==typeof e?e:""))),t!==r?(s?!d&&t[e]&&(p=!0):delete t[e],p?t[e]=n:o(t,e,n)):p?t[e]=n:c(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&s(this).source||u(this)}))},7651:function(t,e,n){var r=n(4326),o=n(2261);t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},2261:function(t,e,n){"use strict";var r,o,i=n(1340),c=n(7066),u=n(2999),a=n(2309),s=n(30),f=n(9909).get,l=n(9441),p=n(8173),d=RegExp.prototype.exec,v=a("native-string-replace",String.prototype.replace),h=d,g=(r=/a/,o=/b*/g,d.call(r,"a"),d.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),y=u.UNSUPPORTED_Y||u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];(g||x||y||l||p)&&(h=function(t){var e,n,r,o,u,a,l,p=this,b=f(p),m=i(t),w=b.raw;if(w)return w.lastIndex=p.lastIndex,e=h.call(w,m),p.lastIndex=w.lastIndex,e;var O=b.groups,_=y&&p.sticky,j=c.call(p),S=p.source,E=0,I=m;if(_&&(-1===(j=j.replace("y","")).indexOf("g")&&(j+="g"),I=m.slice(p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==m.charAt(p.lastIndex-1))&&(S="(?: "+S+")",I=" "+I,E++),n=new RegExp("^(?:"+S+")",j)),x&&(n=new RegExp("^"+S+"$(?!\\s)",j)),g&&(r=p.lastIndex),o=d.call(_?n:p,I),_?o?(o.input=o.input.slice(E),o[0]=o[0].slice(E),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:g&&o&&(p.lastIndex=p.global?o.index+o[0].length:r),x&&o&&o.length>1&&v.call(o[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(o[u]=void 0)})),o&&O)for(o.groups=a=s(null),u=0;u<O.length;u++)a[(l=O[u])[0]]=o[l[1]];return o}),t.exports=h},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,n){var r=n(7293),o=function(t,e){return RegExp(t,e)};e.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:function(t,e,n){var r=n(7293);t.exports=r((function(){var t=RegExp(".","string".charAt(0));return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},8173:function(t,e,n){var r=n(7293);t.exports=r((function(){var t=RegExp("(?<a>b)","string".charAt(5));return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8710:function(t,e,n){var r=n(9958),o=n(1340),i=n(4488),c=function(t){return function(e,n){var c,u,a=o(i(e)),s=r(n),f=a.length;return s<0||s>=f?t?"":void 0:(c=a.charCodeAt(s))<55296||c>56319||s+1===f||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):c:t?a.slice(s,s+2):u-56320+(c-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},3111:function(t,e,n){var r=n(4488),o=n(1340),i="["+n(1361)+"]",c=RegExp("^"+i+i+"*"),u=RegExp(i+i+"*$"),a=function(t){return function(e){var n=o(r(e));return 1&t&&(n=n.replace(c,"")),2&t&&(n=n.replace(u,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},1400:function(t,e,n){var r=n(9958),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9958:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:function(t,e,n){var r=n(9958),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488);t.exports=function(t){return Object(r(t))}},7593:function(t,e,n){var r=n(111),o=n(2190),i=n(2140),c=n(5112)("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,u=t[c];if(void 0!==u){if(void 0===e&&(e="default"),n=u.call(t,e),!r(n)||o(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:String(e)}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(2190);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},9711:function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(6656),c=n(9711),u=n(133),a=n(3307),s=o("wks"),f=r.Symbol,l=a?f:f&&f.withoutSetter||c;t.exports=function(t){return i(s,t)&&(u||"string"==typeof s[t])||(u&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},1361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),o=n(7293),i=n(3157),c=n(111),u=n(7908),a=n(7466),s=n(6135),f=n(5417),l=n(1194),p=n(5112),d=n(7392),v=p("isConcatSpreadable"),h=9007199254740991,g="Maximum allowed index exceeded",y=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),x=l("concat"),b=function(t){if(!c(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};r({target:"Array",proto:!0,forced:!y||!x},{concat:function(t){var e,n,r,o,i,c=u(this),l=f(c,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(b(i=-1===e?c:arguments[e])){if(p+(o=a(i.length))>h)throw TypeError(g);for(n=0;n<o;n++,p++)n in i&&s(l,p,i[n])}else{if(p>=h)throw TypeError(g);s(l,p++,i)}return l.length=p,l}})},6699:function(t,e,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(1223);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},5827:function(t,e,n){"use strict";var r=n(2109),o=n(3671).left,i=n(9341),c=n(7392),u=n(5268);r({target:"Array",proto:!0,forced:!i("reduce")||!u&&c>79&&c<83},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},8309:function(t,e,n){var r=n(9781),o=n(3070).f,i=Function.prototype,c=i.toString,u=/^\s*function ([^ (]*)/,a="name";r&&!(a in i)&&o(i,a,{configurable:!0,get:function(){try{return c.call(this).match(u)[1]}catch(t){return""}}})},9653:function(t,e,n){"use strict";var r=n(9781),o=n(7854),i=n(4705),c=n(1320),u=n(6656),a=n(4326),s=n(9587),f=n(2190),l=n(7593),p=n(7293),d=n(30),v=n(8006).f,h=n(1236).f,g=n(3070).f,y=n(3111).trim,x="Number",b=o.Number,m=b.prototype,w=a(d(m))==x,O=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,o,i,c,u,a,s=l(t,"number");if("string"==typeof s&&s.length>2)if(43===(e=(s=y(s)).charCodeAt(0))||45===e){if(88===(n=s.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(c=(i=s.slice(2)).length,u=0;u<c;u++)if((a=i.charCodeAt(u))<48||a>o)return NaN;return parseInt(i,r)}return+s};if(i(x,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var _,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(w?p((function(){m.valueOf.call(n)})):a(n)!=x)?s(new b(O(e)),n,j):O(e)},S=r?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;S.length>E;E++)u(b,_=S[E])&&!u(j,_)&&g(j,_,h(b,_));j.prototype=m,m.constructor=j,c(o,x,j)}},3371:function(t,e,n){var r=n(2109),o=n(6677),i=n(7293),c=n(111),u=n(2423).onFreeze,a=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!o},{freeze:function(t){return a&&c(t)?a(u(t)):t}})},1539:function(t,e,n){var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},4916:function(t,e,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},9714:function(t,e,n){"use strict";var r=n(1320),o=n(9670),i=n(1340),c=n(7293),u=n(7066),a="toString",s=RegExp.prototype,f=s.toString,l=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),p=f.name!=a;(l||p)&&r(RegExp.prototype,a,(function(){var t=o(this),e=i(t.source),n=t.flags;return"/"+e+"/"+i(void 0===n&&t instanceof RegExp&&!("flags"in s)?u.call(t):n)}),{unsafe:!0})},2023:function(t,e,n){"use strict";var r=n(2109),o=n(3929),i=n(4488),c=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(t){return!!~c(i(this)).indexOf(c(o(t)),arguments.length>1?arguments[1]:void 0)}})},5306:function(t,e,n){"use strict";var r=n(7007),o=n(7293),i=n(9670),c=n(9958),u=n(7466),a=n(1340),s=n(4488),f=n(1530),l=n(647),p=n(7651),d=n(5112)("replace"),v=Math.max,h=Math.min,g="$0"==="a".replace(/./,"$0"),y=!!/./[d]&&""===/./[d]("a","$0");r("replace",(function(t,e,n){var r=y?"$":"$0";return[function(t,n){var r=s(this),o=null==t?void 0:t[d];return void 0!==o?o.call(t,r,n):e.call(a(r),t,n)},function(t,o){var s=i(this),d=a(t);if("string"==typeof o&&-1===o.indexOf(r)&&-1===o.indexOf("$<")){var g=n(e,s,d,o);if(g.done)return g.value}var y="function"==typeof o;y||(o=a(o));var x=s.global;if(x){var b=s.unicode;s.lastIndex=0}for(var m=[];;){var w=p(s,d);if(null===w)break;if(m.push(w),!x)break;""===a(w[0])&&(s.lastIndex=f(d,u(s.lastIndex),b))}for(var O,_="",j=0,S=0;S<m.length;S++){w=m[S];for(var E=a(w[0]),I=v(h(c(w.index),d.length),0),C=[],T=1;T<w.length;T++)C.push(void 0===(O=w[T])?O:String(O));var k=w.groups;if(y){var A=[E].concat(C,I,d);void 0!==k&&A.push(k);var P=a(o.apply(void 0,A))}else P=l(E,d,I,C,k,o);I>=j&&(_+=d.slice(j,I)+P,j=I+E.length)}return _+d.slice(j)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!g||y)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var r={};return function(){"use strict";n(8309);function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(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 r(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){t(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}))}return n}n(9653),n(1539),n(9714),n(2222);var o=1e6;function i(){var t=o.toString(36);return o+=1,t}var c={beforeCreate:function(){this.uuid=i()},computed:{id:function(){return this.uuid}},methods:{getDynamicItemIdByIndex:function(t){return"".concat(this.id,"_").concat(t)},generateDynamicId:i}},u=(n(4916),n(5306),n(6699),n(2023),n(5827),n(3371),Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34})),a=Object.freeze({hover:"cds-state-hover",focus:"cds-state-focus",active:"cds-state-active",visited:"cds-state-visited",disabled:"cds-state-disabled",checked:"cds-state-checked",indeterminate:"cds-state-indeterminate",invalid:"cds-state-invalid",empty:"cds-state-empty",loading:"cds-state-loading"});function s(t,e,n,r,o,i,c,u){var a,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,e){return a.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:s}}var f=s({name:"CdsToggle",mixins:[c],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл переключателя"},textOn:{type:String,default:"",description:"Описание включенного состояния"},textOff:{type:String,default:"",description:"Описание выключенного состояния"},checked:{type:Boolean,default:!1,description:"Состояние включен\\выключен"},value:{type:[String,Number,Boolean],default:!1,description:"Значение переключателя"},model:{type:[String,Number,Boolean],default:null,description:"Внешняя модель v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"}},data:function(){return{isChecked:this.checked}},computed:{events:function(){return r(r({},this.$listeners),{},{change:this._onChange,keydown:this._onKeyDown})},classes:function(){var e;return t(e={"cds-toggle":!0,"cds-toggle--with-label":!this.hiddenLabel},a.checked,this.shouldBeChecked),t(e,a.disabled,this.disabled),e},shouldBeChecked:function(){return null!==this.model?"string"==typeof this.model||!!this.model:this.isChecked}},watch:{checked:function(t){this.isChecked=t}},methods:{change:function(t){return this.isChecked=t,this.isChecked},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onKeyDown:function(t){t.keyCode===u.enter&&(t.preventDefault(),this.change(!this.isChecked)),this.$emit("keydown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-toggle__input",attrs:{id:t.id,type:"checkbox",disabled:t.disabled,"aria-checked":""+t.shouldBeChecked,"aria-label":t.label},domProps:{value:t.value,checked:t.shouldBeChecked}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",{staticClass:"cds-toggle__label",attrs:{for:t.id}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{"aria-hidden":""+t.hiddenLabel}},[t._v(t._s(t.label))]),t._v(" "),n("span",{staticClass:"cds-toggle__switch"},[n("span",{staticClass:"cds-toggle__off"},[t._v(t._s(t.textOff))]),t._v(" "),n("span",{staticClass:"cds-toggle__on"},[t._v(t._s(t.textOn))])])])])}),[],!1,null,null,null).exports,l=s({name:"CdsToggleSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-toggle"},[e("cds-skeleton",{staticStyle:{"border-radius":"12px"},attrs:{width:"44px",height:"24px"}})],1)}),[],!1,null,null,null).exports;f.install=function(t){t.component(f.name,f)},l.install=function(t){t.component(l.name,f)},"undefined"!=typeof window&&window.Vue&&(f.install(window.Vue),l.install(window.Vue))}(),r=r.default}()}));
|
|
8
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.CdsToggle=e():t.CdsToggle=e()}("undefined"!=typeof self?self:this,(function(){return function(){var t={9662:function(t,e,n){var r=n(7854),o=n(614),i=n(6330),c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not a function")}},6077:function(t,e,n){var r=n(7854),o=n(614),i=r.String,c=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw c("Can't set "+i(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070),c=r("unscopables"),u=Array.prototype;null==u[c]&&i.f(u,c,{configurable:!0,value:o(null)}),t.exports=function(t){u[c][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:function(t,e,n){var r=n(7854),o=n(111),i=r.String,c=r.TypeError;t.exports=function(t){if(o(t))return t;throw c(i(t)+" is not an object")}},7556:function(t,e,n){var r=n(7293);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),c=function(t){return function(e,n,c){var u,a=r(e),s=i(a),f=o(c,s);if(t&&n!=n){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),c=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[c]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var r=n(7854),o=n(9662),i=n(7908),c=n(8361),u=n(6244),a=r.TypeError,s=function(t){return function(e,n,r,s){o(n);var f=i(e),l=c(f),p=u(f),d=t?p-1:0,v=t?-1:1;if(r<2)for(;;){if(d in l){s=l[d],d+=v;break}if(d+=v,t?d<0:p<=d)throw a("Reduce of empty array with no initial value")}for(;t?d>=0:p>d;d+=v)d in l&&(s=n(s,l[d],d,f));return s}};t.exports={left:s(!1),right:s(!0)}},1589:function(t,e,n){var r=n(7854),o=n(1400),i=n(6244),c=n(6135),u=r.Array,a=Math.max;t.exports=function(t,e,n){for(var r=i(t),s=o(e,r),f=o(void 0===n?r:n,r),l=u(a(f-s,0)),p=0;s<f;s++,p++)c(l,p,t[s]);return l.length=p,l}},7475:function(t,e,n){var r=n(7854),o=n(3157),i=n(4411),c=n(111),u=n(5112)("species"),a=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(i(e)&&(e===a||o(e.prototype))||c(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:function(t,e,n){var r=n(7854),o=n(1694),i=n(614),c=n(4326),u=n(5112)("toStringTag"),a=r.Object,s="Arguments"==c(function(){return arguments}());t.exports=o?c:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),u))?n:s?c(e):"Object"==(r=c(e))&&i(e.callee)?"Arguments":r}},9920:function(t,e,n){var r=n(2597),o=n(3887),i=n(1236),c=n(3070);t.exports=function(t,e){for(var n=o(e),u=c.f,a=i.f,s=0;s<n.length;s++){var f=n[s];r(t,f)||u(t,f,a(e,f))}}},4964:function(t,e,n){var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8880:function(t,e,n){var r=n(9781),o=n(3070),i=n(9114);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,n){"use strict";var r=n(4948),o=n(3070),i=n(9114);t.exports=function(t,e,n){var c=r(e);c in t?o.f(t,c,i(0,n)):t[c]=n}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,n){var r=n(7854),o=n(111),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},5268:function(t,e,n){var r=n(4326),o=n(7854);t.exports="process"==r(o.process)},8113:function(t,e,n){var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:function(t,e,n){var r,o,i=n(7854),c=n(8113),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&c&&(!(r=c.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=c.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,i=n(8880),c=n(1320),u=n(3505),a=n(9920),s=n(4705);t.exports=function(t,e){var n,f,l,p,d,v=t.target,h=t.global,g=t.stat;if(n=h?r:g?r[v]||u(v,{}):(r[v]||{}).prototype)for(f in e){if(p=e[f],l=t.noTargetGet?(d=o(n,f))&&d.value:n[f],!s(h?f:v+(g?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),c(n,f,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),o=n(1320),i=n(2261),c=n(7293),u=n(5112),a=n(8880),s=u("species"),f=RegExp.prototype;t.exports=function(t,e,n,l){var p=u(t),d=!c((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=d&&!c((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!d||!v||n){var h=r(/./[p]),g=e(p,""[t],(function(t,e,n,o,c){var u=r(t),a=e.exec;return a===i||a===f.exec?d&&!c?{done:!0,value:h(e,n,o)}:{done:!0,value:u(n,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(f,p,g[1])}l&&a(f[p],"sham",!0)}},6677:function(t,e,n){var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:function(t){var e=Function.prototype,n=e.apply,r=e.bind,o=e.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(n):function(){return o.apply(n,arguments)})},6916:function(t){var e=Function.prototype.call;t.exports=e.bind?e.bind(e):function(){return e.apply(e,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),i=Function.prototype,c=r&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,s=u&&(!r||r&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},1702:function(t){var e=Function.prototype,n=e.bind,r=e.call,o=n&&n.bind(r);t.exports=n?function(t){return t&&o(r,t)}:function(t){return t&&function(){return r.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:function(t,e,n){var r=n(1702),o=n(7908),i=Math.floor,c=r("".charAt),u=r("".replace),a=r("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,l,p){var d=n+t.length,v=r.length,h=f;return void 0!==l&&(l=o(l),h=s),u(p,h,(function(o,u){var s;switch(c(u,0)){case"$":return"$";case"&":return t;case"`":return a(e,0,n);case"'":return a(e,d);case"<":s=l[a(u,1,-1)];break;default:var f=+u;if(0===f)return o;if(f>v){var p=i(f/10);return 0===p?o:p<=v?void 0===r[p-1]?c(u,1):r[p-1]+c(u,1):o}s=r[f-1]}return void 0===s?"":s}))}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),i=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),o=n(1702),i=n(7293),c=n(4326),u=r.Object,a=o("".split);t.exports=i((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==c(t)?a(t,""):u(t)}:u},9587:function(t,e,n){var r=n(614),o=n(111),i=n(7674);t.exports=function(t,e,n){var c,u;return i&&r(c=e.constructor)&&c!==n&&o(u=c.prototype)&&u!==n.prototype&&i(t,u),t}},2788:function(t,e,n){var r=n(1702),o=n(614),i=n(5465),c=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},2423:function(t,e,n){var r=n(2109),o=n(1702),i=n(3501),c=n(111),u=n(2597),a=n(3070).f,s=n(8006),f=n(1156),l=n(2050),p=n(9711),d=n(6677),v=!1,h=p("meta"),g=0,y=function(t){a(t,h,{value:{objectID:"O"+g++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},v=!0;var t=s.f,e=o([].splice),n={};n[h]=1,t(n).length&&(s.f=function(n){for(var r=t(n),o=0,i=r.length;o<i;o++)if(r[o]===h){e(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,h)){if(!l(t))return"F";if(!e)return"E";y(t)}return t[h].objectID},getWeakData:function(t,e){if(!u(t,h)){if(!l(t))return!0;if(!e)return!1;y(t)}return t[h].weakData},onFreeze:function(t){return d&&v&&l(t)&&!u(t,h)&&y(t),t}};i[h]=!0},9909:function(t,e,n){var r,o,i,c=n(8536),u=n(7854),a=n(1702),s=n(111),f=n(8880),l=n(2597),p=n(5465),d=n(6200),v=n(3501),h="Object already initialized",g=u.TypeError,y=u.WeakMap;if(c||p.state){var x=p.state||(p.state=new y),b=a(x.get),m=a(x.has),O=a(x.set);r=function(t,e){if(m(x,t))throw new g(h);return e.facade=t,O(x,t,e),e},o=function(t){return b(x,t)||{}},i=function(t){return m(x,t)}}else{var w=d("state");v[w]=!0,r=function(t,e){if(l(t,w))throw new g(h);return e.facade=t,f(t,w,e),e},o=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return n}}}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),o=n(7293),i=n(614),c=n(648),u=n(5005),a=n(2788),s=function(){},f=[],l=u("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),v=!p.exec(s),h=function(t){if(!i(t))return!1;try{return l(s,f,t),!0}catch(t){return!1}};t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v||!!d(p,a(t))}:h},4705:function(t,e,n){var r=n(7293),o=n(614),i=/#|\.prototype\./,c=function(t,e){var n=a[u(t)];return n==f||n!=s&&(o(e)?r(e):!!e)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},7850:function(t,e,n){var r=n(111),o=n(4326),i=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},2190:function(t,e,n){var r=n(7854),o=n(5005),i=n(614),c=n(7976),u=n(3307),a=r.Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return i(e)&&c(e.prototype,a(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(614),i=n(2788),c=r.WeakMap;t.exports=o(c)&&/native code/.test(i(c))},3929:function(t,e,n){var r=n(7854),o=n(7850),i=r.TypeError;t.exports=function(t){if(o(t))throw i("The method doesn't accept regular expressions");return t}},30:function(t,e,n){var r,o=n(9670),i=n(6048),c=n(748),u=n(3501),a=n(490),s=n(317),f=n(6200),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"</"+"script>"},v=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;h="undefined"!=typeof document?document.domain&&r?v(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):v(r);for(var n=c.length;n--;)delete h.prototype[c[n]];return h()};u[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=h(),void 0===e?n:i(n,e)}},6048:function(t,e,n){var r=n(9781),o=n(3070),i=n(9670),c=n(5656),u=n(1956);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=c(e),a=u(e),s=a.length,f=0;s>f;)o.f(t,n=a[f++],r[n]);return t}},3070:function(t,e,n){var r=n(7854),o=n(9781),i=n(4664),c=n(9670),u=n(4948),a=r.TypeError,s=Object.defineProperty;e.f=o?s:function(t,e,n){if(c(t),e=u(e),c(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),o=n(6916),i=n(5296),c=n(9114),u=n(5656),a=n(4948),s=n(2597),f=n(4664),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=u(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return c(!o(i.f,t,e),t[e])}},1156:function(t,e,n){var r=n(4326),o=n(5656),i=n(8006).f,c=n(1589),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"Window"==r(t)?function(t){try{return i(t)}catch(t){return c(u)}}(t):i(o(t))}},8006:function(t,e,n){var r=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},2050:function(t,e,n){var r=n(7293),o=n(111),i=n(4326),c=n(7556),u=Object.isExtensible,a=r((function(){u(1)}));t.exports=a||c?function(t){return!!o(t)&&((!c||"ArrayBuffer"!=i(t))&&(!u||u(t)))}:u},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),o=n(2597),i=n(5656),c=n(1318).indexOf,u=n(3501),a=r([].push);t.exports=function(t,e){var n,r=i(t),s=0,f=[];for(n in r)!o(u,n)&&o(r,n)&&a(f,n);for(;e.length>s;)o(r,n=e[s++])&&(~c(f,n)||a(f,n));return f}},1956:function(t,e,n){var r=n(6324),o=n(748);t.exports=Object.keys||function(t){return r(t,o)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:function(t,e,n){var r=n(1702),o=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},288:function(t,e,n){"use strict";var r=n(1694),o=n(648);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(t,e,n){var r=n(7854),o=n(6916),i=n(614),c=n(111),u=r.TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!c(r=o(n,t)))return r;if(i(n=t.valueOf)&&!c(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!c(r=o(n,t)))return r;throw u("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),o=n(1702),i=n(8006),c=n(5181),u=n(9670),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(u(t)),n=c.f;return n?a(e,n(t)):e}},1320:function(t,e,n){var r=n(7854),o=n(614),i=n(2597),c=n(8880),u=n(3505),a=n(2788),s=n(9909),f=n(6530).CONFIGURABLE,l=s.get,p=s.enforce,d=String(String).split("String");(t.exports=function(t,e,n,a){var s,l=!!a&&!!a.unsafe,v=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet,g=a&&void 0!==a.name?a.name:e;o(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!i(n,"name")||f&&n.name!==g)&&c(n,"name",g),(s=p(n)).source||(s.source=d.join("string"==typeof g?g:""))),t!==r?(l?!h&&t[e]&&(v=!0):delete t[e],v?t[e]=n:c(t,e,n)):v?t[e]=n:u(e,n)})(Function.prototype,"toString",(function(){return o(this)&&l(this).source||a(this)}))},7651:function(t,e,n){var r=n(7854),o=n(6916),i=n(9670),c=n(614),u=n(4326),a=n(2261),s=r.TypeError;t.exports=function(t,e){var n=t.exec;if(c(n)){var r=o(n,t,e);return null!==r&&i(r),r}if("RegExp"===u(t))return o(a,t,e);throw s("RegExp#exec called on incompatible receiver")}},2261:function(t,e,n){"use strict";var r,o,i=n(6916),c=n(1702),u=n(1340),a=n(7066),s=n(2999),f=n(2309),l=n(30),p=n(9909).get,d=n(9441),v=n(7168),h=f("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,x=c("".charAt),b=c("".indexOf),m=c("".replace),O=c("".slice),w=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),S=s.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];(w||j||S||d||v)&&(y=function(t){var e,n,r,o,c,s,f,d=this,v=p(d),_=u(t),E=v.raw;if(E)return E.lastIndex=d.lastIndex,e=i(y,E,_),d.lastIndex=E.lastIndex,e;var I=v.groups,C=S&&d.sticky,k=i(a,d),P=d.source,T=0,A=_;if(C&&(k=m(k,"y",""),-1===b(k,"g")&&(k+="g"),A=O(_,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(_,d.lastIndex-1))&&(P="(?: "+P+")",A=" "+A,T++),n=new RegExp("^(?:"+P+")",k)),j&&(n=new RegExp("^"+P+"$(?!\\s)",k)),w&&(r=d.lastIndex),o=i(g,C?n:d,A),C?o?(o.input=O(o.input,T),o[0]=O(o[0],T),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:w&&o&&(d.lastIndex=d.global?o.index+o[0].length:r),j&&o&&o.length>1&&i(h,o[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(o[c]=void 0)})),o&&I)for(o.groups=s=l(null),c=0;c<I.length;c++)s[(f=I[c])[0]]=o[f[1]];return o}),t.exports=y},7066:function(t,e,n){"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:function(t,e,n){var r=n(7293),o=n(7854).RegExp,i=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),c=i||r((function(){return!o("a","y").sticky})),u=i||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:c,UNSUPPORTED_Y:i}},9441:function(t,e,n){var r=n(7293),o=n(7854).RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:function(t,e,n){var r=n(7293),o=n(7854).RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:function(t,e,n){var r=n(7854).TypeError;t.exports=function(t){if(null==t)throw r("Can't call method on "+t);return t}},3505:function(t,e,n){var r=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6200:function(t,e,n){var r=n(2309),o=n(9711),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,e,n){var r=n(7854),o=n(3505),i="__core-js_shared__",c=r[i]||o(i,{});t.exports=c},2309:function(t,e,n){var r=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},8710:function(t,e,n){var r=n(1702),o=n(9303),i=n(1340),c=n(4488),u=r("".charAt),a=r("".charCodeAt),s=r("".slice),f=function(t){return function(e,n){var r,f,l=i(c(e)),p=o(n),d=l.length;return p<0||p>=d?t?"":void 0:(r=a(l,p))<55296||r>56319||p+1===d||(f=a(l,p+1))<56320||f>57343?t?u(l,p):r:t?s(l,p,p+2):f-56320+(r-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},3111:function(t,e,n){var r=n(1702),o=n(4488),i=n(1340),c=n(1361),u=r("".replace),a="["+c+"]",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t){return function(e){var n=i(o(e));return 1&t&&(n=u(n,s,"")),2&t&&(n=u(n,f,"")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},863:function(t,e,n){var r=n(1702);t.exports=r(1..valueOf)},1400:function(t,e,n){var r=n(9303),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5656:function(t,e,n){var r=n(8361),o=n(4488);t.exports=function(t){return r(o(t))}},9303:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var r=+t;return r!=r||0===r?0:(r>0?n:e)(r)}},7466:function(t,e,n){var r=n(9303),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(7854),o=n(4488),i=r.Object;t.exports=function(t){return i(o(t))}},7593:function(t,e,n){var r=n(7854),o=n(6916),i=n(111),c=n(2190),u=n(8173),a=n(2140),s=n(5112),f=r.TypeError,l=s("toPrimitive");t.exports=function(t,e){if(!i(t)||c(t))return t;var n,r=u(t,l);if(r){if(void 0===e&&(e="default"),n=o(r,t,e),!i(n)||c(n))return n;throw f("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var r=n(7593),o=n(2190);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:function(t,e,n){var r=n(7854),o=n(648),i=r.String;t.exports=function(t){if("Symbol"===o(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},6330:function(t,e,n){var r=n(7854).String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),o=0,i=Math.random(),c=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},3307:function(t,e,n){var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:function(t,e,n){var r=n(7854),o=n(2309),i=n(2597),c=n(9711),u=n(133),a=n(3307),s=o("wks"),f=r.Symbol,l=f&&f.for,p=a?f:f&&f.withoutSetter||c;t.exports=function(t){if(!i(s,t)||!u&&"string"!=typeof s[t]){var e="Symbol."+t;u&&i(f,t)?s[t]=f[t]:s[t]=a&&l?l(e):p(e)}return s[t]}},1361:function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:function(t,e,n){"use strict";var r=n(2109),o=n(7854),i=n(7293),c=n(3157),u=n(111),a=n(7908),s=n(6244),f=n(6135),l=n(5417),p=n(1194),d=n(5112),v=n(7392),h=d("isConcatSpreadable"),g=9007199254740991,y="Maximum allowed index exceeded",x=o.TypeError,b=v>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),m=p("concat"),O=function(t){if(!u(t))return!1;var e=t[h];return void 0!==e?!!e:c(t)};r({target:"Array",proto:!0,forced:!b||!m},{concat:function(t){var e,n,r,o,i,c=a(this),u=l(c,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(O(i=-1===e?c:arguments[e])){if(p+(o=s(i))>g)throw x(y);for(n=0;n<o;n++,p++)n in i&&f(u,p,i[n])}else{if(p>=g)throw x(y);f(u,p++,i)}return u.length=p,u}})},6699:function(t,e,n){"use strict";var r=n(2109),o=n(1318).includes,i=n(1223);r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},5827:function(t,e,n){"use strict";var r=n(2109),o=n(3671).left,i=n(9341),c=n(7392),u=n(5268);r({target:"Array",proto:!0,forced:!i("reduce")||!u&&c>79&&c<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},8309:function(t,e,n){var r=n(9781),o=n(6530).EXISTS,i=n(1702),c=n(3070).f,u=Function.prototype,a=i(u.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(s.exec);r&&!o&&c(u,"name",{configurable:!0,get:function(){try{return f(s,a(this))[1]}catch(t){return""}}})},9653:function(t,e,n){"use strict";var r=n(9781),o=n(7854),i=n(1702),c=n(4705),u=n(1320),a=n(2597),s=n(9587),f=n(7976),l=n(2190),p=n(7593),d=n(7293),v=n(8006).f,h=n(1236).f,g=n(3070).f,y=n(863),x=n(3111).trim,b="Number",m=o.Number,O=m.prototype,w=o.TypeError,S=i("".slice),j=i("".charCodeAt),_=function(t){var e=p(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,n,r,o,i,c,u,a,s=p(t,"number");if(l(s))throw w("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=x(s),43===(e=j(s,0))||45===e){if(88===(n=j(s,2))||120===n)return NaN}else if(48===e){switch(j(s,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+s}for(c=(i=S(s,2)).length,u=0;u<c;u++)if((a=j(i,u))<48||a>o)return NaN;return parseInt(i,r)}return+s};if(c(b,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var I,C=function(t){var e=arguments.length<1?0:m(_(t)),n=this;return f(O,n)&&d((function(){y(n)}))?s(Object(e),n,C):e},k=r?v(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;k.length>P;P++)a(m,I=k[P])&&!a(C,I)&&g(C,I,h(m,I));C.prototype=O,O.constructor=C,u(o,b,C)}},3371:function(t,e,n){var r=n(2109),o=n(6677),i=n(7293),c=n(111),u=n(2423).onFreeze,a=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!o},{freeze:function(t){return a&&c(t)?a(u(t)):t}})},1539:function(t,e,n){var r=n(1694),o=n(1320),i=n(288);r||o(Object.prototype,"toString",i,{unsafe:!0})},4916:function(t,e,n){"use strict";var r=n(2109),o=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},9714:function(t,e,n){"use strict";var r=n(1702),o=n(6530).PROPER,i=n(1320),c=n(9670),u=n(7976),a=n(1340),s=n(7293),f=n(7066),l="toString",p=RegExp.prototype,d=p.toString,v=r(f),h=s((function(){return"/a/b"!=d.call({source:"a",flags:"b"})})),g=o&&d.name!=l;(h||g)&&i(RegExp.prototype,l,(function(){var t=c(this),e=a(t.source),n=t.flags;return"/"+e+"/"+a(void 0===n&&u(p,t)&&!("flags"in p)?v(t):n)}),{unsafe:!0})},2023:function(t,e,n){"use strict";var r=n(2109),o=n(1702),i=n(3929),c=n(4488),u=n(1340),a=n(4964),s=o("".indexOf);r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~s(u(c(this)),u(i(t)),arguments.length>1?arguments[1]:void 0)}})},5306:function(t,e,n){"use strict";var r=n(2104),o=n(6916),i=n(1702),c=n(7007),u=n(7293),a=n(9670),s=n(614),f=n(9303),l=n(7466),p=n(1340),d=n(4488),v=n(1530),h=n(8173),g=n(647),y=n(7651),x=n(5112)("replace"),b=Math.max,m=Math.min,O=i([].concat),w=i([].push),S=i("".indexOf),j=i("".slice),_="$0"==="a".replace(/./,"$0"),E=!!/./[x]&&""===/./[x]("a","$0");c("replace",(function(t,e,n){var i=E?"$":"$0";return[function(t,n){var r=d(this),i=null==t?void 0:h(t,x);return i?o(i,t,r,n):o(e,p(r),t,n)},function(t,o){var c=a(this),u=p(t);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var d=n(e,c,u,o);if(d.done)return d.value}var h=s(o);h||(o=p(o));var x=c.global;if(x){var _=c.unicode;c.lastIndex=0}for(var E=[];;){var I=y(c,u);if(null===I)break;if(w(E,I),!x)break;""===p(I[0])&&(c.lastIndex=v(u,l(c.lastIndex),_))}for(var C,k="",P=0,T=0;T<E.length;T++){for(var A=p((I=E[T])[0]),R=b(m(f(I.index),u.length),0),N=[],$=1;$<I.length;$++)w(N,void 0===(C=I[$])?C:String(C));var F=I.groups;if(h){var D=O([A],N,R,u);void 0!==F&&w(D,F);var M=p(r(o,void 0,D))}else M=g(A,u,R,N,F,o);R>=P&&(k+=j(u,P,R)+M,P=R+A.length)}return k+j(u,P)}]}),!!u((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!_||E)}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var r={};return function(){"use strict";n(8309);function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(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 r(n){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?e(Object(o),!0).forEach((function(e){t(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(o,t))}))}return n}n(9653),n(1539),n(9714),n(2222);var o=1e6;function i(){var t=o.toString(36);return o+=1,t}var c={beforeCreate:function(){this.uuid=i()},computed:{id:function(){return this.uuid}},methods:{getDynamicItemIdByIndex:function(t){return"".concat(this.id,"_").concat(t)},generateDynamicId:i}},u=(n(4916),n(5306),n(6699),n(2023),n(5827),n(3371),Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34})),a=Object.freeze({hover:"cds-state-hover",focus:"cds-state-focus",active:"cds-state-active",visited:"cds-state-visited",disabled:"cds-state-disabled",checked:"cds-state-checked",indeterminate:"cds-state-indeterminate",invalid:"cds-state-invalid",empty:"cds-state-empty",loading:"cds-state-loading"});function s(t,e,n,r,o,i,c,u){var a,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=a):o&&(a=u?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),a)if(s.functional){s._injectStyles=a;var f=s.render;s.render=function(t,e){return a.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:s}}var f=s({name:"CdsToggle",mixins:[c],inheritAttrs:!1,model:{prop:"model",event:"change"},props:{label:{type:String,required:!0,description:"Лейбл переключателя"},textOn:{type:String,default:"",description:"Описание включенного состояния"},textOff:{type:String,default:"",description:"Описание выключенного состояния"},checked:{type:Boolean,default:!1,description:"Состояние включен\\выключен"},value:{type:[String,Number,Boolean],default:!1,description:"Значение переключателя"},model:{type:[String,Number,Boolean],default:null,description:"Внешняя модель v-model"},disabled:{type:Boolean,default:!1,description:"Заблокированный"},hiddenLabel:{type:Boolean,default:!1,description:"Скрыть лейбл"}},data:function(){return{isChecked:this.checked}},computed:{events:function(){return r(r({},this.$listeners),{},{change:this._onChange,keydown:this._onKeyDown})},classes:function(){var e;return t(e={"cds-toggle":!0,"cds-toggle--with-label":!this.hiddenLabel},a.checked,this.shouldBeChecked),t(e,a.disabled,this.disabled),e},shouldBeChecked:function(){return null!==this.model?"string"==typeof this.model||!!this.model:this.isChecked}},watch:{checked:function(t){this.isChecked=t}},methods:{change:function(t){return this.isChecked=t,this.isChecked},_onChange:function(t){var e=this.change(t.target.checked);this.$emit("change",e)},_onKeyDown:function(t){t.keyCode===u.enter&&(t.preventDefault(),this.change(!this.isChecked)),this.$emit("keydown",t)}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.classes},[n("input",t._g(t._b({ref:"input",staticClass:"cds-toggle__input",attrs:{id:t.id,type:"checkbox",disabled:t.disabled,"aria-checked":""+t.shouldBeChecked,"aria-label":t.label},domProps:{value:t.value,checked:t.shouldBeChecked}},"input",t.$attrs,!1),t.events)),t._v(" "),n("label",{staticClass:"cds-toggle__label",attrs:{for:t.id}},[n("span",{directives:[{name:"show",rawName:"v-show",value:!t.hiddenLabel,expression:"!hiddenLabel"}],attrs:{"aria-hidden":""+t.hiddenLabel}},[t._v(t._s(t.label))]),t._v(" "),n("span",{staticClass:"cds-toggle__switch"},[n("span",{staticClass:"cds-toggle__off"},[t._v(t._s(t.textOff))]),t._v(" "),n("span",{staticClass:"cds-toggle__on"},[t._v(t._s(t.textOn))])])])])}),[],!1,null,null,null).exports,l=s({name:"CdsToggleSkeleton"},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"cds-toggle"},[e("cds-skeleton",{staticStyle:{"border-radius":"12px"},attrs:{width:"44px",height:"24px"}})],1)}),[],!1,null,null,null).exports;f.install=function(t){t.component(f.name,f)},l.install=function(t){t.component(l.name,f)},"undefined"!=typeof window&&window.Vue&&(f.install(window.Vue),l.install(window.Vue))}(),r=r.default}()}));
|