ndings;};String.prototype.escapeCharacters=function(chars){let foundChar=false;for(let i=0;i<chars.length;++i){if(this.indexOf(chars.charAt(i))!==-1){foundChar=true;break;}}
if(!foundChar)
return String(this);let result='';for(let i=0;i<this.length;++i){if(chars.indexOf(this.charAt(i))!==-1)
result+='\\';result+=this.charAt(i);}
return result;};String.regexSpecialCharacters=function(){return'^[]{}()\\.^$*+?|-,';};String.prototype.escapeForRegExp=function(){return this.escapeCharacters(String.regexSpecialCharacters());};String.filterRegex=function(query){const toEscape=String.regexSpecialCharacters();let regexString='';for(let i=0;i<query.length;++i){let c=query.charAt(i);if(toEscape.indexOf(c)!==-1)
c='\\'+c;if(i)
regexString+='[^\\0'+c+']*';regexString+=c;}
return new RegExp(regexString,'i');};String.prototype.escapeHTML=function(){return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');};String.prototype.unescapeHTML=function(){return this.replace(/&lt;/g,'<').replace(/&gt;/g,'>').replace(/&#58;/g,':').replace(/&quot;/g,'"').replace(/&#60;/g,'<').replace(/&#62;/g,'>').replace(/&amp;/g,'&');};String.prototype.collapseWhitespace=function(){return this.replace(/[\s\xA0]+/g,' ');};String.prototype.trimMiddle=function(maxLength){if(this.length<=maxLength)
return String(this);let leftHalf=maxLength>>1;let rightHalf=maxLength-leftHalf-1;if(this.codePointAt(this.length-rightHalf-1)>=0x10000){--rightHalf;++leftHalf;}
if(leftHalf>0&&this.codePointAt(leftHalf-1)>=0x10000)
--leftHalf;return this.substr(0,leftHalf)+'\u2026'+this.substr(this.length-rightHalf,rightHalf);};String.prototype.trimEnd=function(maxLength){if(this.length<=maxLength)
return String(this);return this.substr(0,maxLength-1)+'\u2026';};String.prototype.trimURL=function(baseURLDomain){let result=this.replace(/^(https|http|file):\/\//i,'');if(baseURLDomain){if(result.toLowerCase().startsWith(baseURLDomain.toLowerCase()))
result=result.substr(baseURLDomain.length);}
return result;};String.prototype.toTi//
// Copyright (c) Microsoft Corporation. All rights reserved.
// 
//
// File generated by WinMDIDL version 8.00.0014
//

import "inspectable.idl";
import "AsyncInfo.idl";
import "EventToken.idl";
import "Windows.Foundation.idl";
// Additional imports to ensure that all required headers are included
cpp_quote("#if defined(__cplusplus)")
cpp_quote("}")
cpp_quote("#endif // defined(__cplusplus)")
cpp_quote("#include <Windows.Foundation.h>")
cpp_quote("#if defined(__cplusplus)")
cpp_quote("extern \"C\" {")
cpp_quote("#endif // defined(__cplusplus)")

// Forward Declare
namespace Windows
{
    namespace Foundation
    {
        typedef struct TimeSpan TimeSpan;
    }
}
namespace Windows
{
    namespace Phone
    {
        namespace Devices
        {
            namespace Notification
            {
                interface IVibrationDeviceStatics;

                interface IVibrationDevice;

                runtimeclass VibrationDevice;
            }
        }
    }
}

// Generic instantiations

// Type definition
namespace Windows
{
    namespace Phone
    {
        namespace Devices
        {
            namespace Notification
            {
                [exclusiveto(Windows.Phone.Devices.Notification.VibrationDevice)]
                [uuid(332FD2F1-1C69-4C91-949E-4BB67A85BDC7)]
                [version(0x06020000)]
                interface IVibrationDeviceStatics : IInspectable
                {
                    HRESULT GetDefault([out] [retval] Windows.Phone.Devices.Notification.VibrationDevice** result);
                }

                [exclusiveto(Windows.Phone.Devices.Notification.VibrationDevice)]
                [uuid(1B4A6595-CFCD-4E08-92FB-C1906D04498C)]
                [version(0x06020000)]
                interface IVibrationDevice : IInspectable
                {
                    HRESULT Vibrate([in] Windows.Foundation.TimeSpan duration);
                    HRESULT Cancel();
                }

                [marshaling_behavior(agile)]
                [static(Windows.Phone.Devices.Notification.IVibrationDeviceStatics, 0x06020000)]
                [version(0x06020000)]
                runtimeclass VibrationDevice
                {
                    [default] interface Windows.Phone.Devices.Notification.IVibrationDevice;
                }
            }
        }
    }
}
